|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Internal representation of CCC value. More...
#include <zephyr/bluetooth/gatt.h>
Data Fields | |
| struct bt_gatt_ccc_cfg | cfg [0] |
| Configuration for each connection. | |
| uint16_t | value |
| Highest value of all connected peer's subscriptions. | |
| void(* | cfg_changed )(const struct bt_gatt_attr *attr, uint16_t value) |
| CCC attribute changed callback. | |
| ssize_t(* | cfg_write )(struct bt_conn *conn, const struct bt_gatt_attr *attr, uint16_t value) |
| CCC attribute write validation callback. | |
| bool(* | cfg_match )(struct bt_conn *conn, const struct bt_gatt_attr *attr) |
| CCC attribute match handler. | |
Internal representation of CCC value.
| struct bt_gatt_ccc_cfg bt_gatt_ccc_managed_user_data::cfg[0] |
Configuration for each connection.
| void(* bt_gatt_ccc_managed_user_data::cfg_changed) (const struct bt_gatt_attr *attr, uint16_t value) |
CCC attribute changed callback.
| attr | The attribute that's changed value |
| value | New value |
| bool(* bt_gatt_ccc_managed_user_data::cfg_match) (struct bt_conn *conn, const struct bt_gatt_attr *attr) |
CCC attribute match handler.
Indicate if it is OK to send a notification or indication to the subscriber.
| conn | The connection that is being checked |
| attr | The attribute that's being checked |
| ssize_t(* bt_gatt_ccc_managed_user_data::cfg_write) (struct bt_conn *conn, const struct bt_gatt_attr *attr, uint16_t value) |
CCC attribute write validation callback.
| conn | The connection that is requesting to write |
| attr | The attribute that's being written |
| value | CCC value to write |
| uint16_t bt_gatt_ccc_managed_user_data::value |
Highest value of all connected peer's subscriptions.