Bluetooth: host: Add Server Characteristic Configuration definitions

Add Server Characteristic Configuration definitions for bit values
and attribute value.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2021-02-22 20:29:08 +01:00 committed by Anas Nashif
commit 37ea9ac8a7

View file

@ -276,6 +276,22 @@ struct bt_gatt_ccc {
uint16_t flags;
};
/** Server Characteristic Configuration Values */
/** @def BT_GATT_SCC_BROADCAST
* @brief Server Characteristic Configuration Broadcast
*
* If set, the characteristic value shall be broadcast in the advertising data
* when the server is advertising.
*/
#define BT_GATT_SCC_BROADCAST 0x0001
/** Server Characterestic Configuration Attribute Value */
struct bt_gatt_scc {
/** Server Characteristic Configuration flags */
uint16_t flags;
};
/** @brief GATT Characteristic Presentation Format Attribute Value. */
struct bt_gatt_cpf {
/** Format of the value of the characteristic */