Home
last modified time | relevance | path

Searched refs:sub_params (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/host/misc/acl_tx_frag/src/
Dpeer.c96 static struct bt_gatt_subscribe_params sub_params; variable
108 sub_params.notify = cb; in subscribe()
109 sub_params.subscribe = sub_cb; in subscribe()
110 sub_params.value = BT_GATT_CCC_INDICATE; in subscribe()
111 sub_params.value_handle = handle; in subscribe()
112 sub_params.ccc_handle = BT_GATT_AUTO_DISCOVER_CCC_HANDLE; in subscribe()
113 sub_params.disc_params = &ccc_disc_params; in subscribe()
114 sub_params.end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; in subscribe()
116 err = bt_gatt_subscribe(conn, &sub_params); in subscribe()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/sample_test/src/
Dpeer.c110 static struct bt_gatt_subscribe_params sub_params; variable
124 sub_params.notify = cb; in subscribe()
125 sub_params.subscribe = sub_cb; in subscribe()
126 sub_params.value = BT_GATT_CCC_NOTIFY; in subscribe()
127 sub_params.value_handle = handle; in subscribe()
128 sub_params.ccc_handle = BT_GATT_AUTO_DISCOVER_CCC_HANDLE; in subscribe()
129 sub_params.disc_params = &ccc_disc_params; in subscribe()
130 sub_params.end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; in subscribe()
132 err = bt_gatt_subscribe(conn, &sub_params); in subscribe()
152 sub_params.ccc_handle, data, sizeof(data)); in unsubscribe_but_not_really()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings_clear/src/
Dclient.c37 static struct bt_gatt_subscribe_params sub_params; variable
118 sub_params.notify = cb; in subscribe()
119 sub_params.subscribe = sub_cb; in subscribe()
120 sub_params.value = BT_GATT_CCC_NOTIFY; in subscribe()
121 sub_params.value_handle = handle; in subscribe()
122 sub_params.ccc_handle = BT_GATT_AUTO_DISCOVER_CCC_HANDLE; in subscribe()
123 sub_params.disc_params = &ccc_disc_params; in subscribe()
124 sub_params.end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; in subscribe()
126 err = bt_gatt_subscribe(conn, &sub_params); in subscribe()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/dut/src/
Ddut.c61 static struct bt_gatt_subscribe_params sub_params; variable
74 sub_params.notify = cb; in fake_subscribe()
75 sub_params.value = BT_GATT_CCC_NOTIFY; in fake_subscribe()
76 sub_params.value_handle = handle; in fake_subscribe()
79 sub_params.ccc_handle = handle + 2; in fake_subscribe()
81 err = bt_gatt_resubscribe(0, peer, &sub_params); in fake_subscribe()
/Zephyr-latest/subsys/bluetooth/audio/
Dtbs_client.c1577 struct bt_gatt_subscribe_params *sub_params = NULL; in discover_func() local
1583 sub_params = &current_inst->call_state_sub_params; in discover_func()
1584 sub_params->value_handle = chrc->value_handle; in discover_func()
1585 sub_params->disc_params = &current_inst->call_state_sub_disc_params; in discover_func()
1589 sub_params = &current_inst->name_sub_params; in discover_func()
1590 sub_params->value_handle = chrc->value_handle; in discover_func()
1591 sub_params->disc_params = &current_inst->name_sub_disc_params; in discover_func()
1601 sub_params = &current_inst->technology_sub_params; in discover_func()
1602 sub_params->value_handle = chrc->value_handle; in discover_func()
1603 sub_params->disc_params = &current_inst->technology_sub_disc_params; in discover_func()
[all …]
Dmicp_mic_ctlr.c414 struct bt_gatt_subscribe_params *sub_params = NULL; in micp_discover_func() local
419 sub_params = &mic_ctlr->mute_sub_params; in micp_discover_func()
420 sub_params->disc_params = &mic_ctlr->mute_sub_disc_params; in micp_discover_func()
423 if (sub_params != NULL) { in micp_discover_func()
426 sub_params->ccc_handle = BT_GATT_AUTO_DISCOVER_CCC_HANDLE; in micp_discover_func()
427 sub_params->end_handle = mic_ctlr->end_handle; in micp_discover_func()
428 sub_params->value = BT_GATT_CCC_NOTIFY; in micp_discover_func()
429 sub_params->value_handle = chrc->value_handle; in micp_discover_func()
430 sub_params->notify = mute_notify_handler; in micp_discover_func()
431 atomic_set_bit(sub_params->flags, BT_GATT_SUBSCRIBE_FLAG_VOLATILE); in micp_discover_func()
[all …]
Dvocs_client.c377 struct bt_gatt_subscribe_params *sub_params = NULL; in vocs_discover_func() local
389 sub_params = &inst->state_sub_params; in vocs_discover_func()
394 sub_params = &inst->location_sub_params; in vocs_discover_func()
406 sub_params = &inst->desc_sub_params; in vocs_discover_func()
413 if (sub_params) { in vocs_discover_func()
416 sub_params->value = BT_GATT_CCC_NOTIFY; in vocs_discover_func()
417 sub_params->value_handle = chrc->value_handle; in vocs_discover_func()
422 sub_params->ccc_handle = attr->handle + 2; in vocs_discover_func()
423 sub_params->notify = vocs_client_notify_handler; in vocs_discover_func()
424 atomic_set_bit(sub_params->flags, BT_GATT_SUBSCRIBE_FLAG_VOLATILE); in vocs_discover_func()
[all …]
Dcsip_set_coordinator.c685 struct bt_gatt_subscribe_params *sub_params = NULL; in discover_func() local
731 sub_params = &client->cur_inst->sirk_sub_params; in discover_func()
732 sub_params->disc_params = &client->cur_inst->sirk_sub_disc_params; in discover_func()
737 sub_params = &client->cur_inst->size_sub_params; in discover_func()
738 sub_params->disc_params = &client->cur_inst->size_sub_disc_params; in discover_func()
745 sub_params = &client->cur_inst->lock_sub_params; in discover_func()
746 sub_params->disc_params = &client->cur_inst->lock_sub_disc_params; in discover_func()
756 if (sub_params != NULL && notify_handler != NULL) { in discover_func()
757 sub_params->value = 0; in discover_func()
759 sub_params->value = BT_GATT_CCC_NOTIFY; in discover_func()
[all …]
Dmcc.c1397 struct bt_gatt_subscribe_params *sub_params = NULL; in discover_otc_char_func() local
1432 sub_params = &mcs_inst->otc.oacp_sub_params; in discover_otc_char_func()
1433 sub_params->disc_params = &mcs_inst->otc.oacp_sub_disc_params; in discover_otc_char_func()
1437 sub_params = &mcs_inst->otc.olcp_sub_params; in discover_otc_char_func()
1438 sub_params->disc_params = &mcs_inst->otc.olcp_sub_disc_params; in discover_otc_char_func()
1441 if (sub_params) { in discover_otc_char_func()
1442 sub_params->ccc_handle = BT_GATT_AUTO_DISCOVER_CCC_HANDLE; in discover_otc_char_func()
1443 sub_params->end_handle = mcs_inst->otc.end_handle; in discover_otc_char_func()
1444 sub_params->value = BT_GATT_CCC_INDICATE; in discover_otc_char_func()
1445 sub_params->value_handle = chrc->value_handle; in discover_otc_char_func()
[all …]
Dvcp_vol_ctlr.c435 struct bt_gatt_subscribe_params *sub_params = NULL; in vcs_discover_func() local
468 sub_params = &vol_ctlr->state_sub_params; in vcs_discover_func()
469 sub_params->disc_params = &vol_ctlr->state_sub_disc_params; in vcs_discover_func()
476 sub_params = &vol_ctlr->vol_flag_sub_params; in vcs_discover_func()
477 sub_params->disc_params = &vol_ctlr->vol_flag_sub_disc_params; in vcs_discover_func()
480 if (sub_params != NULL) { in vcs_discover_func()
481 sub_params->value = BT_GATT_CCC_NOTIFY; in vcs_discover_func()
482 sub_params->value_handle = chrc->value_handle; in vcs_discover_func()
483 sub_params->ccc_handle = BT_GATT_AUTO_DISCOVER_CCC_HANDLE; in vcs_discover_func()
484 sub_params->end_handle = vol_ctlr->end_handle; in vcs_discover_func()
[all …]
Daics_client.c580 struct bt_gatt_subscribe_params *sub_params = NULL; in aics_discover_func() local
592 sub_params = &inst->cli.state_sub_params; in aics_discover_func()
602 sub_params = &inst->cli.status_sub_params; in aics_discover_func()
610 sub_params = &inst->cli.desc_sub_params; in aics_discover_func()
618 if (sub_params) { in aics_discover_func()
621 sub_params->value = BT_GATT_CCC_NOTIFY; in aics_discover_func()
622 sub_params->value_handle = chrc->value_handle; in aics_discover_func()
627 sub_params->ccc_handle = attr->handle + 2; in aics_discover_func()
628 sub_params->notify = aics_client_notify_handler; in aics_discover_func()
629 atomic_set_bit(sub_params->flags, BT_GATT_SUBSCRIBE_FLAG_VOLATILE); in aics_discover_func()
[all …]
Dbap_broadcast_assistant.c661 struct bt_gatt_subscribe_params *sub_params = NULL; in char_discover_func() local
698 sub_params = &inst->recv_state_sub_params[idx]; in char_discover_func()
699 sub_params->disc_params = &inst->recv_state_disc_params[idx]; in char_discover_func()
703 if (sub_params != NULL) { in char_discover_func()
704 sub_params->end_handle = inst->end_handle; in char_discover_func()
705 sub_params->ccc_handle = BT_GATT_AUTO_DISCOVER_CCC_HANDLE; in char_discover_func()
706 sub_params->value = BT_GATT_CCC_NOTIFY; in char_discover_func()
707 sub_params->value_handle = attr->handle + 1; in char_discover_func()
708 sub_params->notify = notify_handler; in char_discover_func()
709 atomic_set_bit(sub_params->flags, BT_GATT_SUBSCRIBE_FLAG_VOLATILE); in char_discover_func()
[all …]
Dbap_unicast_client.c1832 struct bt_gatt_subscribe_params *sub_params) in unicast_client_cp_sub_cb() argument
3940 struct bt_gatt_subscribe_params *sub_params; in unicast_client_pacs_avail_ctx_discover_cb() local
3942 sub_params = &uni_cli_insts[index].avail_ctx_subscribe; in unicast_client_pacs_avail_ctx_discover_cb()
3944 if (sub_params->value_handle == 0) { in unicast_client_pacs_avail_ctx_discover_cb()
3946 sub_params->value_handle = value_handle; in unicast_client_pacs_avail_ctx_discover_cb()
3947 sub_params->ccc_handle = BT_GATT_AUTO_DISCOVER_CCC_HANDLE; in unicast_client_pacs_avail_ctx_discover_cb()
3948 sub_params->end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; in unicast_client_pacs_avail_ctx_discover_cb()
3949 sub_params->disc_params = &uni_cli_insts[index].avail_ctx_cc_disc; in unicast_client_pacs_avail_ctx_discover_cb()
3950 sub_params->notify = unicast_client_pacs_avail_ctx_notify_cb; in unicast_client_pacs_avail_ctx_discover_cb()
3951 sub_params->value = BT_GATT_CCC_NOTIFY; in unicast_client_pacs_avail_ctx_discover_cb()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/
Dgatt.h1685 struct bt_gatt_subscribe_params *sub_params; member
/Zephyr-latest/subsys/bluetooth/host/
Dgatt.c5382 struct bt_gatt_subscribe_params *sub_params = params->sub_params; in gatt_ccc_discover_cb() local
5386 sub_params->notify(conn, sub_params, NULL, 0); in gatt_ccc_discover_cb()
5392 sub_params->ccc_handle = attr->handle; in gatt_ccc_discover_cb()
5394 if (bt_gatt_subscribe(conn, sub_params)) { in gatt_ccc_discover_cb()
5395 sub_params->notify(conn, sub_params, NULL, 0); in gatt_ccc_discover_cb()
5416 params->disc_params->sub_params = params; in gatt_ccc_discover()