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:
parent
3c5636482c
commit
37ea9ac8a7
1 changed files with 16 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue