Bluetooth: ATT: Add definitions from 5.2

This adds the definitions for Enhanced ATT along with new PDUs and UUIDs
introduced in 5.2.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
Luiz Augusto von Dentz 2020-02-26 16:39:12 -08:00 committed by Johan Hedberg
commit d148f8648b
2 changed files with 25 additions and 0 deletions

View file

@ -529,6 +529,10 @@ struct bt_uuid_128 {
* @brief Database Hash
*/
#define BT_UUID_GATT_DB_HASH BT_UUID_DECLARE_16(0x2b2a)
/** @def BT_UUID_GATT_SERVER_FEATURES
* @brief Server Supported Features
*/
#define BT_UUID_GATT_SERVER_FEATURES BT_UUID_DECLARE_16(0x2b3a)
/*
* Protocol UUIDs

View file

@ -6,6 +6,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define BT_EATT_PSM 0x27
#define BT_ATT_DEFAULT_LE_MTU 23
#define BT_ATT_TIMEOUT K_SECONDS(30)
@ -223,6 +224,26 @@ struct bt_att_signature {
u8_t value[12];
} __packed;
#define BT_ATT_OP_READ_MULT_VL_REQ 0x20
struct bt_att_read_mult_vl_req {
u16_t handles[0];
} __packed;
/* Read Multiple Respose */
#define BT_ATT_OP_READ_MULT_VL_RSP 0x21
struct bt_att_read_mult_vl_rsp {
u16_t len;
u8_t value[0];
} __packed;
/* Handle Multiple Value Notification */
#define BT_ATT_OP_NOTIFY_MULT 0x23
struct bt_att_notify_mult {
u16_t handle;
u16_t len;
u8_t value[0];
} __packed;
/* Write Command */
#define BT_ATT_OP_WRITE_CMD 0x52
struct bt_att_write_cmd {