Home
last modified time | relevance | path

Searched refs:chrc (Results 1 – 25 of 34) sorted by relevance

12

/Zephyr-latest/tests/bsim/bluetooth/host/gatt/authorization/src/
Dgatt_client_test.c136 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/
Dmcc.c1396 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 …]
Dvocs_client.c378 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 …]
Dgmap_client.c170 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 …]
Daics_client.c581 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 …]
Dtbs_client.c1576 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 …]
Dhas_client.c569 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()
Dcsip_set_coordinator.c683 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 …]
Dvocs.c387 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/
Dcs_test_reflector.c106 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()
Dconnected_cs_reflector.c124 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/
Dgatt_utils.c145 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/
Dgatt_client_test.c150 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/
Dgatt_client_test.c156 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/
Dgatt_client_test.c135 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/
Dcentral.c91 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/
Dias_client.c101 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/
Dserver_test.c94 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/
Dgatt_client_test.c138 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/
Dmain.c195 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/
Dpeer.c33 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/
Dgatt_client_test.c141 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/
Dclient.c60 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/
Dpeer.c37 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/
Dbtp_gatt.c549 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 …]

12