18#include <zephyr/bluetooth/gatt.h>
19#include <zephyr/bluetooth/conn.h>
int bt_gattp_init(struct bt_gattp *gattp)
Initialize the GATT profile instance.
void(* bt_gattp_indicate_cb)(struct bt_gattp *gattp, const struct bt_gattp_handle_range *handle_range, int err)
Service Changed Indication callback function.
Definition gattp.h:44
int bt_gattp_handles_assign(struct bt_gatt_dm *dm, struct bt_gattp *gattp)
Assign handles to the GATT profile instance.
int bt_gattp_unsubscribe_service_changed(struct bt_gattp *gattp)
Unsubscribe from the Service Changed indication.
int bt_gattp_subscribe_service_changed(struct bt_gattp *gattp, bt_gattp_indicate_cb func)
Subscribe to the Service Changed indication.
uint16_t end_handle
Definition gattp.h:32
uint16_t start_handle
Definition gattp.h:29
Structure for Service Changed handle range.
Definition gattp.h:27
struct bt_gatt_subscribe_params indicate_params
Definition gattp.h:61
struct bt_conn * conn
Definition gattp.h:52
atomic_t state
Definition gattp.h:67
uint16_t handle_sc
Definition gattp.h:55
uint16_t handle_sc_ccc
Definition gattp.h:58
bt_gattp_indicate_cb indicate_cb
Definition gattp.h:64
GATT profile instance.
Definition gattp.h:50