btdrv: add bluetooth event info definition for connection event on fw < 9.0.0

(cherry picked from commit 1e7abd975fc906d1a483b33fa86969cb15e93ece)
This commit is contained in:
ndeadly 2021-05-18 17:53:23 +02:00 committed by fincs
parent 4a850437f2
commit 8c8bd9debf

View File

@ -89,12 +89,19 @@ typedef struct {
struct {
union {
struct {
BtdrvAddress addr; ///< Device address.
u8 pad[2]; ///< Padding
u32 status; ///< Status, always 0 except with ::BtdrvConnectionEventType_Status: 2 = ACL Link is now Resumed, 9 = connection failed (pairing/authentication failed, or opening the hid connection failed).
u32 type; ///< \ref BtdrvConnectionEventType
} v1; ///< [1.0.0-8.1.1]
struct {
u32 status; ///< Status, always 0 except with ::BtdrvConnectionEventType_Status: 2 = ACL Link is now Resumed, 9 = connection failed (pairing/authentication failed, or opening the hid connection failed).
BtdrvAddress addr; ///< Device address.
u8 pad[2]; ///< Padding
u32 type; ///< \ref BtdrvConnectionEventType
} v1; ///< [1.0.0-11.0.1]
} v9; ///< [9.0.0-11.0.1]
struct {
u32 type; ///< \ref BtdrvConnectionEventType