/Zephyr-latest/tests/bsim/bluetooth/host/gatt/authorization/src/ |
D | gatt_client_test.c | 136 struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() local 138 if (bt_uuid_cmp(chrc->uuid, TEST_UNHANDLED_CHRC_UUID) == 0) { in discover_func() 140 unhandled_chrc_handle = chrc->value_handle; in discover_func() 141 } else if (bt_uuid_cmp(chrc->uuid, TEST_UNAUTHORIZED_CHRC_UUID) == 0) { in discover_func() 143 unauthorized_chrc_handle = chrc->value_handle; in discover_func() 144 } else if (bt_uuid_cmp(chrc->uuid, TEST_AUTHORIZED_CHRC_UUID) == 0) { in discover_func() 146 authorized_chrc_handle = chrc->value_handle; in discover_func() 147 } else if (bt_uuid_cmp(chrc->uuid, TEST_CP_CHRC_UUID) == 0) { in discover_func() 149 cp_chrc_handle = chrc->value_handle; in discover_func()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | mcc.c | 1396 struct bt_gatt_chrc *chrc; in discover_otc_char_func() local 1410 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_otc_char_func() 1411 if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_FEATURE)) { in discover_otc_char_func() 1413 mcs_inst->otc.feature_handle = chrc->value_handle; in discover_otc_char_func() 1414 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_NAME)) { in discover_otc_char_func() 1416 mcs_inst->otc.obj_name_handle = chrc->value_handle; in discover_otc_char_func() 1417 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_TYPE)) { in discover_otc_char_func() 1419 mcs_inst->otc.obj_type_handle = chrc->value_handle; in discover_otc_char_func() 1420 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_SIZE)) { in discover_otc_char_func() 1422 mcs_inst->otc.obj_size_handle = chrc->value_handle; in discover_otc_char_func() [all …]
|
D | vocs_client.c | 378 struct bt_gatt_chrc *chrc; in vocs_discover_func() local 380 chrc = (struct bt_gatt_chrc *)attr->user_data; in vocs_discover_func() 382 inst->start_handle = chrc->value_handle; in vocs_discover_func() 384 inst->end_handle = chrc->value_handle; in vocs_discover_func() 386 if (!bt_uuid_cmp(chrc->uuid, BT_UUID_VOCS_STATE)) { in vocs_discover_func() 388 inst->state_handle = chrc->value_handle; in vocs_discover_func() 390 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_VOCS_LOCATION)) { in vocs_discover_func() 392 inst->location_handle = chrc->value_handle; in vocs_discover_func() 393 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in vocs_discover_func() 396 if (chrc->properties & BT_GATT_CHRC_WRITE_WITHOUT_RESP) { in vocs_discover_func() [all …]
|
D | gmap_client.c | 170 const struct bt_gatt_chrc *chrc; in bgr_feat_discover_func() local 183 chrc = attr->user_data; in bgr_feat_discover_func() 186 err = gmap_read_bgr_feat(gmap_cli, chrc->value_handle); in bgr_feat_discover_func() 269 const struct bt_gatt_chrc *chrc; in bgs_feat_discover_func() local 282 chrc = attr->user_data; in bgs_feat_discover_func() 285 err = gmap_read_bgs_feat(gmap_cli, chrc->value_handle); in bgs_feat_discover_func() 370 const struct bt_gatt_chrc *chrc; in ugt_feat_discover_func() local 383 chrc = attr->user_data; in ugt_feat_discover_func() 386 err = gmap_read_ugt_feat(gmap_cli, chrc->value_handle); in ugt_feat_discover_func() 473 const struct bt_gatt_chrc *chrc; in ugg_feat_discover_func() local [all …]
|
D | aics_client.c | 581 struct bt_gatt_chrc *chrc; in aics_discover_func() local 583 chrc = (struct bt_gatt_chrc *)attr->user_data; in aics_discover_func() 585 inst->cli.start_handle = chrc->value_handle; in aics_discover_func() 587 inst->cli.end_handle = chrc->value_handle; in aics_discover_func() 589 if (!bt_uuid_cmp(chrc->uuid, BT_UUID_AICS_STATE)) { in aics_discover_func() 591 inst->cli.state_handle = chrc->value_handle; in aics_discover_func() 593 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_AICS_GAIN_SETTINGS)) { in aics_discover_func() 595 inst->cli.gain_handle = chrc->value_handle; in aics_discover_func() 596 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_AICS_INPUT_TYPE)) { in aics_discover_func() 598 inst->cli.type_handle = chrc->value_handle; in aics_discover_func() [all …]
|
D | tbs_client.c | 1576 const struct bt_gatt_chrc *chrc; in discover_func() local 1579 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() 1581 if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_CALL_STATE) == 0) { in discover_func() 1584 sub_params->value_handle = chrc->value_handle; in discover_func() 1587 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_PROVIDER_NAME) == 0) { in discover_func() 1590 sub_params->value_handle = chrc->value_handle; in discover_func() 1594 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_UCI) == 0) { in discover_func() 1596 current_inst->bearer_uci_handle = chrc->value_handle; in discover_func() 1599 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_TECHNOLOGY) == 0) { in discover_func() 1602 sub_params->value_handle = chrc->value_handle; in discover_func() [all …]
|
D | has_client.c | 569 const struct bt_gatt_chrc *chrc; in control_point_discover_cb() local 580 chrc = attr->user_data; in control_point_discover_cb() 582 err = control_point_subscribe(inst, chrc->value_handle, chrc->properties); in control_point_discover_cb() 760 const struct bt_gatt_chrc *chrc; in features_discover_cb() local 770 chrc = attr->user_data; in features_discover_cb() 773 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in features_discover_cb() 774 err = features_subscribe(inst, chrc->value_handle); in features_discover_cb() 780 err = features_read(inst, chrc->value_handle); in features_discover_cb()
|
D | csip_set_coordinator.c | 683 struct bt_gatt_chrc *chrc; in discover_func() local 727 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() 728 if (bt_uuid_cmp(chrc->uuid, BT_UUID_CSIS_SIRK) == 0) { in discover_func() 730 client->cur_inst->sirk_handle = chrc->value_handle; in discover_func() 734 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_CSIS_SET_SIZE) == 0) { in discover_func() 736 client->cur_inst->set_size_handle = chrc->value_handle; in discover_func() 740 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_CSIS_SET_LOCK) == 0) { in discover_func() 744 client->cur_inst->set_lock_handle = chrc->value_handle; in discover_func() 751 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_CSIS_RANK) == 0) { in discover_func() 753 client->cur_inst->rank_handle = chrc->value_handle; in discover_func() [all …]
|
D | vocs.c | 387 struct bt_gatt_chrc *chrc; in bt_vocs_register() local 446 chrc = inst->service_p->attrs[i - 1].user_data; in bt_vocs_register() 448 chrc->properties |= BT_GATT_CHRC_WRITE_WITHOUT_RESP; in bt_vocs_register() 452 chrc = inst->service_p->attrs[i - 1].user_data; in bt_vocs_register() 454 chrc->properties |= BT_GATT_CHRC_WRITE_WITHOUT_RESP; in bt_vocs_register()
|
/Zephyr-latest/samples/bluetooth/channel_sounding/src/ |
D | cs_test_reflector.c | 106 struct bt_gatt_chrc *chrc; in discover_func() local 115 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() 117 bt_uuid_to_str(chrc->uuid, str, sizeof(str)); in discover_func() 120 if (!bt_uuid_cmp(chrc->uuid, &step_data_char_uuid.uuid)) { in discover_func() 121 step_data_attr_handle = chrc->value_handle; in discover_func()
|
D | connected_cs_reflector.c | 124 struct bt_gatt_chrc *chrc; in discover_func() local 133 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() 135 bt_uuid_to_str(chrc->uuid, str, sizeof(str)); in discover_func() 138 if (!bt_uuid_cmp(chrc->uuid, &step_data_char_uuid.uuid)) { in discover_func() 139 step_data_attr_handle = chrc->value_handle; in discover_func()
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/ |
D | gatt_utils.c | 145 const struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() local 147 if (bt_uuid_cmp(chrc->uuid, BT_UUID_GATT_CLIENT_FEATURES) == 0) { in discover_func() 149 gatt_handles[CLIENT_FEATURES] = chrc->value_handle; in discover_func() 151 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_GATT_SC) == 0) { in discover_func() 153 gatt_handles[SERVICE_CHANGED] = chrc->value_handle; in discover_func() 155 } else if (bt_uuid_cmp(chrc->uuid, &test_chrc_uuid.uuid) == 0) { in discover_func() 157 gatt_handles[TEST_CHAR] = chrc->value_handle; in discover_func()
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/general/src/ |
D | gatt_client_test.c | 150 struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() local 152 if (bt_uuid_cmp(chrc->uuid, TEST_CHRC_UUID) == 0) { in discover_func() 154 chrc_handle = chrc->value_handle; in discover_func() 155 } else if (bt_uuid_cmp(chrc->uuid, TEST_LONG_CHRC_UUID) == 0) { in discover_func() 157 long_chrc_handle = chrc->value_handle; in discover_func() 158 } else if (bt_uuid_cmp(chrc->uuid, TEST_ENC_CHRC_UUID) == 0) { in discover_func() 160 enc_chrc_handle = chrc->value_handle; in discover_func() 161 } else if (bt_uuid_cmp(chrc->uuid, TEST_LESC_CHRC_UUID) == 0) { in discover_func() 163 lesc_chrc_handle = chrc->value_handle; in discover_func()
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/notify_multiple/src/ |
D | gatt_client_test.c | 156 const struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() local 158 if (bt_uuid_cmp(chrc->uuid, TEST_CHRC_UUID) == 0) { in discover_func() 160 chrc_handle = chrc->value_handle; in discover_func() 161 } else if (bt_uuid_cmp(chrc->uuid, TEST_LONG_CHRC_UUID) == 0) { in discover_func() 163 long_chrc_handle = chrc->value_handle; in discover_func() 164 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_GATT_CLIENT_FEATURES) == 0) { in discover_func() 166 csf_handle = chrc->value_handle; in discover_func()
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disable/src/ |
D | gatt_client_test.c | 135 struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() local 137 if (bt_uuid_cmp(chrc->uuid, TEST_CHRC_UUID) == 0) { in discover_func() 139 chrc_handle = chrc->value_handle; in discover_func() 140 } else if (bt_uuid_cmp(chrc->uuid, TEST_LONG_CHRC_UUID) == 0) { in discover_func() 142 long_chrc_handle = chrc->value_handle; in discover_func()
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/sc_indicate/src/ |
D | central.c | 91 const struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() local 94 if (bt_uuid_cmp(chrc->uuid, BT_UUID_GATT_SC) == 0) { in discover_func() 98 gatt_handles[SC] = chrc->value_handle; in discover_func()
|
/Zephyr-latest/subsys/bluetooth/services/ias/ |
D | ias_client.c | 101 const struct bt_gatt_chrc *chrc; in bt_ias_alert_lvl_disc_cb() local 111 chrc = (struct bt_gatt_chrc *)attr->user_data; in bt_ias_alert_lvl_disc_cb() 113 client_by_conn(conn)->alert_level_handle = chrc->value_handle; in bt_ias_alert_lvl_disc_cb()
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/eatt_notif/src/ |
D | server_test.c | 94 const struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() local 96 if (bt_uuid_cmp(chrc->uuid, TEST_CHRC_UUID) == 0) { in discover_func() 98 chrc_handle = chrc->value_handle; in discover_func()
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/notify/src/ |
D | gatt_client_test.c | 138 const struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() local 140 if (bt_uuid_cmp(chrc->uuid, TEST_CHRC_UUID) == 0) { in discover_func() 142 chrc_handle = chrc->value_handle; in discover_func() 143 } else if (bt_uuid_cmp(chrc->uuid, TEST_LONG_CHRC_UUID) == 0) { in discover_func() 145 long_chrc_handle = chrc->value_handle; in discover_func()
|
/Zephyr-latest/samples/bluetooth/periodic_adv_rsp/src/ |
D | main.c | 195 struct bt_gatt_chrc *chrc; in discover_func() local 204 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() 206 bt_uuid_to_str(chrc->uuid, str, sizeof(str)); in discover_func() 209 if (!bt_uuid_cmp(chrc->uuid, &pawr_char_uuid.uuid)) { in discover_func() 210 pawr_attr_handle = chrc->value_handle; in discover_func()
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/acl_tx_frag/src/ |
D | peer.c | 33 int find_characteristic(struct bt_conn *conn, const struct bt_uuid *svc, const struct bt_uuid *chrc, in find_characteristic() argument 55 conn, chrc, (svc_handle + 1), svc_end_handle); in find_characteristic()
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/caching/src/ |
D | gatt_client_test.c | 141 const struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() local 143 if (bt_uuid_cmp(chrc->uuid, TEST_CHRC_UUID) == 0) { in discover_func() 145 chrc_handle = chrc->value_handle; in discover_func() 147 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_GATT_CLIENT_FEATURES) == 0) { in discover_func() 149 csf_handle = chrc->value_handle; in discover_func()
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings_clear/src/ |
D | client.c | 60 const struct bt_uuid *chrc, in find_characteristic() argument 76 NULL, conn, chrc, (svc_handle + 1), in find_characteristic()
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/sample_test/src/ |
D | peer.c | 37 const struct bt_uuid *chrc, in find_characteristic() argument 59 NULL, conn, chrc, (svc_handle + 1), in find_characteristic()
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_gatt.c | 549 struct bt_gatt_chrc *chrc = attr->user_data; in add_ccc() local 559 if (!(chrc->properties & in add_ccc() 585 struct bt_gatt_chrc *chrc = attr_chrc->user_data; in add_cep() local 589 if (!(chrc->properties & BT_GATT_CHRC_EXT_PROP)) { in add_cep() 688 struct bt_gatt_attr *chrc; in add_descriptor() local 716 chrc = get_base_chrc(LAST_DB_ATTR); in add_descriptor() 717 if (!chrc) { in add_descriptor() 721 if (alloc_descriptor(chrc, &cmd_data)) { in add_descriptor() 1246 struct btp_gatt_characteristic *chrc; in disc_chrc_cb() local 1260 chrc = gatt_buf_reserve(sizeof(*chrc) + uuid_length); in disc_chrc_cb() [all …]
|