/Zephyr-Core-3.6.0/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-Core-3.6.0/subsys/bluetooth/audio/ |
D | mcc.c | 1385 struct bt_gatt_chrc *chrc; in discover_otc_char_func() local 1399 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_otc_char_func() 1400 if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_FEATURE)) { in discover_otc_char_func() 1402 mcs_inst->otc.feature_handle = chrc->value_handle; in discover_otc_char_func() 1403 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_NAME)) { in discover_otc_char_func() 1405 mcs_inst->otc.obj_name_handle = chrc->value_handle; in discover_otc_char_func() 1406 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_TYPE)) { in discover_otc_char_func() 1408 mcs_inst->otc.obj_type_handle = chrc->value_handle; in discover_otc_char_func() 1409 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_OTS_SIZE)) { in discover_otc_char_func() 1411 mcs_inst->otc.obj_size_handle = chrc->value_handle; in discover_otc_char_func() [all …]
|
D | vocs_client.c | 368 struct bt_gatt_chrc *chrc; in vocs_discover_func() local 370 chrc = (struct bt_gatt_chrc *)attr->user_data; in vocs_discover_func() 372 inst->start_handle = chrc->value_handle; in vocs_discover_func() 374 inst->end_handle = chrc->value_handle; in vocs_discover_func() 376 if (!bt_uuid_cmp(chrc->uuid, BT_UUID_VOCS_STATE)) { in vocs_discover_func() 378 inst->state_handle = chrc->value_handle; in vocs_discover_func() 380 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_VOCS_LOCATION)) { in vocs_discover_func() 382 inst->location_handle = chrc->value_handle; in vocs_discover_func() 383 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in vocs_discover_func() 386 if (chrc->properties & BT_GATT_CHRC_WRITE_WITHOUT_RESP) { in vocs_discover_func() [all …]
|
D | gmap_client.c | 151 const struct bt_gatt_chrc *chrc; in bgr_feat_discover_func() local 164 chrc = attr->user_data; in bgr_feat_discover_func() 167 err = gmap_read_bgr_feat(gmap_cli, chrc->value_handle); in bgr_feat_discover_func() 250 const struct bt_gatt_chrc *chrc; in bgs_feat_discover_func() local 263 chrc = attr->user_data; in bgs_feat_discover_func() 266 err = gmap_read_bgs_feat(gmap_cli, chrc->value_handle); in bgs_feat_discover_func() 351 const struct bt_gatt_chrc *chrc; in ugt_feat_discover_func() local 364 chrc = attr->user_data; in ugt_feat_discover_func() 367 err = gmap_read_ugt_feat(gmap_cli, chrc->value_handle); in ugt_feat_discover_func() 454 const struct bt_gatt_chrc *chrc; in ugg_feat_discover_func() local [all …]
|
D | tbs_client.c | 1418 const struct bt_gatt_chrc *chrc; in discover_func() local 1421 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() 1423 if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_CALL_STATE) == 0) { in discover_func() 1426 sub_params->value_handle = chrc->value_handle; in discover_func() 1429 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_PROVIDER_NAME) == 0) { in discover_func() 1432 sub_params->value_handle = chrc->value_handle; in discover_func() 1436 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_UCI) == 0) { in discover_func() 1438 current_inst->bearer_uci_handle = chrc->value_handle; in discover_func() 1441 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_TBS_TECHNOLOGY) == 0) { in discover_func() 1444 sub_params->value_handle = chrc->value_handle; in discover_func() [all …]
|
D | aics_client.c | 573 struct bt_gatt_chrc *chrc; in aics_discover_func() local 575 chrc = (struct bt_gatt_chrc *)attr->user_data; in aics_discover_func() 577 inst->cli.start_handle = chrc->value_handle; in aics_discover_func() 579 inst->cli.end_handle = chrc->value_handle; in aics_discover_func() 581 if (!bt_uuid_cmp(chrc->uuid, BT_UUID_AICS_STATE)) { in aics_discover_func() 583 inst->cli.state_handle = chrc->value_handle; in aics_discover_func() 585 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_AICS_GAIN_SETTINGS)) { in aics_discover_func() 587 inst->cli.gain_handle = chrc->value_handle; in aics_discover_func() 588 } else if (!bt_uuid_cmp(chrc->uuid, BT_UUID_AICS_INPUT_TYPE)) { in aics_discover_func() 590 inst->cli.type_handle = chrc->value_handle; in aics_discover_func() [all …]
|
D | has_client.c | 560 const struct bt_gatt_chrc *chrc; in control_point_discover_cb() local 571 chrc = attr->user_data; in control_point_discover_cb() 573 err = control_point_subscribe(inst, chrc->value_handle, chrc->properties); in control_point_discover_cb() 751 const struct bt_gatt_chrc *chrc; in features_discover_cb() local 761 chrc = attr->user_data; in features_discover_cb() 764 if (chrc->properties & BT_GATT_CHRC_NOTIFY) { in features_discover_cb() 765 err = features_subscribe(inst, chrc->value_handle); in features_discover_cb() 771 err = features_read(inst, chrc->value_handle); in features_discover_cb()
|
D | csip_set_coordinator.c | 661 struct bt_gatt_chrc *chrc; in discover_func() local 705 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() 706 if (bt_uuid_cmp(chrc->uuid, BT_UUID_CSIS_SET_SIRK) == 0) { in discover_func() 708 cur_inst->set_sirk_handle = chrc->value_handle; in discover_func() 712 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_CSIS_SET_SIZE) == 0) { in discover_func() 714 cur_inst->set_size_handle = chrc->value_handle; in discover_func() 718 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_CSIS_SET_LOCK) == 0) { in discover_func() 722 cur_inst->set_lock_handle = chrc->value_handle; in discover_func() 729 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_CSIS_RANK) == 0) { in discover_func() 731 cur_inst->rank_handle = chrc->value_handle; in discover_func() [all …]
|
D | vcp_vol_ctlr.c | 424 struct bt_gatt_chrc *chrc; in vcs_discover_func() local 453 chrc = (struct bt_gatt_chrc *)attr->user_data; in vcs_discover_func() 455 if (bt_uuid_cmp(chrc->uuid, BT_UUID_VCS_STATE) == 0) { in vcs_discover_func() 457 vol_ctlr->state_handle = chrc->value_handle; in vcs_discover_func() 460 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_VCS_CONTROL) == 0) { in vcs_discover_func() 462 vol_ctlr->control_handle = chrc->value_handle; in vcs_discover_func() 463 } else if (bt_uuid_cmp(chrc->uuid, BT_UUID_VCS_FLAGS) == 0) { in vcs_discover_func() 465 vol_ctlr->flag_handle = chrc->value_handle; in vcs_discover_func() 472 sub_params->value_handle = chrc->value_handle; in vcs_discover_func()
|
D | vocs.c | 375 struct bt_gatt_chrc *chrc; in bt_vocs_register() local 434 chrc = inst->service_p->attrs[i - 1].user_data; in bt_vocs_register() 436 chrc->properties |= BT_GATT_CHRC_WRITE_WITHOUT_RESP; in bt_vocs_register() 440 chrc = inst->service_p->attrs[i - 1].user_data; in bt_vocs_register() 442 chrc->properties |= BT_GATT_CHRC_WRITE_WITHOUT_RESP; in bt_vocs_register()
|
D | micp_mic_ctlr.c | 401 struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in micp_discover_func() local 404 if (bt_uuid_cmp(chrc->uuid, BT_UUID_MICS_MUTE) == 0) { in micp_discover_func() 406 mic_ctlr->mute_handle = chrc->value_handle; in micp_discover_func() 418 sub_params->value_handle = chrc->value_handle; in micp_discover_func()
|
D | bap_unicast_client.c | 3201 struct bt_gatt_chrc *chrc; in unicast_client_cp_discover_func() local 3211 chrc = attr->user_data; in unicast_client_cp_discover_func() 3212 value_handle = chrc->value_handle; in unicast_client_cp_discover_func() 3326 struct bt_gatt_chrc *chrc; in unicast_client_ase_discover_cb() local 3341 chrc = attr->user_data; in unicast_client_ase_discover_cb() 3342 value_handle = chrc->value_handle; in unicast_client_ase_discover_cb() 3491 const struct bt_gatt_chrc *chrc; in unicast_client_pacs_avail_ctx_discover_cb() local 3506 chrc = attr->user_data; in unicast_client_pacs_avail_ctx_discover_cb() 3507 chrc_properties = chrc->properties; in unicast_client_pacs_avail_ctx_discover_cb() 3508 value_handle = chrc->value_handle; in unicast_client_pacs_avail_ctx_discover_cb() [all …]
|
/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/samples/bluetooth/periodic_adv_rsp/src/ |
D | main.c | 193 struct bt_gatt_chrc *chrc; in discover_func() local 202 chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func() 204 bt_uuid_to_str(chrc->uuid, str, sizeof(str)); in discover_func() 207 if (!bt_uuid_cmp(chrc->uuid, &pawr_char_uuid.uuid)) { in discover_func() 208 pawr_attr_handle = chrc->value_handle; in discover_func()
|
/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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 …]
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/att/pipeline/dut/src/ |
D | main.c | 257 const struct bt_uuid *chrc, uint16_t *chrc_value_handle) in find_the_chrc() argument 270 NULL, conn, chrc, (svc_handle + 1), in find_the_chrc()
|
/Zephyr-Core-3.6.0/samples/bluetooth/peripheral_esp/src/ |
D | main.c | 253 const struct bt_gatt_attr *chrc, int16_t value, in update_temperature() argument 267 bt_gatt_notify(conn, chrc, &value, sizeof(value)); in update_temperature()
|