Home
last modified time | relevance | path

Searched refs:sys_cpu_to_be16 (Results 1 – 25 of 51) sorted by relevance

123

/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dmain.c143 zassert_equal(header->nh_len, sys_cpu_to_be16(TEST_RESPONSE_OK_DATA_LENGTH), in ZTEST()
147 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_SETTINGS), in ZTEST()
197 zassert_equal(header->nh_len, sys_cpu_to_be16(TEST_RESPONSE_ERROR_DATA_LENGTH), in ZTEST()
201 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_SETTINGS), in ZTEST()
273 zassert_equal(header->nh_len, sys_cpu_to_be16(TEST_RESPONSE_OK_DATA_LENGTH), in ZTEST()
277 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_SETTINGS), in ZTEST()
327 zassert_equal(header->nh_len, sys_cpu_to_be16(TEST_RESPONSE_ERROR_DATA_LENGTH), in ZTEST()
331 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_SETTINGS), in ZTEST()
414 zassert_equal(header->nh_len, sys_cpu_to_be16(TEST_RESPONSE_OK_DATA_LENGTH), in ZTEST()
418 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_SETTINGS), in ZTEST()
[all …]
Dsmp_test_util.c17 .nh_len = sys_cpu_to_be16(len), in smp_make_hdr()
20 .nh_group = sys_cpu_to_be16(MGMT_GROUP_ID_SETTINGS), in smp_make_hdr()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/cb_notifications/src/
Dsmp_test_util.c16 .nh_len = sys_cpu_to_be16(len), in smp_make_hdr()
19 .nh_group = sys_cpu_to_be16(MGMT_GROUP_ID_OS), in smp_make_hdr()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/img_mgmt_slot_info/src/
Dsmp_test_util.c17 .nh_len = sys_cpu_to_be16(len), in smp_make_hdr()
20 .nh_group = sys_cpu_to_be16(MGMT_GROUP_ID_IMAGE), in smp_make_hdr()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/
Dsmp_test_util.c17 .nh_len = sys_cpu_to_be16(len), in smp_make_hdr()
20 .nh_group = sys_cpu_to_be16(MGMT_GROUP_ID_OS), in smp_make_hdr()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_reassembly/src/
Dmain.c50 mh->nh_len = sys_cpu_to_be16(TRANSPORT_NETBUF_SIZE - sizeof(struct smp_hdr) + 1); in ZTEST()
56 mh->nh_len = sys_cpu_to_be16(TEST_FRAME_SIZE - sizeof(struct smp_hdr)); in ZTEST()
89 mh->nh_len = sys_cpu_to_be16(TEST_FRAME_SIZE - sizeof(struct smp_hdr)); in ZTEST()
116 mh->nh_len = sys_cpu_to_be16(TEST_FRAME_SIZE - sizeof(struct smp_hdr)); in ZTEST()
194 mh->nh_len = sys_cpu_to_be16(TEST_FRAME_SIZE); in ZTEST()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_version/src/
Dsmp_test_util.c17 .nh_len = sys_cpu_to_be16(len), in smp_make_hdr()
20 .nh_group = sys_cpu_to_be16(MGMT_GROUP_ID_OS), in smp_make_hdr()
/Zephyr-latest/drivers/mfd/
Dmfd_ad559x_spi.c50 msg = sys_cpu_to_be16(AD559X_GPIO_READBACK_EN | in mfd_ad559x_spi_read_reg()
55 msg = sys_cpu_to_be16(AD559X_LDAC_READBACK_EN | in mfd_ad559x_spi_read_reg()
90 msg = sys_cpu_to_be16((reg << AD559X_REG_SHIFT_VAL) | (val & write_mask)); in mfd_ad559x_spi_write_reg()
/Zephyr-latest/include/zephyr/net/
Ddns_sd.h163 static const uint16_t id ## _port = sys_cpu_to_be16(port); \
192 static const uint16_t id ## _port = sys_cpu_to_be16(port); \
/Zephyr-latest/drivers/gpio/
Dgpio_sx1509b.c253 pin_buf.pins.input_disable = sys_cpu_to_be16(pins->input_disable); in write_pin_state()
254 pin_buf.pins.long_slew = sys_cpu_to_be16(pins->long_slew); in write_pin_state()
255 pin_buf.pins.low_drive = sys_cpu_to_be16(pins->low_drive); in write_pin_state()
256 pin_buf.pins.pull_up = sys_cpu_to_be16(pins->pull_up); in write_pin_state()
257 pin_buf.pins.pull_down = sys_cpu_to_be16(pins->pull_down); in write_pin_state()
258 pin_buf.pins.open_drain = sys_cpu_to_be16(pins->open_drain); in write_pin_state()
259 pin_buf.pins.polarity = sys_cpu_to_be16(pins->polarity); in write_pin_state()
260 pin_buf.pins.dir = sys_cpu_to_be16(pins->dir); in write_pin_state()
261 pin_buf.pins.data = sys_cpu_to_be16(pins->data); in write_pin_state()
371 = sys_cpu_to_be16(debounce->debounce_enable); in sx1509b_config()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_datetime/src/
Dsmp_test_util.c20 .nh_len = sys_cpu_to_be16(len), in smp_make_hdr()
24 .nh_group = sys_cpu_to_be16(MGMT_GROUP_ID_OS), in smp_make_hdr()
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dserial_util.c197 u16 = sys_cpu_to_be16(MCUMGR_SERIAL_HDR_PKT); in mcumgr_serial_tx_pkt()
213 u16 = sys_cpu_to_be16(len + 2); in mcumgr_serial_tx_pkt()
311 u16 = sys_cpu_to_be16(MCUMGR_SERIAL_HDR_FRAG); in mcumgr_serial_tx_pkt()
/Zephyr-latest/samples/net/mdns_responder/src/
Dservice.c67 net_sin6(&server_addr)->sin6_port = sys_cpu_to_be16(DEFAULT_PORT); in service()
71 net_sin(&server_addr)->sin_port = sys_cpu_to_be16(DEFAULT_PORT); in service()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/enum_mgmt/src/
Dsmp_test_util.c17 .nh_len = sys_cpu_to_be16(len), in smp_make_hdr()
20 .nh_group = sys_cpu_to_be16(MGMT_GROUP_ID_ENUM), in smp_make_hdr()
Dmain.c154 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_ENUM), in ZTEST()
255 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_ENUM), in ZTEST()
361 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_ENUM), in ZTEST()
567 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_ENUM), in ZTEST()
651 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_ENUM), in ZTEST()
739 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_ENUM), in ZTEST()
/Zephyr-latest/subsys/mgmt/mcumgr/smp_client/src/
Dclient.c73 header->nh_len = sys_cpu_to_be16(payload_len); in smp_header_init()
74 header->nh_group = sys_cpu_to_be16(group); in smp_header_init()
303 smp_header.nh_len = sys_cpu_to_be16(nb->len - sizeof(smp_header)); in smp_client_send_cmd()
304 smp_header.nh_group = sys_cpu_to_be16(smp_header.nh_group), in smp_client_send_cmd()
/Zephyr-latest/drivers/display/
Ddisplay_st7796s.c71 addr_data[0] = sys_cpu_to_be16(x); in st7796s_set_cursor()
72 addr_data[1] = sys_cpu_to_be16(x + width - 1); in st7796s_set_cursor()
81 addr_data[0] = sys_cpu_to_be16(y); in st7796s_set_cursor()
82 addr_data[1] = sys_cpu_to_be16(y + height - 1); in st7796s_set_cursor()
Ddisplay_st7789v.c124 spi_data[0] = sys_cpu_to_be16(ram_x); in st7789v_set_mem_area()
125 spi_data[1] = sys_cpu_to_be16(ram_x + w - 1); in st7789v_set_mem_area()
128 spi_data[0] = sys_cpu_to_be16(ram_y); in st7789v_set_mem_area()
129 spi_data[1] = sys_cpu_to_be16(ram_y + h - 1); in st7789v_set_mem_area()
Ddisplay_ili9xxx.c107 spi_data[0] = sys_cpu_to_be16(x); in ili9xxx_set_mem_area()
108 spi_data[1] = sys_cpu_to_be16(x + w - 1U); in ili9xxx_set_mem_area()
114 spi_data[0] = sys_cpu_to_be16(y); in ili9xxx_set_mem_area()
115 spi_data[1] = sys_cpu_to_be16(y + h - 1U); in ili9xxx_set_mem_area()
Duc81xx.c603 .hres = sys_cpu_to_be16(config->width), in uc81xx_set_tres_16()
604 .vres = sys_cpu_to_be16(config->height), in uc81xx_set_tres_16()
617 .hrst = sys_cpu_to_be16(x), in uc81xx_set_ptl_16()
618 .hred = sys_cpu_to_be16(x_end_idx), in uc81xx_set_ptl_16()
619 .vrst = sys_cpu_to_be16(y), in uc81xx_set_ptl_16()
620 .vred = sys_cpu_to_be16(y_end_idx), in uc81xx_set_ptl_16()
Ddisplay_gc9x01x.c490 spi_data[0] = sys_cpu_to_be16(x); in gc9x01x_set_mem_area()
491 spi_data[1] = sys_cpu_to_be16(x + w - 1U); in gc9x01x_set_mem_area()
497 spi_data[0] = sys_cpu_to_be16(y); in gc9x01x_set_mem_area()
498 spi_data[1] = sys_cpu_to_be16(y + h - 1U); in gc9x01x_set_mem_area()
Ddisplay_st7735r.c153 spi_data[0] = sys_cpu_to_be16(ram_x); in st7735r_set_mem_area()
154 spi_data[1] = sys_cpu_to_be16(ram_x + w - 1); in st7735r_set_mem_area()
160 spi_data[0] = sys_cpu_to_be16(ram_y); in st7735r_set_mem_area()
161 spi_data[1] = sys_cpu_to_be16(ram_y + h - 1); in st7735r_set_mem_area()
/Zephyr-latest/drivers/sensor/st/vl53l1x/
Dvl53l1_platform.c52 reg = sys_cpu_to_be16(reg); in VL53L1_ReadMulti()
78 data = sys_cpu_to_be16(data); in VL53L1_WrWord()
/Zephyr-latest/samples/bluetooth/eddystone/src/
Dmain.c107 EDS_SLOT_UID = sys_cpu_to_be16(BIT(0)),
108 EDS_SLOT_URL = sys_cpu_to_be16(BIT(1)),
109 EDS_SLOT_TLM = sys_cpu_to_be16(BIT(2)),
110 EDS_SLOT_EID = sys_cpu_to_be16(BIT(3)),
152 .interval = sys_cpu_to_be16(BT_GAP_ADV_FAST_INT_MIN_2),
/Zephyr-latest/drivers/dac/
Ddac_ad559x.c76 msg = sys_cpu_to_be16(AD559X_DAC_WR_MSB_BIT | in dac_ad559x_write_value()

123