mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-03 10:02:14 +02:00
btdrv: clean up doc text indentation
This commit is contained in:
parent
f585a60146
commit
dba7d61756
@ -14,11 +14,11 @@
|
|||||||
/// Data for \ref btdrvGetEventInfo. The data stored here depends on the \ref BtdrvEventType.
|
/// Data for \ref btdrvGetEventInfo. The data stored here depends on the \ref BtdrvEventType.
|
||||||
typedef struct {
|
typedef struct {
|
||||||
union {
|
union {
|
||||||
u8 data[0x400]; ///< Raw data.
|
u8 data[0x400]; ///< Raw data.
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 val; ///< Value
|
u32 val; ///< Value
|
||||||
} type0; ///< ::BtdrvEventType_Unknown0
|
} type0; ///< ::BtdrvEventType_Unknown0
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
union {
|
union {
|
||||||
@ -34,36 +34,36 @@ typedef struct {
|
|||||||
u8 rssi[0x4]; ///< s32 RSSI
|
u8 rssi[0x4]; ///< s32 RSSI
|
||||||
u8 name3[0x4]; ///< Two bytes which are the same as name[11-12].
|
u8 name3[0x4]; ///< Two bytes which are the same as name[11-12].
|
||||||
u8 reserved_x36D[0x10]; ///< Reserved
|
u8 reserved_x36D[0x10]; ///< Reserved
|
||||||
} v1; ///< [1.0.0-11.0.1]
|
} v1; ///< [1.0.0-11.0.1]
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
char name[0xF9]; ///< Device name, NUL-terminated string.
|
char name[0xF9]; ///< Device name, NUL-terminated string.
|
||||||
BtdrvClassOfDevice class_of_device; ///< Class of Device.
|
BtdrvClassOfDevice class_of_device; ///< Class of Device.
|
||||||
u8 reserved[0x6]; ///< Reserved
|
u8 reserved[0x6]; ///< Reserved
|
||||||
} v12; ///< [12.0.0+]
|
} v12; ///< [12.0.0+]
|
||||||
};
|
};
|
||||||
} inquiry_device; ///< ::BtdrvEventType_InquiryDevice
|
} inquiry_device; ///< ::BtdrvEventType_InquiryDevice
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
BtdrvInquiryStatus status; ///< Status: 0 = stopped, 1 = started.
|
BtdrvInquiryStatus status; ///< Status: 0 = stopped, 1 = started.
|
||||||
} v1; ///< [1.0.0-11.0.1]
|
} v1; ///< [1.0.0-11.0.1]
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
BtdrvInquiryStatus status; ///< Status: 0 = stopped, 1 = started.
|
BtdrvInquiryStatus status; ///< Status: 0 = stopped, 1 = started.
|
||||||
u8 pad[3]; ///< Padding
|
u8 pad[3]; ///< Padding
|
||||||
u32 service_mask; ///< Services value from /ref btdrvStartInquiry when starting, otherwise this is value 0
|
u32 service_mask; ///< Services value from /ref btdrvStartInquiry when starting, otherwise this is value 0
|
||||||
} v12; ///< [12.0.0+]
|
} v12; ///< [12.0.0+]
|
||||||
};
|
};
|
||||||
} inquiry_status; ///< ::BtdrvEventType_InquiryStatus
|
} inquiry_status; ///< ::BtdrvEventType_InquiryStatus
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
char name[0xF9]; ///< Device name, NUL-terminated string.
|
char name[0xF9]; ///< Device name, NUL-terminated string.
|
||||||
BtdrvClassOfDevice class_of_device; ///< Class of Device.
|
BtdrvClassOfDevice class_of_device; ///< Class of Device.
|
||||||
} pairing_pin_code_request; ///< ::BtdrvEventType_PairingPinCodeRequest
|
} pairing_pin_code_request; ///< ::BtdrvEventType_PairingPinCodeRequest
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
union {
|
union {
|
||||||
@ -74,7 +74,7 @@ typedef struct {
|
|||||||
u8 pad[2]; ///< Padding
|
u8 pad[2]; ///< Padding
|
||||||
u32 type; ///< 0 = SSP confirm request, 3 = SSP passkey notification.
|
u32 type; ///< 0 = SSP confirm request, 3 = SSP passkey notification.
|
||||||
s32 passkey; ///< Passkey, only set when the above field is value 3.
|
s32 passkey; ///< Passkey, only set when the above field is value 3.
|
||||||
} v1; ///< [1.0.0-11.0.1]
|
} v1; ///< [1.0.0-11.0.1]
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
@ -83,133 +83,133 @@ typedef struct {
|
|||||||
u8 flag; ///< bool flag for Just Works. With SSP passkey notification this is always 0
|
u8 flag; ///< bool flag for Just Works. With SSP passkey notification this is always 0
|
||||||
u8 pad; ///< Padding
|
u8 pad; ///< Padding
|
||||||
s32 passkey; ///< Passkey, only set when the above field is value 3.
|
s32 passkey; ///< Passkey, only set when the above field is value 3.
|
||||||
} v12; ///< [12.0.0+]
|
} v12; ///< [12.0.0+]
|
||||||
};
|
};
|
||||||
} ssp_request; ///< ::BtdrvEventType_SspRequest
|
} ssp_request; ///< ::BtdrvEventType_SspRequest
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
union {
|
union {
|
||||||
struct {
|
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).
|
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.
|
BtdrvAddress addr; ///< Device address.
|
||||||
u8 pad[2]; ///< Padding
|
u8 pad[2]; ///< Padding
|
||||||
u32 type; ///< \ref BtdrvConnectionEventType
|
u32 type; ///< \ref BtdrvConnectionEventType
|
||||||
} v1; ///< [1.0.0-11.0.1]
|
} v1; ///< [1.0.0-11.0.1]
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 type; ///< \ref BtdrvConnectionEventType
|
u32 type; ///< \ref BtdrvConnectionEventType
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
u8 reserved[0xfe]; ///< Reserved
|
u8 reserved[0xfe]; ///< Reserved
|
||||||
} v12; ///< [12.0.0+]
|
} v12; ///< [12.0.0+]
|
||||||
};
|
};
|
||||||
} connection; ///< ::BtdrvEventType_Connection
|
} connection; ///< ::BtdrvEventType_Connection
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
u8 status; ///< Status flag: 1 = success, 0 = failure.
|
u8 status; ///< Status flag: 1 = success, 0 = failure.
|
||||||
u8 value; ///< Tsi value, when the above indicates success.
|
u8 value; ///< Tsi value, when the above indicates success.
|
||||||
} tsi; ///< ::BtdrvEventType_Tsi
|
} tsi; ///< ::BtdrvEventType_Tsi
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
u8 status; ///< Status flag: 1 = success, 0 = failure.
|
u8 status; ///< Status flag: 1 = success, 0 = failure.
|
||||||
u8 value; ///< Input bool value from \ref btdrvEnableBurstMode, when the above indicates success.
|
u8 value; ///< Input bool value from \ref btdrvEnableBurstMode, when the above indicates success.
|
||||||
} burst_mode; ///< ::BtdrvEventType_BurstMode
|
} burst_mode; ///< ::BtdrvEventType_BurstMode
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
u8 status; ///< Status flag: 1 = success, 0 = failure.
|
u8 status; ///< Status flag: 1 = success, 0 = failure.
|
||||||
u8 flag; ///< Bool flag, when the above indicates success.
|
u8 flag; ///< Bool flag, when the above indicates success.
|
||||||
} set_zero_retransmission; ///< ::BtdrvEventType_SetZeroRetransmission
|
} set_zero_retransmission; ///< ::BtdrvEventType_SetZeroRetransmission
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u8 status; ///< Status flag: 1 = success, 0 = failure.
|
u8 status; ///< Status flag: 1 = success, 0 = failure.
|
||||||
u8 pad[0x3]; ///< Padding
|
u8 pad[0x3]; ///< Padding
|
||||||
u32 count; ///< Count value.
|
u32 count; ///< Count value.
|
||||||
} pending_connections; ///< ::BtdrvEventType_PendingConnections
|
} pending_connections; ///< ::BtdrvEventType_PendingConnections
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
u8 status; ///< Status flag: 1 = success, 0 = failure.
|
u8 status; ///< Status flag: 1 = success, 0 = failure.
|
||||||
} move_to_secondary_piconet; ///< ::BtdrvEventType_MoveToSecondaryPiconet
|
} move_to_secondary_piconet; ///< ::BtdrvEventType_MoveToSecondaryPiconet
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u16 reason; ///< \ref BtdrvFatalReason
|
u16 reason; ///< \ref BtdrvFatalReason
|
||||||
} bluetooth_crash; ///< ::BtdrvEventType_BluetoothCrash
|
} bluetooth_crash; ///< ::BtdrvEventType_BluetoothCrash
|
||||||
};
|
};
|
||||||
} BtdrvEventInfo;
|
} BtdrvEventInfo;
|
||||||
|
|
||||||
/// Data for \ref btdrvGetHidEventInfo. The data stored here depends on the \ref BtdrvHidEventType.
|
/// Data for \ref btdrvGetHidEventInfo. The data stored here depends on the \ref BtdrvHidEventType.
|
||||||
typedef struct {
|
typedef struct {
|
||||||
union {
|
union {
|
||||||
u8 data[0x480]; ///< Raw data.
|
u8 data[0x480]; ///< Raw data.
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
u8 pad[2]; ///< Padding
|
u8 pad[2]; ///< Padding
|
||||||
BtdrvHidConnectionStatus status; ///< \ref BtdrvHidConnectionStatus
|
BtdrvHidConnectionStatus status; ///< \ref BtdrvHidConnectionStatus
|
||||||
} v1; ///< [1.0.0-11.0.1]
|
} v1; ///< [1.0.0-11.0.1]
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
BtdrvHidConnectionStatus status; ///< \ref BtdrvHidConnectionStatus
|
BtdrvHidConnectionStatus status; ///< \ref BtdrvHidConnectionStatus
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
} v12; ///< [12.0.0+]
|
} v12; ///< [12.0.0+]
|
||||||
};
|
};
|
||||||
} connection; ///< ::BtdrvHidEventType_Connection
|
} connection; ///< ::BtdrvHidEventType_Connection
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 type; ///< \ref BtdrvExtEventType, controls which data is stored below.
|
u32 type; ///< \ref BtdrvExtEventType, controls which data is stored below.
|
||||||
|
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
u32 status; ///< 0 for success, non-zero for error.
|
u32 status; ///< 0 for success, non-zero for error.
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
} set_tsi; ///< ::BtdrvExtEventType_SetTsi
|
} set_tsi; ///< ::BtdrvExtEventType_SetTsi
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 status; ///< 0 for success, non-zero for error.
|
u32 status; ///< 0 for success, non-zero for error.
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
} exit_tsi; ///< ::BtdrvExtEventType_ExitTsi
|
} exit_tsi; ///< ::BtdrvExtEventType_ExitTsi
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 status; ///< 0 for success, non-zero for error.
|
u32 status; ///< 0 for success, non-zero for error.
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
} set_burst_mode; ///< ::BtdrvExtEventType_SetBurstMode
|
} set_burst_mode; ///< ::BtdrvExtEventType_SetBurstMode
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 status; ///< 0 for success, non-zero for error.
|
u32 status; ///< 0 for success, non-zero for error.
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
} exit_burst_mode; ///< ::BtdrvExtEventType_ExitBurstMode
|
} exit_burst_mode; ///< ::BtdrvExtEventType_ExitBurstMode
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 status; ///< 0 for success, non-zero for error.
|
u32 status; ///< 0 for success, non-zero for error.
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
u8 pad[2]; ///< Padding
|
u8 pad[2]; ///< Padding
|
||||||
u8 flag; ///< Flag
|
u8 flag; ///< Flag
|
||||||
} set_zero_retransmission; ///< ::BtdrvExtEventType_SetZeroRetransmission
|
} set_zero_retransmission; ///< ::BtdrvExtEventType_SetZeroRetransmission
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 status; ///< 0 for success, non-zero for error.
|
u32 status; ///< 0 for success, non-zero for error.
|
||||||
BtdrvAddress addr; ///< Unused
|
BtdrvAddress addr; ///< Unused
|
||||||
u8 pad[2]; ///< Padding
|
u8 pad[2]; ///< Padding
|
||||||
u32 count; ///< Count value.
|
u32 count; ///< Count value.
|
||||||
} pending_connections; ///< ::BtdrvExtEventType_PendingConnections
|
} pending_connections; ///< ::BtdrvExtEventType_PendingConnections
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 status; ///< 0 for success, non-zero for error.
|
u32 status; ///< 0 for success, non-zero for error.
|
||||||
BtdrvAddress addr; ///< Device address.
|
BtdrvAddress addr; ///< Device address.
|
||||||
} move_to_secondary_piconet; ///< ::BtdrvExtEventType_MoveToSecondaryPiconet
|
} move_to_secondary_piconet; ///< ::BtdrvExtEventType_MoveToSecondaryPiconet
|
||||||
};
|
};
|
||||||
} ext; ///< ::BtdrvHidEventType_Ext [1.0.0-11.0.1]
|
} ext; ///< ::BtdrvHidEventType_Ext [1.0.0-11.0.1]
|
||||||
};
|
};
|
||||||
} BtdrvHidEventInfo;
|
} BtdrvHidEventInfo;
|
||||||
|
|
||||||
/// Data for \ref btdrvGetHidReportEventInfo. The data stored here depends on the \ref BtdrvHidEventType.
|
/// Data for \ref btdrvGetHidReportEventInfo. The data stored here depends on the \ref BtdrvHidEventType.
|
||||||
typedef struct {
|
typedef struct {
|
||||||
union {
|
union {
|
||||||
u8 data[0x480]; ///< Raw data.
|
u8 data[0x480]; ///< Raw data.
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
union {
|
union {
|
||||||
@ -220,73 +220,73 @@ typedef struct {
|
|||||||
u32 res;
|
u32 res;
|
||||||
u32 size;
|
u32 size;
|
||||||
} hdr;
|
} hdr;
|
||||||
u8 unused[0x3]; ///< Unused
|
u8 unused[0x3]; ///< Unused
|
||||||
BtdrvAddress addr; ///< \ref BtdrvAddress
|
BtdrvAddress addr; ///< \ref BtdrvAddress
|
||||||
u8 unused2[0x3]; ///< Unused
|
u8 unused2[0x3]; ///< Unused
|
||||||
BtdrvHidData report;
|
BtdrvHidData report;
|
||||||
} v1; ///< [1.0.0-6.2.0]
|
} v1; ///< [1.0.0-6.2.0]
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u8 unused[0x3]; ///< Unused
|
u8 unused[0x3]; ///< Unused
|
||||||
BtdrvAddress addr; ///< \ref BtdrvAddress
|
BtdrvAddress addr; ///< \ref BtdrvAddress
|
||||||
u8 unused2[0x3]; ///< Unused
|
u8 unused2[0x3]; ///< Unused
|
||||||
BtdrvHidData report;
|
BtdrvHidData report;
|
||||||
} v7; ///< [7.0.0-8.1.1]
|
} v7; ///< [7.0.0-8.1.1]
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 res; ///< Always 0.
|
u32 res; ///< Always 0.
|
||||||
u8 unk_x4; ///< Always 0.
|
u8 unk_x4; ///< Always 0.
|
||||||
BtdrvAddress addr; ///< \ref BtdrvAddress
|
BtdrvAddress addr; ///< \ref BtdrvAddress
|
||||||
u8 pad; ///< Padding
|
u8 pad; ///< Padding
|
||||||
BtdrvHidReport report;
|
BtdrvHidReport report;
|
||||||
} v9; ///< [9.0.0+]
|
} v9; ///< [9.0.0+]
|
||||||
};
|
};
|
||||||
} data_report; ///< ::BtdrvHidEventType_DataReport
|
} data_report; ///< ::BtdrvHidEventType_DataReport
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
union {
|
union {
|
||||||
u8 rawdata[0xC]; ///< Raw data.
|
u8 rawdata[0xC]; ///< Raw data.
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 res; ///< 0 = success, non-zero = error.
|
u32 res; ///< 0 = success, non-zero = error.
|
||||||
BtdrvAddress addr; ///< \ref BtdrvAddress
|
BtdrvAddress addr; ///< \ref BtdrvAddress
|
||||||
u8 pad[2]; ///< Padding
|
u8 pad[2]; ///< Padding
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} set_report; ///< ::BtdrvHidEventType_SetReport
|
} set_report; ///< ::BtdrvHidEventType_SetReport
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
union {
|
union {
|
||||||
union {
|
union {
|
||||||
u8 rawdata[0x290]; ///< Raw data.
|
u8 rawdata[0x290]; ///< Raw data.
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
BtdrvAddress addr; ///< \ref BtdrvAddress
|
BtdrvAddress addr; ///< \ref BtdrvAddress
|
||||||
u8 pad[2]; ///< Padding
|
u8 pad[2]; ///< Padding
|
||||||
u32 res; ///< Unknown. hid-sysmodule only uses the below data when this field is 0.
|
u32 res; ///< Unknown. hid-sysmodule only uses the below data when this field is 0.
|
||||||
BtdrvHidData report; ///< \ref BtdrvHidData
|
BtdrvHidData report; ///< \ref BtdrvHidData
|
||||||
u8 pad2[2]; ///< Padding
|
u8 pad2[2]; ///< Padding
|
||||||
};
|
};
|
||||||
} v1; ///< [1.0.0-8.1.1]
|
} v1; ///< [1.0.0-8.1.1]
|
||||||
|
|
||||||
union {
|
union {
|
||||||
u8 rawdata[0x2C8]; ///< Raw data.
|
u8 rawdata[0x2C8]; ///< Raw data.
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u32 res; ///< Unknown. hid-sysmodule only uses the below report when this field is 0.
|
u32 res; ///< Unknown. hid-sysmodule only uses the below report when this field is 0.
|
||||||
BtdrvAddress addr; ///< \ref BtdrvAddress
|
BtdrvAddress addr; ///< \ref BtdrvAddress
|
||||||
BtdrvHidReport report; ///< \ref BtdrvHidReport
|
BtdrvHidReport report; ///< \ref BtdrvHidReport
|
||||||
};
|
};
|
||||||
} v9; ///< [9.0.0+]
|
} v9; ///< [9.0.0+]
|
||||||
};
|
};
|
||||||
} get_report; ///< ::BtdrvHidEventType_GetReport
|
} get_report; ///< ::BtdrvHidEventType_GetReport
|
||||||
};
|
};
|
||||||
} BtdrvHidReportEventInfo;
|
} BtdrvHidReportEventInfo;
|
||||||
|
|
||||||
/// The raw sharedmem data for HidReportEventInfo.
|
/// The raw sharedmem data for HidReportEventInfo.
|
||||||
typedef struct {
|
typedef struct {
|
||||||
struct {
|
struct {
|
||||||
u8 type; ///< \ref BtdrvHidEventType
|
u8 type; ///< \ref BtdrvHidEventType
|
||||||
u8 pad[7];
|
u8 pad[7];
|
||||||
u64 tick;
|
u64 tick;
|
||||||
u64 size;
|
u64 size;
|
||||||
@ -298,7 +298,7 @@ typedef struct {
|
|||||||
/// CircularBuffer
|
/// CircularBuffer
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Mutex mutex;
|
Mutex mutex;
|
||||||
void* event_type; ///< Not set with sharedmem.
|
void* event_type; ///< Not set with sharedmem.
|
||||||
u8 data[0x2710];
|
u8 data[0x2710];
|
||||||
s32 write_offset;
|
s32 write_offset;
|
||||||
s32 read_offset;
|
s32 read_offset;
|
||||||
|
@ -9,42 +9,42 @@
|
|||||||
|
|
||||||
/// BluetoothPropertyType
|
/// BluetoothPropertyType
|
||||||
typedef enum {
|
typedef enum {
|
||||||
BtdrvBluetoothPropertyType_Name = 1, ///< Name. String, max length 0xF8 excluding NUL-terminator.
|
BtdrvBluetoothPropertyType_Name = 1, ///< Name. String, max length 0xF8 excluding NUL-terminator.
|
||||||
BtdrvBluetoothPropertyType_Address = 2, ///< \ref BtdrvAddress
|
BtdrvBluetoothPropertyType_Address = 2, ///< \ref BtdrvAddress
|
||||||
BtdrvBluetoothPropertyType_Unknown3 = 3, ///< Only available with \ref btdrvSetAdapterProperty. Unknown, \ref BtdrvAddress.
|
BtdrvBluetoothPropertyType_Unknown3 = 3, ///< Only available with \ref btdrvSetAdapterProperty. Unknown, \ref BtdrvAddress.
|
||||||
BtdrvBluetoothPropertyType_ClassOfDevice = 5, ///< 3-bytes, Class of Device.
|
BtdrvBluetoothPropertyType_ClassOfDevice = 5, ///< 3-bytes, Class of Device.
|
||||||
BtdrvBluetoothPropertyType_FeatureSet = 6, ///< 1-byte, FeatureSet. The default is value 0x68.
|
BtdrvBluetoothPropertyType_FeatureSet = 6, ///< 1-byte, FeatureSet. The default is value 0x68.
|
||||||
} BtdrvBluetoothPropertyType;
|
} BtdrvBluetoothPropertyType;
|
||||||
|
|
||||||
/// EventType
|
/// EventType
|
||||||
typedef enum {
|
typedef enum {
|
||||||
///< BtdrvEventType_* should be used on [12.0.0+]
|
///< BtdrvEventType_* should be used on [12.0.0+]
|
||||||
BtdrvEventType_InquiryDevice = 0, ///< Device found during Inquiry.
|
BtdrvEventType_InquiryDevice = 0, ///< Device found during Inquiry.
|
||||||
BtdrvEventType_InquiryStatus = 1, ///< Inquiry status changed.
|
BtdrvEventType_InquiryStatus = 1, ///< Inquiry status changed.
|
||||||
BtdrvEventType_PairingPinCodeRequest = 2, ///< Pairing PIN code request.
|
BtdrvEventType_PairingPinCodeRequest = 2, ///< Pairing PIN code request.
|
||||||
BtdrvEventType_SspRequest = 3, ///< SSP confirm request / SSP passkey notification.
|
BtdrvEventType_SspRequest = 3, ///< SSP confirm request / SSP passkey notification.
|
||||||
BtdrvEventType_Connection = 4, ///< Connection
|
BtdrvEventType_Connection = 4, ///< Connection
|
||||||
BtdrvEventType_Tsi = 5, ///< SetTsi (\ref btdrvSetTsi)
|
BtdrvEventType_Tsi = 5, ///< SetTsi (\ref btdrvSetTsi)
|
||||||
BtdrvEventType_BurstMode = 6, ///< SetBurstMode (\ref btdrvEnableBurstMode)
|
BtdrvEventType_BurstMode = 6, ///< SetBurstMode (\ref btdrvEnableBurstMode)
|
||||||
BtdrvEventType_SetZeroRetransmission = 7, ///< \ref btdrvSetZeroRetransmission
|
BtdrvEventType_SetZeroRetransmission = 7, ///< \ref btdrvSetZeroRetransmission
|
||||||
BtdrvEventType_PendingConnections = 8, ///< \ref btdrvGetPendingConnections
|
BtdrvEventType_PendingConnections = 8, ///< \ref btdrvGetPendingConnections
|
||||||
BtdrvEventType_MoveToSecondaryPiconet = 9, ///< \ref btdrvMoveToSecondaryPiconet
|
BtdrvEventType_MoveToSecondaryPiconet = 9, ///< \ref btdrvMoveToSecondaryPiconet
|
||||||
BtdrvEventType_BluetoothCrash = 10, ///< BluetoothCrash
|
BtdrvEventType_BluetoothCrash = 10, ///< BluetoothCrash
|
||||||
|
|
||||||
///< BtdrvEventTypeOld_* should be used on [1.0.0-11.0.1]
|
///< BtdrvEventTypeOld_* should be used on [1.0.0-11.0.1]
|
||||||
BtdrvEventTypeOld_Unknown0 = 0, ///< Unused
|
BtdrvEventTypeOld_Unknown0 = 0, ///< Unused
|
||||||
BtdrvEventTypeOld_InquiryDevice = 3, ///< Device found during Inquiry.
|
BtdrvEventTypeOld_InquiryDevice = 3, ///< Device found during Inquiry.
|
||||||
BtdrvEventTypeOld_InquiryStatus = 4, ///< Inquiry status changed.
|
BtdrvEventTypeOld_InquiryStatus = 4, ///< Inquiry status changed.
|
||||||
BtdrvEventTypeOld_PairingPinCodeRequest = 5, ///< Pairing PIN code request.
|
BtdrvEventTypeOld_PairingPinCodeRequest = 5, ///< Pairing PIN code request.
|
||||||
BtdrvEventTypeOld_SspRequest = 6, ///< SSP confirm request / SSP passkey notification.
|
BtdrvEventTypeOld_SspRequest = 6, ///< SSP confirm request / SSP passkey notification.
|
||||||
BtdrvEventTypeOld_Connection = 7, ///< Connection
|
BtdrvEventTypeOld_Connection = 7, ///< Connection
|
||||||
BtdrvEventTypeOld_BluetoothCrash = 13, ///< BluetoothCrash
|
BtdrvEventTypeOld_BluetoothCrash = 13, ///< BluetoothCrash
|
||||||
} BtdrvEventType;
|
} BtdrvEventType;
|
||||||
|
|
||||||
/// BtdrvInquiryStatus
|
/// BtdrvInquiryStatus
|
||||||
typedef enum {
|
typedef enum {
|
||||||
BtdrvInquiryStatus_Stopped = 0, ///< Inquiry started.
|
BtdrvInquiryStatus_Stopped = 0, ///< Inquiry started.
|
||||||
BtdrvInquiryStatus_Started = 1, ///< Inquiry stopped.
|
BtdrvInquiryStatus_Started = 1, ///< Inquiry stopped.
|
||||||
} BtdrvInquiryStatus;
|
} BtdrvInquiryStatus;
|
||||||
|
|
||||||
/// ConnectionEventType
|
/// ConnectionEventType
|
||||||
@ -69,10 +69,10 @@ typedef enum {
|
|||||||
/// Bit0-1 directly control the HID bluetooth transaction report-type value.
|
/// Bit0-1 directly control the HID bluetooth transaction report-type value.
|
||||||
/// Bit2-3: these directly control the Parameter Reserved field for SetReport, for GetReport these control the Parameter Reserved and Size bits.
|
/// Bit2-3: these directly control the Parameter Reserved field for SetReport, for GetReport these control the Parameter Reserved and Size bits.
|
||||||
typedef enum {
|
typedef enum {
|
||||||
BtdrvBluetoothHhReportType_Other = 0, ///< Other
|
BtdrvBluetoothHhReportType_Other = 0, ///< Other
|
||||||
BtdrvBluetoothHhReportType_Input = 1, ///< Input
|
BtdrvBluetoothHhReportType_Input = 1, ///< Input
|
||||||
BtdrvBluetoothHhReportType_Output = 2, ///< Output
|
BtdrvBluetoothHhReportType_Output = 2, ///< Output
|
||||||
BtdrvBluetoothHhReportType_Feature = 3, ///< Feature
|
BtdrvBluetoothHhReportType_Feature = 3, ///< Feature
|
||||||
} BtdrvBluetoothHhReportType;
|
} BtdrvBluetoothHhReportType;
|
||||||
|
|
||||||
/// HidEventType
|
/// HidEventType
|
||||||
|
Loading…
Reference in New Issue
Block a user