/Zephyr-latest/subsys/bluetooth/mesh/ |
D | va.c | 37 uint8_t uuid[16]; member 49 uint8_t bt_mesh_va_add(const uint8_t uuid[16], const struct bt_mesh_va **entry) in bt_mesh_va_add() 63 if (!memcmp(uuid, virtual_addrs[i].uuid, in bt_mesh_va_add() 64 ARRAY_SIZE(virtual_addrs[i].uuid))) { in bt_mesh_va_add() 78 memcpy(va->uuid, uuid, ARRAY_SIZE(va->uuid)); in bt_mesh_va_add() 79 err = bt_mesh_virtual_addr(uuid, &va->addr); in bt_mesh_va_add() 95 uint8_t bt_mesh_va_del(const uint8_t *uuid) in bt_mesh_va_del() argument 103 va = CONTAINER_OF(uuid, struct bt_mesh_va, uuid[0]); in bt_mesh_va_del() 115 const uint8_t *bt_mesh_va_uuid_get(uint16_t addr, const uint8_t *uuid, uint16_t *retaddr) in bt_mesh_va_uuid_get() argument 123 if (uuid != NULL) { in bt_mesh_va_uuid_get() [all …]
|
D | va.h | 12 uint8_t uuid[16]; member 22 uint8_t bt_mesh_va_add(const uint8_t uuid[16], const struct bt_mesh_va **entry); 33 uint8_t bt_mesh_va_del(const uint8_t *uuid); 43 const struct bt_mesh_va *bt_mesh_va_find(const uint8_t *uuid); 73 int bt_mesh_va_get_idx_by_uuid(const uint8_t *uuid, uint16_t *uuidx);
|
D | gatt_cli.c | 106 LOG_DBG("[ATTRIBUTE UUID 0x%04x] handle %u", BT_UUID_16(server->discover.uuid)->val, in discover_func() 109 if (!bt_uuid_cmp(server->discover.uuid, &server->gatt->srv_uuid.uuid)) { in discover_func() 112 server->discover.uuid = &server->gatt->data_in_uuid.uuid; in discover_func() 120 } else if (!bt_uuid_cmp(server->discover.uuid, in discover_func() 121 &server->gatt->data_in_uuid.uuid)) { in discover_func() 124 server->discover.uuid = &server->gatt->data_out_uuid.uuid; in discover_func() 132 } else if (!bt_uuid_cmp(server->discover.uuid, in discover_func() 133 &server->gatt->data_out_uuid.uuid)) { in discover_func() 134 server->discover.uuid = &server->gatt->data_out_cccd_uuid.uuid; in discover_func() 201 server->discover.uuid = &server->gatt->srv_uuid.uuid; in gatt_connected() [all …]
|
D | pb_gatt_cli.c | 88 int bt_mesh_pb_gatt_cli_setup(const uint8_t uuid[16]) in bt_mesh_pb_gatt_cli_setup() 94 server.target = uuid; in bt_mesh_pb_gatt_cli_setup() 102 uint8_t *uuid; in bt_mesh_pb_gatt_cli_adv_recv() local 113 uuid = net_buf_simple_pull_mem(buf, 16); in bt_mesh_pb_gatt_cli_adv_recv() 116 !memcmp(server.target, uuid, 16)) { in bt_mesh_pb_gatt_cli_adv_recv() 127 bt_mesh_prov->unprovisioned_beacon_gatt(uuid, oob_info); in bt_mesh_pb_gatt_cli_adv_recv()
|
/Zephyr-latest/tests/bluetooth/uuid/src/ |
D | test_bt_uuid_create.c | 20 struct bt_uuid uuid; in ZTEST() member 26 zassert_true(bt_uuid_create(&u.uuid, le16, sizeof(le16)), in ZTEST() 30 zassert_true(bt_uuid_cmp(&u.uuid, BT_UUID_DECLARE_16(0x0001)) == 0, in ZTEST() 34 zassert_true(bt_uuid_cmp(&u.uuid, &le_128.uuid) == 0, in ZTEST() 38 zassert_false(bt_uuid_cmp(&u.uuid, BT_UUID_DECLARE_16(0x0100)) == 0, in ZTEST() 42 zassert_true(bt_uuid_create(&u.uuid, be16, sizeof(be16)), in ZTEST() 46 zassert_false(bt_uuid_cmp(&u.uuid, BT_UUID_DECLARE_16(0x0001)) == 0, in ZTEST() 50 zassert_false(bt_uuid_cmp(&u.uuid, &le_128.uuid) == 0, in ZTEST() 54 zassert_true(bt_uuid_cmp(&u.uuid, BT_UUID_DECLARE_16(0x0100)) == 0, in ZTEST()
|
D | test_bt_uuid_cmp.c | 20 zassert_false(bt_uuid_cmp(&uuid_16.uuid, BT_UUID_DECLARE_16(0xffff)), in ZTEST() 24 zassert_false(bt_uuid_cmp(&uuid_128.uuid, BT_UUID_DECLARE_16(0xffff)), in ZTEST() 28 zassert_false(bt_uuid_cmp(&uuid_16.uuid, &uuid_128.uuid), in ZTEST() 32 zassert_true(bt_uuid_cmp(&uuid_16.uuid, BT_UUID_DECLARE_16(0x0000)), in ZTEST() 36 zassert_true(bt_uuid_cmp(&uuid_128.uuid, BT_UUID_DECLARE_16(0x000)), in ZTEST()
|
D | test_bt_uuid_to_str.c | 22 static void result_is_null_terminated(const struct bt_uuid *uuid) in result_is_null_terminated() argument 27 bt_uuid_to_str(uuid, str, sizeof(str)); in result_is_null_terminated() 31 static void result_str_is(const struct bt_uuid *uuid, const char *expected_str) in result_str_is() argument 35 bt_uuid_to_str(uuid, str, sizeof(str)); in result_str_is()
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | pacs_notify_client_test.c | 54 static struct bt_uuid_16 uuid = BT_UUID_INIT_16(0); variable 108 if (!bt_uuid_cmp(params->uuid, BT_UUID_PACS_SUPPORTED_CONTEXT)) { in discover_supported_contexts() 111 memcpy(&uuid, BT_UUID_GATT_CCC, sizeof(uuid)); in discover_supported_contexts() 112 pacs_instance.discover_params.uuid = &uuid.uuid; in discover_supported_contexts() 121 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_supported_contexts() 149 memcpy(&uuid, BT_UUID_PACS_SUPPORTED_CONTEXT, sizeof(uuid)); in discover_and_subscribe_supported_contexts() 150 pacs_instance.discover_params.uuid = &uuid.uuid; in discover_and_subscribe_supported_contexts() 175 if (!bt_uuid_cmp(params->uuid, BT_UUID_PACS_AVAILABLE_CONTEXT)) { in discover_available_contexts() 178 memcpy(&uuid, BT_UUID_GATT_CCC, sizeof(uuid)); in discover_available_contexts() 179 pacs_instance.discover_params.uuid = &uuid.uuid; in discover_available_contexts() [all …]
|
D | has_client_test.c | 296 static struct bt_uuid_16 uuid = BT_UUID_INIT_16(0); variable 444 if (!bt_uuid_cmp(params->uuid, BT_UUID_HAS_HEARING_AID_FEATURES)) { in discover_features_cb() 446 memcpy(&uuid, BT_UUID_GATT_CCC, sizeof(uuid)); in discover_features_cb() 447 discover_params.uuid = &uuid.uuid; in discover_features_cb() 457 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_features_cb() 483 memcpy(&uuid, BT_UUID_HAS_HEARING_AID_FEATURES, sizeof(uuid)); in discover_and_subscribe_features() 484 discover_params.uuid = &uuid.uuid; in discover_and_subscribe_features() 510 if (!bt_uuid_cmp(params->uuid, BT_UUID_HAS_ACTIVE_PRESET_INDEX)) { in discover_active_preset_index_cb() 512 memcpy(&uuid, BT_UUID_GATT_CCC, sizeof(uuid)); in discover_active_preset_index_cb() 513 discover_params.uuid = &uuid.uuid; in discover_active_preset_index_cb() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | uuid.c | 26 .uuid = { BT_UUID_TYPE_128 }, 79 bool bt_uuid_create(struct bt_uuid *uuid, const uint8_t *data, uint8_t data_len) in bt_uuid_create() argument 84 uuid->type = BT_UUID_TYPE_16; in bt_uuid_create() 85 BT_UUID_16(uuid)->val = sys_get_le16(data); in bt_uuid_create() 88 uuid->type = BT_UUID_TYPE_32; in bt_uuid_create() 89 BT_UUID_32(uuid)->val = sys_get_le32(data); in bt_uuid_create() 92 uuid->type = BT_UUID_TYPE_128; in bt_uuid_create() 93 memcpy(&BT_UUID_128(uuid)->val, data, 16); in bt_uuid_create() 101 void bt_uuid_to_str(const struct bt_uuid *uuid, char *str, size_t len) in bt_uuid_to_str() argument 106 switch (uuid->type) { in bt_uuid_to_str() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/mocks/src/ |
D | gatt.c | 95 if (copy->uuid) { in notify_params_deep_copy_destroy() 96 free((void *)copy->uuid); in notify_params_deep_copy_destroy() 118 if (copy->uuid) { in notify_params_deep_copy_destroy_all() 119 free((void *)copy->uuid); in notify_params_deep_copy_destroy_all() 131 static struct bt_uuid *uuid_deep_copy(const struct bt_uuid *uuid) in uuid_deep_copy() argument 135 switch (uuid->type) { in uuid_deep_copy() 139 memcpy(copy, uuid, sizeof(struct bt_uuid_16)); in uuid_deep_copy() 144 memcpy(copy, uuid, sizeof(struct bt_uuid_32)); in uuid_deep_copy() 149 memcpy(copy, uuid, sizeof(struct bt_uuid_128)); in uuid_deep_copy() 152 zassert_unreachable("Unexpected uuid->type 0x%02x", uuid->type); in uuid_deep_copy() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/samples/battery_service/src/ |
D | central_test.c | 41 static struct bt_uuid_16 uuid = BT_UUID_INIT_16(0); variable 88 .by_uuid.uuid = BT_UUID_BAS_BATTERY_CRIT_STATUS, 108 .by_uuid.uuid = BT_UUID_BAS_BATTERY_LEVEL_STATUS, 519 if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_BAS)) { in discover_func() 521 memcpy(&uuid, BT_UUID_BAS_BATTERY_LEVEL, sizeof(uuid)); in discover_func() 522 discover_params.uuid = &uuid.uuid; in discover_func() 531 } else if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_BAS_BATTERY_LEVEL)) { in discover_func() 535 memcpy(&uuid, BT_UUID_BAS_BATTERY_LEVEL_STATUS, sizeof(uuid)); in discover_func() 536 discover_params.uuid = &uuid.uuid; in discover_func() 544 } else if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_BAS_BATTERY_LEVEL_STATUS)) { in discover_func() [all …]
|
/Zephyr-latest/samples/bluetooth/mtu_update/central/src/ |
D | central_mtu_update.c | 36 static struct bt_uuid_128 uuid = BT_UUID_INIT_128(0); variable 76 if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_MTU_TEST)) { in discover_func() 77 memcpy(&uuid, BT_UUID_MTU_TEST_NOTIFY, sizeof(uuid)); in discover_func() 78 discover_params.uuid = &uuid.uuid; in discover_func() 86 } else if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_MTU_TEST_NOTIFY)) { in discover_func() 87 discover_params.uuid = ccc_uuid; in discover_func() 211 memcpy(&uuid, BT_UUID_MTU_TEST, sizeof(uuid)); in connected() 212 discover_params.uuid = &uuid.uuid; in connected()
|
/Zephyr-latest/tests/bsim/bluetooth/ll/conn/src/ |
D | test_connect1.c | 28 static struct bt_uuid_16 uuid = BT_UUID_INIT_16(0); variable 195 if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_HRS)) { in discover_func() 196 memcpy(&uuid, BT_UUID_HRS_MEASUREMENT, sizeof(uuid)); in discover_func() 197 discover_params.uuid = &uuid.uuid; in discover_func() 205 } else if (!bt_uuid_cmp(discover_params.uuid, in discover_func() 207 memcpy(&uuid, BT_UUID_GATT_CCC, sizeof(uuid)); in discover_func() 208 discover_params.uuid = &uuid.uuid; in discover_func() 316 memcpy(&uuid, BT_UUID_HRS, sizeof(uuid)); in params_updated() 317 discover_params.uuid = &uuid.uuid; in params_updated() 347 const struct bt_uuid *uuid; in eir_found() local [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | tmap.c | 43 static struct bt_uuid_16 uuid[CONFIG_BT_MAX_CONN] = {BT_UUID_INIT_16(0)}; variable 107 if (!bt_uuid_cmp(discover_params[conn_id].uuid, BT_UUID_TMAS)) { in discover_func() 110 memcpy(&uuid[conn_id], BT_UUID_GATT_TMAPR, sizeof(uuid[conn_id])); in discover_func() 111 discover_params[conn_id].uuid = &uuid[conn_id].uuid; in discover_func() 120 } else if (!bt_uuid_cmp(discover_params[conn_id].uuid, BT_UUID_GATT_TMAPR)) { in discover_func() 239 memcpy(&uuid[conn_id], BT_UUID_TMAS, sizeof(uuid[conn_id])); in bt_tmap_discover() 240 discover_params[conn_id].uuid = &uuid[conn_id].uuid; in bt_tmap_discover()
|
D | pbp.c | 61 void *uuid; in bt_pbp_parse_announcement() local 76 uuid = net_buf_simple_pull_mem(&buf, BT_UUID_SIZE_16); in bt_pbp_parse_announcement() 78 (void)bt_uuid_create(&adv_uuid.uuid, uuid, BT_UUID_SIZE_16); /* cannot fail */ in bt_pbp_parse_announcement() 80 if (bt_uuid_cmp(&adv_uuid.uuid, BT_UUID_PBA)) { in bt_pbp_parse_announcement()
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_gatt.c | 153 union uuid { union 154 struct bt_uuid uuid; member 163 const union uuid *u = CONTAINER_OF(pattern->uuid, union uuid, uuid); in gatt_db_add() 164 size_t uuid_size = u->uuid.type == BT_UUID_TYPE_16 ? sizeof(u->u16) : in gatt_db_add() 180 attr->uuid = server_buf_push(uuid_size); in gatt_db_add() 181 memcpy((void *) attr->uuid, &u->uuid, uuid_size); in gatt_db_add() 198 static uint8_t btp2bt_uuid(const uint8_t *uuid, uint8_t len, in btp2bt_uuid() argument 206 memcpy(&le16, uuid, sizeof(le16)); in btp2bt_uuid() 211 memcpy(BT_UUID_128(bt_uuid)->val, uuid, 16); in btp2bt_uuid() 294 union uuid uuid; in add_service() local [all …]
|
/Zephyr-latest/samples/bluetooth/central_otc/src/ |
D | main.c | 240 const struct bt_uuid *uuid; in eir_found() local 245 uuid = BT_UUID_DECLARE_16(sys_le16_to_cpu(u16)); in eir_found() 246 if (bt_uuid_cmp(uuid, BT_UUID_OTS) != 0) { in eir_found() 371 if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS) == 0) { in discover_func() 373 discover_params.uuid = &discover_uuid.uuid; in discover_func() 382 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_FEATURE) == 0) { in discover_func() 386 discover_params.uuid = &discover_uuid.uuid; in discover_func() 395 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_NAME) == 0) { in discover_func() 399 discover_params.uuid = &discover_uuid.uuid; in discover_func() 408 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_TYPE) == 0) { in discover_func() [all …]
|
/Zephyr-latest/samples/bluetooth/central_hr/src/ |
D | main.c | 63 if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_HRS)) { in discover_func() 65 discover_params.uuid = &discover_uuid.uuid; in discover_func() 73 } else if (!bt_uuid_cmp(discover_params.uuid, in discover_func() 76 discover_params.uuid = &discover_uuid.uuid; in discover_func() 121 const struct bt_uuid *uuid; in eir_found() local 126 uuid = BT_UUID_DECLARE_16(sys_le16_to_cpu(u16)); in eir_found() 127 if (bt_uuid_cmp(uuid, BT_UUID_HRS)) { in eir_found() 235 discover_params.uuid = &discover_uuid.uuid; in connected()
|
/Zephyr-latest/samples/bluetooth/central_ht/src/ |
D | main.c | 86 if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_HTS)) { in discover_func() 88 discover_params.uuid = &discover_uuid.uuid; in discover_func() 96 } else if (!bt_uuid_cmp(discover_params.uuid, in discover_func() 99 discover_params.uuid = &discover_uuid.uuid; in discover_func() 147 discover_params.uuid = &discover_uuid.uuid; in connected() 177 const struct bt_uuid *uuid; in eir_found() local 182 uuid = BT_UUID_DECLARE_16(sys_le16_to_cpu(u16)); in eir_found() 183 if (bt_uuid_cmp(uuid, BT_UUID_HTS)) { in eir_found()
|
/Zephyr-latest/tests/bluetooth/gatt/src/ |
D | main.c | 70 BT_GATT_CHARACTERISTIC(&test_chrc_uuid.uuid, 83 BT_GATT_CHARACTERISTIC(&test1_nfy_uuid.uuid, 155 BT_GATT_CHARACTERISTIC(&test_chrc_uuid.uuid, BT_GATT_CHRC_READ | BT_GATT_CHRC_WRITE, in ZTEST() 164 BT_GATT_CHARACTERISTIC(&test1_nfy_uuid.uuid, BT_GATT_CHRC_NOTIFY, BT_GATT_PERM_NONE, in ZTEST() 220 BT_GATT_CHARACTERISTIC(&test_chrc_uuid.uuid, BT_GATT_CHRC_READ | BT_GATT_CHRC_WRITE, in ZTEST() 229 BT_GATT_CHARACTERISTIC(&test1_nfy_uuid.uuid, BT_GATT_CHRC_NOTIFY, BT_GATT_PERM_NONE, in ZTEST() 283 BT_GATT_CHARACTERISTIC(&test_chrc_uuid.uuid, BT_GATT_CHRC_READ | BT_GATT_CHRC_WRITE, in ZTEST() 292 BT_GATT_CHARACTERISTIC(&test1_nfy_uuid.uuid, BT_GATT_CHRC_NOTIFY, BT_GATT_PERM_NONE, in ZTEST() 374 &test_chrc_uuid.uuid, NULL, 0, find_attr, in ZTEST() 378 zassert_equal(attr->uuid, &test_chrc_uuid.uuid, in ZTEST() [all …]
|
/Zephyr-latest/soc/intel/intel_adsp/common/ |
D | rimage_modules.c | 24 .uuid = {0xf3, 0xe4, 0x79, 0x2b, 0x75, 0x46, 0x49, 0xf6, 37 .uuid = {0x32, 0x8c, 0x39, 0x0e, 0xde, 0x5a, 0x4b, 0xba, 51 .uuid = {0x34, 0xd1, 0x06, 0xd4, 0xc1, 0xc3, 0x2c, 0x40,
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/retry_on_sec_err/client/ |
D | main.c | 37 static struct bt_uuid_128 uuid; in gatt_attr_read() local 44 memcpy(&uuid.uuid, TEST_CHRC_UUID, sizeof(uuid)); in gatt_attr_read() 45 params.by_uuid.uuid = &uuid.uuid; in gatt_attr_read()
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/conn_stress/peripheral/src/ |
D | main.c | 93 static struct bt_uuid_128 uuid = BT_UUID_INIT_128(0); variable 107 BT_GATT_CHARACTERISTIC(&vnd_enc_uuid.uuid, 261 bt_uuid_to_str(params->uuid, uuid_str, sizeof(uuid_str)); in discover_func() 268 memcpy(&uuid, CENTRAL_CHARACTERISTIC_UUID, sizeof(uuid)); in discover_func() 269 discover_params.uuid = &uuid.uuid; in discover_func() 283 params->uuid = &ccc_uuid.uuid; in discover_func() 341 memcpy(&uuid, CENTRAL_SERVICE_UUID, sizeof(uuid)); in subscribe_to_service() 342 discover_params.uuid = &uuid.uuid; in subscribe_to_service() 412 vnd_attr = bt_gatt_find_by_uuid(vnd_svc.attrs, vnd_svc.attr_count, &vnd_enc_uuid.uuid); in test_peripheral_main()
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | mesh_test.c | 346 int bt_mesh_test_recv(uint16_t len, uint16_t dst, const uint8_t *uuid, k_timeout_t timeout) in bt_mesh_test_recv() argument 365 ((uuid != NULL && msg->ctx.uuid == NULL) || in bt_mesh_test_recv() 366 (uuid == NULL && msg->ctx.uuid != NULL) || in bt_mesh_test_recv() 367 memcmp(uuid, msg->ctx.uuid, 16))) { in bt_mesh_test_recv() 369 if (uuid && msg->ctx.uuid) { in bt_mesh_test_recv() 370 LOG_ERR("Got: %s", bt_hex(msg->ctx.uuid, 16)); in bt_mesh_test_recv() 371 LOG_ERR("Expected: %s", bt_hex(uuid, 16)); in bt_mesh_test_recv() 446 int bt_mesh_test_send_async(uint16_t addr, const uint8_t *uuid, size_t len, in bt_mesh_test_send_async() argument 459 test_send_ctx.uuid = uuid; in bt_mesh_test_send_async() 498 int bt_mesh_test_send(uint16_t addr, const uint8_t *uuid, size_t len, in bt_mesh_test_send() argument [all …]
|