/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/ |
D | serial_util.c | 178 uint16_t u16; in mcumgr_serial_tx_pkt() local 197 u16 = sys_cpu_to_be16(MCUMGR_SERIAL_HDR_PKT); in mcumgr_serial_tx_pkt() 201 rc = cb(&u16, sizeof(u16)); in mcumgr_serial_tx_pkt() 213 u16 = sys_cpu_to_be16(len + 2); in mcumgr_serial_tx_pkt() 214 memcpy(raw, &u16, sizeof(u16)); in mcumgr_serial_tx_pkt() 311 u16 = sys_cpu_to_be16(MCUMGR_SERIAL_HDR_FRAG); in mcumgr_serial_tx_pkt()
|
D | smp_dummy.c | 554 uint16_t u16; in mcumgr_dummy_tx_frame() local 564 u16 = sys_cpu_to_be16(MCUMGR_SERIAL_HDR_PKT); in mcumgr_dummy_tx_frame() 566 u16 = sys_cpu_to_be16(MCUMGR_SERIAL_HDR_FRAG); in mcumgr_dummy_tx_frame() 569 rc = cb(&u16, sizeof(u16)); in mcumgr_dummy_tx_frame() 577 u16 = sys_cpu_to_be16(len + 2); /* Bug fix to account for CRC */ in mcumgr_dummy_tx_frame() 578 memcpy(raw, &u16, sizeof(u16)); in mcumgr_dummy_tx_frame()
|
/Zephyr-latest/drivers/sensor/maxim/max31865/ |
D | max31865.c | 209 uint16_t u16; in max31865_get_temperature() member 212 read_reg.u16 = 0; in max31865_get_temperature() 224 read_reg.u16 = sys_be16_to_cpu(read_reg.u16); in max31865_get_temperature() 226 LOG_DBG("RAW: %02X %02X , %04X", read_reg.u8[0], read_reg.u8[1], read_reg.u16); in max31865_get_temperature() 227 if (TESTBIT(read_reg.u16, 0)) { in max31865_get_temperature() 235 read_reg.u16 = read_reg.u16 >> 1; in max31865_get_temperature() 236 double resistance = (double)read_reg.u16; in max31865_get_temperature()
|
/Zephyr-latest/tests/lib/net_buf/buf_simple/src/ |
D | main.c | 27 static const uint16_t u16 = 0x0102; variable 55 zassert_equal(u16, net_buf_simple_pull_le16(&buf), in ZTEST() 63 zassert_equal(u16, net_buf_simple_pull_be16(&buf), in ZTEST() 69 net_buf_simple_add_le16(&buf, u16); in ZTEST() 77 net_buf_simple_add_be16(&buf, u16); in ZTEST() 249 zassert_equal(u16, net_buf_simple_remove_le16(&buf), in ZTEST() 259 zassert_equal(u16, net_buf_simple_remove_be16(&buf), in ZTEST() 267 net_buf_simple_push_le16(&buf, u16); in ZTEST() 277 net_buf_simple_push_be16(&buf, u16); in ZTEST()
|
/Zephyr-latest/samples/subsys/logging/dictionary/src/ |
D | main.c | 24 uint16_t u16 = 17; in main() local 43 LOG_DBG("int16_t %" PRId16 ", uint16_t %" PRIu16, i16, u16); in main()
|
/Zephyr-latest/tests/subsys/logging/dictionary/src/ |
D | main.c | 25 uint16_t u16 = 17; in main() local 44 LOG_DBG("int16_t %" PRId16 ", uint16_t %" PRIu16, i16, u16); in main()
|
/Zephyr-latest/samples/bluetooth/central_hr/src/ |
D | main.c | 122 uint16_t u16; in eir_found() local 125 memcpy(&u16, &data->data[i], sizeof(u16)); in eir_found() 126 uuid = BT_UUID_DECLARE_16(sys_le16_to_cpu(u16)); in eir_found()
|
/Zephyr-latest/samples/bluetooth/central_ht/src/ |
D | main.c | 178 uint16_t u16; in eir_found() local 181 memcpy(&u16, &data->data[i], sizeof(u16)); in eir_found() 182 uuid = BT_UUID_DECLARE_16(sys_le16_to_cpu(u16)); in eir_found()
|
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_registry/src/ |
D | test_obj.c | 20 uint16_t u16; variable 74 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_U16, res, i, res_inst, j, &u16, sizeof(u16)); in obj_create()
|
D | lwm2m_registry.c | 143 uint16_t u16 = 16; in ZTEST() local 159 zassert_equal(lwm2m_set_u16(&LWM2M_OBJ(32768, 0, LWM2M_RES_TYPE_U16), u16), 0); in ZTEST() 173 zassert_equal(lwm2m_get_u16(&LWM2M_OBJ(32768, 0, LWM2M_RES_TYPE_U16), &u16), 0); in ZTEST() 187 zassert_equal(u16, 16); in ZTEST() 530 uint16_t u16 = 160; in ZTEST() local 546 {&LWM2M_OBJ(TEST_OBJ_ID, 0, LWM2M_RES_TYPE_U16), &u16, sizeof(u16)}, in ZTEST() 565 zassert_equal(lwm2m_get_u16(&LWM2M_OBJ(TEST_OBJ_ID, 0, LWM2M_RES_TYPE_U16), &u16), 0); in ZTEST() 581 zassert_equal(u16, 160); in ZTEST()
|
/Zephyr-latest/drivers/wifi/nrf_wifi/inc/ |
D | wpa_supp_if.h | 50 u16 type, const u8 *match, size_t match_len, 139 u16 frame_type, size_t match_len, const u8 *match);
|
/Zephyr-latest/tests/bluetooth/uuid/src/ |
D | test_bt_uuid_create.c | 21 struct bt_uuid_16 u16; in ZTEST() member
|
/Zephyr-latest/tests/bsim/bluetooth/ll/conn/src/ |
D | test_connect1.c | 349 uint16_t u16; in eir_found() local 352 memcpy(&u16, &data->data[i], sizeof(u16)); in eir_found() 353 uuid = BT_UUID_DECLARE_16(sys_le16_to_cpu(u16)); in eir_found()
|
/Zephyr-latest/tests/lib/net_buf/buf/src/ |
D | main.c | 547 uint16_t u16; in ZTEST() local 558 u16 = net_buf_pull_le16(buf); in ZTEST() 559 zassert_equal(u16, net_buf_pull_be16(buf), in ZTEST() 564 net_buf_add_le16(buf, u16); in ZTEST() 565 net_buf_add_be16(buf, u16); in ZTEST() 673 u16 = net_buf_remove_le16(buf); in ZTEST() 674 zassert_equal(u16, net_buf_remove_be16(buf), in ZTEST() 680 net_buf_push_le16(buf, u16); in ZTEST() 681 net_buf_push_be16(buf, u16); in ZTEST()
|
/Zephyr-latest/tests/unit/util/ |
D | main.c | 65 uint16_t u16; in ZTEST() local 72 u16 = 0xfff; in ZTEST() 73 zassert_equal(sign_extend(u16, 11), -1); in ZTEST() 74 zassert_equal(sign_extend(u16, 12), 0xfff); in ZTEST() 83 uint16_t u16; in ZTEST() local 91 u16 = 0xfff; in ZTEST() 92 zassert_equal(sign_extend_64(u16, 11), -1); in ZTEST() 93 zassert_equal(sign_extend_64(u16, 12), 0xfff); in ZTEST()
|
/Zephyr-latest/samples/bluetooth/bap_broadcast_assistant/src/ |
D | main.c | 124 uint16_t u16; in device_found() local 126 memcpy(&u16, &data->data[i], sizeof(u16)); in device_found() 127 uuid = BT_UUID_DECLARE_16(sys_le16_to_cpu(u16)); in device_found()
|
/Zephyr-latest/tests/bsim/bluetooth/ll/bis/src/ |
D | test_past.c | 95 uint16_t u16; in eir_found() local 98 memcpy(&u16, &data->data[i], sizeof(u16)); in eir_found() 99 uuid = BT_UUID_DECLARE_16(sys_le16_to_cpu(u16)); in eir_found()
|
/Zephyr-latest/samples/bluetooth/central_otc/src/ |
D | main.c | 241 uint16_t u16; in eir_found() local 244 (void)memcpy(&u16, &data->data[i], sizeof(u16)); in eir_found() 245 uuid = BT_UUID_DECLARE_16(sys_le16_to_cpu(u16)); in eir_found()
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_gatt.c | 155 struct bt_uuid_16 u16; member 164 size_t uuid_size = u->uuid.type == BT_UUID_TYPE_16 ? sizeof(u->u16) : in gatt_db_add() 306 uuid_size = uuid.uuid.type == BT_UUID_TYPE_16 ? sizeof(uuid.u16) : in add_service() 1066 uint16_t u16 = sys_cpu_to_le16(BT_UUID_16(data->uuid)->val); in disc_prim_cb() local 1068 memcpy(service->uuid, &u16, uuid_length); in disc_prim_cb() 1194 uint16_t u16 = sys_cpu_to_le16(BT_UUID_16(data->uuid)->val); in find_included_cb() local 1196 memcpy(included->service.uuid, &u16, uuid_length); in find_included_cb() 1273 uint16_t u16 = sys_cpu_to_le16(BT_UUID_16(data->uuid)->val); in disc_chrc_cb() local 1275 memcpy(chrc->uuid, &u16, uuid_length); in disc_chrc_cb() 1396 uint16_t u16 = sys_cpu_to_le16(BT_UUID_16(attr->uuid)->val); in disc_all_desc_cb() local [all …]
|
/Zephyr-latest/samples/bluetooth/peripheral_esp/src/ |
D | main.c | 99 const uint16_t *u16 = attr->user_data; in read_u16() local 100 uint16_t value = sys_cpu_to_le16(*u16); in read_u16()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | gatt.c | 785 struct bt_uuid_16 *u16; in gen_hash_m() local 794 u16 = (struct bt_uuid_16 *)attr->uuid; in gen_hash_m() 796 switch (u16->val) { in gen_hash_m() 810 value = sys_cpu_to_le16(u16->val); in gen_hash_m() 812 sizeof(u16->val)) != 0) { in gen_hash_m() 842 value = sys_cpu_to_le16(u16->val); in gen_hash_m() 844 sizeof(u16->val)) != 0) { in gen_hash_m() 4016 struct bt_uuid_16 u16; in parse_include() member 4067 u.u16.val = sys_le16_to_cpu(incl->uuid16); in parse_include() 4115 struct bt_uuid_16 u16; in parse_characteristic() member [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | lwm2m.h | 337 uint16_t u16; member
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | sdp.c | 354 struct bt_uuid_16 u16; in search_uuid() member 374 u.u16.val = *((uint16_t *)cur_elem); in search_uuid() 480 struct bt_uuid_16 u16; in find_services() member 520 u.u16.val = net_buf_pull_be16(buf); in find_services()
|
/Zephyr-latest/drivers/wifi/nrf_wifi/src/ |
D | wpa_supp_if.c | 1671 u16 type, const u8 *match, size_t match_len, in nrf_wifi_supp_register_frame() 2229 u16 frame_type, size_t match_len, const u8 *match) in nrf_wifi_supp_register_mgmt_frame()
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_registry.c | 1513 elements.u16 = *(uint16_t *)value; in lwm2m_engine_cache_write()
|