Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nx/include/switch/services/btdrv.h
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ typedef struct {
struct {
u32 result; ///< 0 for success, non-zero for error.
u32 conn_id; ///< Connection ID
u8 type; ///< Notification type. 4 = Notification, 5 = Indication.
u8 op_type; ///< GATT Operation Type \ref BtdrvGattOperationType
u8 pad[3]; ///< Padding
BtdrvGattAttributeUuid serv_uuid; ///< GATT Service UUID \ref BtdrvGattAttributeUuid
BtdrvGattAttributeUuid char_uuid; ///< GATT Characteristic UUID \ref BtdrvGattAttributeUuid
Expand Down
10 changes: 10 additions & 0 deletions nx/include/switch/services/btdrv_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,16 @@ typedef enum {
BtdrvGattAuthReqType_SignedMitm = 4,
} BtdrvGattAuthReqType;

/// GattOperationType
typedef enum {
BtdrvGattOperationType_CharacteristicRead = 0,
BtdrvGattOperationType_CharacteristicWrite = 1,
BtdrvGattOperationType_DescriptorRead = 2,
BtdrvGattOperationType_DescriptorWrite = 3,
BtdrvGattOperationType_Notification = 4,
BtdrvGattOperationType_Indication = 5,
} BtdrvGattOperationType;

/// BtdrvBleAdBit
typedef enum {
BtdrvBleAdBit_DeviceName = BIT(0),
Expand Down
Loading