/Zephyr-Core-3.5.0/tests/bsim/bluetooth/audio/src/ |
D | pacs_notify_client_test.c | 83 struct bt_gatt_subscribe_params *subscribe_params; in discover_supported_contexts() local 94 subscribe_params = &pacs_instance.supported_contexts_sub; in discover_supported_contexts() 99 subscribe_params->value_handle = bt_gatt_attr_value_handle(attr); in discover_supported_contexts() 107 subscribe_params = &pacs_instance.supported_contexts_sub; in discover_supported_contexts() 108 subscribe_params->notify = pacs_notify_handler; in discover_supported_contexts() 109 subscribe_params->value = BT_GATT_CCC_NOTIFY; in discover_supported_contexts() 110 subscribe_params->ccc_handle = attr->handle; in discover_supported_contexts() 112 err = bt_gatt_subscribe(conn, subscribe_params); in discover_supported_contexts() 150 struct bt_gatt_subscribe_params *subscribe_params; in discover_available_contexts() local 161 subscribe_params = &pacs_instance.available_contexts_sub; in discover_available_contexts() [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/att/eatt_notif/src/ |
D | server_test.c | 153 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() 163 subscribe_params.ccc_handle = 0; in gatt_subscribe() 164 subscribe_params.disc_params = &disc_params, in gatt_subscribe() 165 subscribe_params.value = BT_GATT_CCC_NOTIFY; in gatt_subscribe() 166 subscribe_params.end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; in gatt_subscribe() 167 subscribe_params.chan_opt = BT_ATT_CHAN_OPT_NONE; in gatt_subscribe() 170 err = bt_gatt_subscribe(g_conn, &subscribe_params); in gatt_subscribe()
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/gatt/sc_indicate/src/ |
D | central.c | 36 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-Core-3.5.0/tests/bsim/bluetooth/host/gatt/settings/src/ |
D | gatt_utils.c | 199 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() 210 subscribe_params.ccc_handle = 0; in gatt_subscribe_to_service_changed() 211 subscribe_params.disc_params = &disc_params, in gatt_subscribe_to_service_changed() 212 subscribe_params.value = BT_GATT_CCC_INDICATE; in gatt_subscribe_to_service_changed() 213 subscribe_params.end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; in gatt_subscribe_to_service_changed() 215 err = bt_gatt_subscribe(get_conn(), &subscribe_params); in gatt_subscribe_to_service_changed() 221 err = bt_gatt_unsubscribe(get_conn(), &subscribe_params); in gatt_subscribe_to_service_changed()
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/security/id_addr_update/central/src/ |
D | utils.c | 215 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-Core-3.5.0/samples/bluetooth/mtu_update/central/src/ |
D | central_mtu_update.c | 40 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-Core-3.5.0/samples/bluetooth/central_hr/src/ |
D | main.c | 28 static struct bt_gatt_subscribe_params subscribe_params; variable 75 subscribe_params.value_handle = bt_gatt_attr_value_handle(attr); in discover_func() 82 subscribe_params.notify = notify_func; in discover_func() 83 subscribe_params.value = BT_GATT_CCC_NOTIFY; in discover_func() 84 subscribe_params.ccc_handle = attr->handle; in discover_func() 86 err = bt_gatt_subscribe(conn, &subscribe_params); in discover_func()
|
/Zephyr-Core-3.5.0/samples/bluetooth/central_ht/src/ |
D | main.c | 28 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-Core-3.5.0/subsys/bluetooth/shell/ |
D | gatt.c | 553 static struct bt_gatt_subscribe_params subscribe_params; variable 576 if (subscribe_params.value_handle) { in cmd_subscribe() 578 "already exists", subscribe_params.value_handle); in cmd_subscribe() 587 subscribe_params.ccc_handle = strtoul(argv[1], NULL, 16); in cmd_subscribe() 588 subscribe_params.value_handle = strtoul(argv[2], NULL, 16); in cmd_subscribe() 589 subscribe_params.value = BT_GATT_CCC_NOTIFY; in cmd_subscribe() 590 subscribe_params.notify = notify_func; in cmd_subscribe() 591 SET_CHAN_OPT_ANY(subscribe_params); in cmd_subscribe() 594 if (subscribe_params.ccc_handle == 0) { in cmd_subscribe() 597 subscribe_params.disc_params = &disc_params; in cmd_subscribe() [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/ll/conn/src/ |
D | test_connect1.c | 30 static struct bt_gatt_subscribe_params subscribe_params; variable 181 subscribe_params.value_handle = attr->handle + 1; in discover_func() 188 subscribe_params.notify = notify_func; in discover_func() 189 subscribe_params.value = BT_GATT_CCC_NOTIFY; in discover_func() 190 subscribe_params.ccc_handle = attr->handle; in discover_func() 192 err = bt_gatt_subscribe(conn, &subscribe_params); in discover_func()
|