/Zephyr-Core-3.7.0/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()
|
D | rpr_srv.c | 100 static struct bt_mesh_rpr_unprov *unprov_get(const uint8_t uuid[16]) in unprov_get() 105 if (uuid) { in unprov_get() 107 !memcmp(srv.scan.devs[i].uuid, uuid, 16)) { in unprov_get() 239 net_buf_simple_add_mem(&buf, dev->uuid, 16); in scan_report_send() 269 net_buf_simple_add_mem(&buf, srv.scan.dev->uuid, 16); in scan_ext_report_send() 565 const uint8_t *uuid = NULL; in handle_scan_start() local 577 uuid = net_buf_simple_pull_mem(buf, 16); in handle_scan_start() 583 uuid ? bt_hex(uuid, 16) : ""); in handle_scan_start() 600 if (uuid) { in handle_scan_start() 604 memcpy(srv.scan.devs[0].uuid, uuid, 16); in handle_scan_start() [all …]
|
D | provisioner.h | 8 int bt_mesh_pb_adv_open(const uint8_t uuid[16], uint16_t net_idx, uint16_t addr, 11 int bt_mesh_pb_gatt_open(const uint8_t uuid[16], uint16_t net_idx, uint16_t addr,
|
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/tests/bluetooth/audio/mocks/src/ |
D | gatt.c | 77 if (copy->uuid) { in notify_params_deep_copy_destroy() 78 free((void *)copy->uuid); in notify_params_deep_copy_destroy() 100 if (copy->uuid) { in notify_params_deep_copy_destroy_all() 101 free((void *)copy->uuid); in notify_params_deep_copy_destroy_all() 113 static struct bt_uuid *uuid_deep_copy(const struct bt_uuid *uuid) in uuid_deep_copy() argument 117 switch (uuid->type) { in uuid_deep_copy() 121 memcpy(copy, uuid, sizeof(struct bt_uuid_16)); in uuid_deep_copy() 126 memcpy(copy, uuid, sizeof(struct bt_uuid_32)); in uuid_deep_copy() 131 memcpy(copy, uuid, sizeof(struct bt_uuid_128)); in uuid_deep_copy() 134 zassert_unreachable("Unexpected uuid->type 0x%02x", uuid->type); in uuid_deep_copy() [all …]
|
/Zephyr-Core-3.7.0/subsys/bluetooth/audio/ |
D | tmap.c | 38 static struct bt_uuid_16 uuid[CONFIG_BT_MAX_CONN] = {BT_UUID_INIT_16(0)}; variable 102 if (!bt_uuid_cmp(discover_params[conn_id].uuid, BT_UUID_TMAS)) { in discover_func() 105 memcpy(&uuid[conn_id], BT_UUID_GATT_TMAPR, sizeof(uuid[conn_id])); in discover_func() 106 discover_params[conn_id].uuid = &uuid[conn_id].uuid; in discover_func() 115 } else if (!bt_uuid_cmp(discover_params[conn_id].uuid, BT_UUID_GATT_TMAPR)) { in discover_func() 183 memcpy(&uuid[conn_id], BT_UUID_TMAS, sizeof(uuid[conn_id])); in bt_tmap_discover() 184 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-Core-3.7.0/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-Core-3.7.0/tests/bsim/bluetooth/ll/conn/src/ |
D | test_connect1.c | 28 static struct bt_uuid_16 uuid = BT_UUID_INIT_16(0); variable 165 if (!bt_uuid_cmp(discover_params.uuid, BT_UUID_HRS)) { in discover_func() 166 memcpy(&uuid, BT_UUID_HRS_MEASUREMENT, sizeof(uuid)); in discover_func() 167 discover_params.uuid = &uuid.uuid; in discover_func() 175 } else if (!bt_uuid_cmp(discover_params.uuid, in discover_func() 177 memcpy(&uuid, BT_UUID_GATT_CCC, sizeof(uuid)); in discover_func() 178 discover_params.uuid = &uuid.uuid; in discover_func() 286 memcpy(&uuid, BT_UUID_HRS, sizeof(uuid)); in params_updated() 287 discover_params.uuid = &uuid.uuid; in params_updated() 317 const struct bt_uuid *uuid; in eir_found() local [all …]
|
/Zephyr-Core-3.7.0/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-Core-3.7.0/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() 373 if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS) == 0) { in discover_func() 375 discover_params.uuid = &discover_uuid.uuid; in discover_func() 384 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_FEATURE) == 0) { in discover_func() 388 discover_params.uuid = &discover_uuid.uuid; in discover_func() 397 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_NAME) == 0) { in discover_func() 401 discover_params.uuid = &discover_uuid.uuid; in discover_func() 410 } else if (bt_uuid_cmp(discover_params.uuid, BT_UUID_OTS_TYPE) == 0) { in discover_func() [all …]
|
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/tests/bluetooth/gatt/src/ |
D | main.c | 70 BT_GATT_CHARACTERISTIC(&test_chrc_uuid.uuid, 83 BT_GATT_CHARACTERISTIC(&test1_nfy_uuid.uuid, 189 &test_chrc_uuid.uuid, NULL, 0, find_attr, in ZTEST() 193 zassert_equal(attr->uuid, &test_chrc_uuid.uuid, in ZTEST() 222 &test1_nfy_uuid.uuid, &nfy_enabled, 1, in ZTEST() 226 zassert_equal(attr->uuid, &test1_nfy_uuid.uuid, in ZTEST() 242 &test_chrc_uuid.uuid, NULL, 0, find_attr, in ZTEST() 245 zassert_equal(attr->uuid, &test_chrc_uuid.uuid, in ZTEST() 268 &test_chrc_uuid.uuid, NULL, 0, find_attr, in ZTEST()
|
/Zephyr-Core-3.7.0/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-Core-3.7.0/include/zephyr/bluetooth/mesh/ |
D | main.h | 117 const uint8_t *uuid; member 233 void (*unprovisioned_beacon)(uint8_t uuid[16], 245 void (*unprovisioned_beacon_gatt)(uint8_t uuid[16], 297 void (*node_added)(uint16_t net_idx, uint8_t uuid[16], uint16_t addr, 468 int bt_mesh_provision_adv(const uint8_t uuid[16], uint16_t net_idx, uint16_t addr, 481 int bt_mesh_provision_gatt(const uint8_t uuid[16], uint16_t net_idx, uint16_t addr, 498 const uint8_t uuid[16], uint16_t net_idx, 869 const uint8_t *bt_mesh_va_uuid_get(uint16_t addr, const uint8_t *uuid, uint16_t *retaddr);
|