Home
last modified time | relevance | path

Searched refs:subscribe_params (Results 1 – 14 of 14) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dpacs_notify_client_test.c99 struct bt_gatt_subscribe_params *subscribe_params; in discover_supported_contexts() local
110 subscribe_params = &pacs_instance.supported_contexts_sub; in discover_supported_contexts()
115 subscribe_params->value_handle = bt_gatt_attr_value_handle(attr); in discover_supported_contexts()
123 subscribe_params = &pacs_instance.supported_contexts_sub; in discover_supported_contexts()
124 subscribe_params->notify = pacs_notify_handler; in discover_supported_contexts()
125 subscribe_params->value = BT_GATT_CCC_NOTIFY; in discover_supported_contexts()
126 subscribe_params->ccc_handle = attr->handle; in discover_supported_contexts()
128 err = bt_gatt_subscribe(conn, subscribe_params); in discover_supported_contexts()
166 struct bt_gatt_subscribe_params *subscribe_params; in discover_available_contexts() local
177 subscribe_params = &pacs_instance.available_contexts_sub; in discover_available_contexts()
[all …]
Dhas_client_test.c435 struct bt_gatt_subscribe_params *subscribe_params; in discover_features_cb() local
450 subscribe_params = &features_sub; in discover_features_cb()
451 subscribe_params->value_handle = bt_gatt_attr_value_handle(attr); in discover_features_cb()
459 subscribe_params = &features_sub; in discover_features_cb()
460 subscribe_params->notify = notify_handler; in discover_features_cb()
461 subscribe_params->value = BT_GATT_CCC_NOTIFY; in discover_features_cb()
462 subscribe_params->ccc_handle = attr->handle; in discover_features_cb()
463 subscribe_params->subscribe = subscribe_cb; in discover_features_cb()
465 err = bt_gatt_subscribe(conn, subscribe_params); in discover_features_cb()
501 struct bt_gatt_subscribe_params *subscribe_params; in discover_active_preset_index_cb() local
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/att/eatt_notif/src/
Dserver_test.c153 static struct bt_gatt_subscribe_params subscribe_params; variable
158 subscribe_params.value_handle = chrc_handle; in gatt_subscribe()
159 subscribe_params.notify = notify_cb; in gatt_subscribe()
160 subscribe_params.subscribe = subscribed_cb; in gatt_subscribe()
162 subscribe_params.ccc_handle = BT_GATT_AUTO_DISCOVER_CCC_HANDLE; in gatt_subscribe()
163 subscribe_params.disc_params = &disc_params, in gatt_subscribe()
164 subscribe_params.value = BT_GATT_CCC_NOTIFY; in gatt_subscribe()
165 subscribe_params.end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; in gatt_subscribe()
166 subscribe_params.chan_opt = BT_ATT_CHAN_OPT_NONE; in gatt_subscribe()
169 err = bt_gatt_subscribe(g_conn, &subscribe_params); in gatt_subscribe()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/sc_indicate/src/
Dcentral.c36 static struct bt_gatt_subscribe_params subscribe_params; variable
62 subscribe_params.ccc_handle = gatt_handles[CCC]; in subscribe()
63 subscribe_params.value_handle = gatt_handles[SC]; in subscribe()
64 subscribe_params.value = BT_GATT_CCC_INDICATE; in subscribe()
65 subscribe_params.subscribe = sc_subscribed; in subscribe()
66 subscribe_params.notify = sc_indicated; in subscribe()
68 err = bt_gatt_subscribe(get_g_conn(), &subscribe_params); in subscribe()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/
Dgatt_utils.c199 static struct bt_gatt_subscribe_params subscribe_params; variable
204 subscribe_params.value_handle = gatt_handles[SERVICE_CHANGED]; in gatt_subscribe_to_service_changed()
205 subscribe_params.notify = sc_indicated; in gatt_subscribe_to_service_changed()
206 subscribe_params.subscribe = sc_subscribed; in gatt_subscribe_to_service_changed()
209 subscribe_params.ccc_handle = BT_GATT_AUTO_DISCOVER_CCC_HANDLE; in gatt_subscribe_to_service_changed()
210 subscribe_params.disc_params = &disc_params, in gatt_subscribe_to_service_changed()
211 subscribe_params.value = BT_GATT_CCC_INDICATE; in gatt_subscribe_to_service_changed()
212 subscribe_params.end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; in gatt_subscribe_to_service_changed()
214 err = bt_gatt_subscribe(get_conn(), &subscribe_params); in gatt_subscribe_to_service_changed()
220 err = bt_gatt_unsubscribe(get_conn(), &subscribe_params); in gatt_subscribe_to_service_changed()
/Zephyr-latest/tests/bsim/bluetooth/host/security/id_addr_update/central/src/
Dutils.c215 static struct bt_gatt_subscribe_params subscribe_params = {0}; in bas_subscribe() local
220 subscribe_params.ccc_handle = bt_gatt_attr_get_handle(&bas.attrs[3]); in bas_subscribe()
221 subscribe_params.value_handle = bt_gatt_attr_get_handle(&bas.attrs[2]); in bas_subscribe()
222 subscribe_params.value = BT_GATT_CCC_NOTIFY; in bas_subscribe()
223 subscribe_params.notify = bas_notify_func; in bas_subscribe()
225 err = bt_gatt_subscribe(conn, &subscribe_params); in bas_subscribe()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/ccc_store/src/
Dcentral.c75 static struct bt_gatt_subscribe_params subscribe_params; variable
83 subscribe_params.notify = notify_cb; in ccc_subscribe()
84 subscribe_params.subscribe = subscribe_cb; in ccc_subscribe()
85 subscribe_params.ccc_handle = CCC_HANDLE; in ccc_subscribe()
86 subscribe_params.value_handle = VAL_HANDLE; in ccc_subscribe()
87 subscribe_params.value = BT_GATT_CCC_NOTIFY; in ccc_subscribe()
89 err = bt_gatt_subscribe(default_conn, &subscribe_params); in ccc_subscribe()
/Zephyr-latest/samples/bluetooth/mtu_update/central/src/
Dcentral_mtu_update.c40 static struct bt_gatt_subscribe_params subscribe_params; variable
90 subscribe_params.value_handle = bt_gatt_attr_value_handle(attr); in discover_func()
97 subscribe_params.notify = notify_func; in discover_func()
98 subscribe_params.value = BT_GATT_CCC_NOTIFY; in discover_func()
99 subscribe_params.ccc_handle = attr->handle; in discover_func()
101 err = bt_gatt_subscribe(conn, &subscribe_params); in discover_func()
/Zephyr-latest/samples/bluetooth/central_hr/src/
Dmain.c28 static struct bt_gatt_subscribe_params subscribe_params; variable
79 subscribe_params.value_handle = bt_gatt_attr_value_handle(attr); in discover_func()
86 subscribe_params.notify = notify_func; in discover_func()
87 subscribe_params.value = BT_GATT_CCC_NOTIFY; in discover_func()
88 subscribe_params.ccc_handle = attr->handle; in discover_func()
90 err = bt_gatt_subscribe(conn, &subscribe_params); in discover_func()
/Zephyr-latest/samples/bluetooth/central_ht/src/
Dmain.c28 static struct bt_gatt_subscribe_params subscribe_params; variable
102 subscribe_params.value_handle = bt_gatt_attr_value_handle(attr); in discover_func()
109 subscribe_params.notify = notify_func; in discover_func()
110 subscribe_params.value = BT_GATT_CCC_INDICATE; in discover_func()
111 subscribe_params.ccc_handle = attr->handle; in discover_func()
113 err = bt_gatt_subscribe(conn, &subscribe_params); in discover_func()
/Zephyr-latest/subsys/bluetooth/host/shell/
Dgatt.c545 static struct bt_gatt_subscribe_params subscribe_params; variable
568 if (subscribe_params.value_handle) { in cmd_subscribe()
570 subscribe_params.value_handle); in cmd_subscribe()
579 subscribe_params.ccc_handle = strtoul(argv[1], NULL, 16); in cmd_subscribe()
580 subscribe_params.value_handle = strtoul(argv[2], NULL, 16); in cmd_subscribe()
581 subscribe_params.value = BT_GATT_CCC_NOTIFY; in cmd_subscribe()
582 subscribe_params.notify = notify_func; in cmd_subscribe()
583 SET_CHAN_OPT_ANY(subscribe_params); in cmd_subscribe()
586 if (subscribe_params.ccc_handle == BT_GATT_AUTO_DISCOVER_CCC_HANDLE) { in cmd_subscribe()
589 subscribe_params.disc_params = &disc_params; in cmd_subscribe()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/ll/conn/src/
Dtest_connect1.c30 static struct bt_gatt_subscribe_params subscribe_params; variable
211 subscribe_params.value_handle = attr->handle + 1; in discover_func()
218 subscribe_params.notify = notify_func; in discover_func()
219 subscribe_params.value = BT_GATT_CCC_NOTIFY; in discover_func()
220 subscribe_params.ccc_handle = attr->handle; in discover_func()
222 err = bt_gatt_subscribe(conn, &subscribe_params); in discover_func()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/conn_stress/peripheral/src/
Dmain.c95 static struct bt_gatt_subscribe_params subscribe_params; variable
286 subscribe_params.value_handle = bt_gatt_attr_value_handle(attr); in discover_func()
297 subscribe_params.notify = rx_notification; in discover_func()
298 subscribe_params.value = BT_GATT_CCC_NOTIFY; in discover_func()
299 subscribe_params.ccc_handle = attr->handle; in discover_func()
302 err = bt_gatt_subscribe(conn, &subscribe_params); in discover_func()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/conn_stress/central/src/
Dmain.c90 struct bt_gatt_subscribe_params subscribe_params; member
259 conn_info_ref->subscribe_params.value_handle = bt_gatt_attr_value_handle(attr); in discover_func()
269 conn_info_ref->subscribe_params.notify = notify_func; in discover_func()
270 conn_info_ref->subscribe_params.value = BT_GATT_CCC_NOTIFY; in discover_func()
271 conn_info_ref->subscribe_params.ccc_handle = attr->handle; in discover_func()
273 err = bt_gatt_subscribe(conn, &conn_info_ref->subscribe_params); in discover_func()