libnx  v4.7.0
Data Fields
BtdrvEventInfo Struct Reference

Data for btdrvGetEventInfo. The data stored here depends on the BtdrvEventType. More...

#include <btdrv.h>

Data Fields

union {
   u8   data [0x400]
 Raw data.
 
   struct {
      u32   val
 Value.
 
   }   type0
 BtdrvEventTypeOld_Unknown0
 
   struct {
      union {
         struct {
            char   name [0xF9]
 Device name, NUL-terminated string.
 
            BtdrvAddress   addr
 Device address.
 
            u8   reserved_xFF [0x10]
 Reserved.
 
            BtdrvClassOfDevice   class_of_device
 Class of Device.
 
            u8   unk_x112 [0x4]
 Set to fixed value u32 0x1.
 
            u8   reserved_x116 [0xFA]
 Reserved.
 
            u8   reserved_x210 [0x5C]
 Reserved.
 
            char   name2 [0xF9]
 Device name, NUL-terminated string. Same as name above, except starting at index 1.
 
            u8   rssi [0x4]
 s32 RSSI
 
            u8   name3 [0x4]
 Two bytes which are the same as name[11-12].
 
            u8   reserved_x36D [0x10]
 Reserved.
 
         }   v1
 [1.0.0-11.0.1]
 
         struct {
            BtdrvAddress   addr
 Device address.
 
            char   name [0xF9]
 Device name, NUL-terminated string.
 
            BtdrvClassOfDevice   class_of_device
 Class of Device.
 
            u8   reserved [0x6]
 Reserved.
 
         }   v12
 [12.0.0+]
 
      } 
 
   }   inquiry_device
 BtdrvEventType_InquiryDevice
 
   struct {
      union {
         struct {
            BtdrvInquiryStatus   status
 BtdrvInquiryStatus
 
         }   v1
 [1.0.0-11.0.1]
 
         struct {
            u8   status
 BtdrvInquiryStatus
 
            u8   pad [3]
 Padding.
 
            u32   service_mask
 Services value from btdrvStartInquiry when starting, otherwise this is value 0.
 
         }   v12
 [12.0.0+]
 
      } 
 
   }   inquiry_status
 BtdrvEventType_InquiryStatus
 
   struct {
      BtdrvAddress   addr
 Device address.
 
      char   name [0xF9]
 Device name, NUL-terminated string.
 
      BtdrvClassOfDevice   class_of_device
 Class of Device.
 
   }   pairing_pin_code_request
 BtdrvEventType_PairingPinCodeRequest
 
   struct {
      union {
         struct {
            BtdrvAddress   addr
 Device address.
 
            char   name [0xF9]
 Device name, NUL-terminated string.
 
            BtdrvClassOfDevice   class_of_device
 Class of Device.
 
            u8   pad [2]
 Padding.
 
            u32   type
 0 = SSP confirm request, 3 = SSP passkey notification.
 
            s32   passkey
 Passkey, only set when the above field is value 3.
 
         }   v1
 [1.0.0-11.0.1]
 
         struct {
            BtdrvAddress   addr
 Device address.
 
            char   name [0xF9]
 Device name, NUL-terminated string.
 
            BtdrvClassOfDevice   class_of_device
 Class of Device.
 
            u8   flag
 bool flag for Just Works. With SSP passkey notification this is always 0.
 
            u8   pad
 Padding.
 
            s32   passkey
 Passkey.
 
         }   v12
 [12.0.0+]
 
      } 
 
   }   ssp_request
 BtdrvEventType_SspRequest
 
   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
 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
 BtdrvConnectionEventType
 
         }   v9
 [9.0.0-11.0.1]
 
         struct {
            u32   type
 BtdrvConnectionEventType
 
            BtdrvAddress   addr
 Device address.
 
            u8   reserved [0xfe]
 Reserved.
 
         }   v12
 [12.0.0+]
 
      } 
 
   }   connection
 BtdrvEventType_Connection
 
   struct {
      BtdrvAddress   addr
 Device address.
 
      u8   status
 Status flag: 1 = success, 0 = failure.
 
      u8   value
 Tsi value, when the above indicates success.
 
   }   tsi
 BtdrvEventType_Tsi
 
   struct {
      BtdrvAddress   addr
 Device address.
 
      u8   status
 Status flag: 1 = success, 0 = failure.
 
      u8   value
 Input bool value from btdrvEnableBurstMode, when the above indicates success.
 
   }   burst_mode
 BtdrvEventType_BurstMode
 
   struct {
      BtdrvAddress   addr
 Device address.
 
      u8   status
 Status flag: 1 = success, 0 = failure.
 
      u8   flag
 Bool flag, when the above indicates success.
 
   }   set_zero_retransmission
 BtdrvEventType_SetZeroRetransmission
 
   struct {
      u8   status
 Status flag: 1 = success, 0 = failure.
 
      u8   pad [0x3]
 Padding.
 
      u32   count
 Count value.
 
   }   pending_connections
 BtdrvEventType_PendingConnections
 
   struct {
      BtdrvAddress   addr
 Device address.
 
      u8   status
 Status flag: 1 = success, 0 = failure.
 
   }   move_to_secondary_piconet
 BtdrvEventType_MoveToSecondaryPiconet
 
   struct {
      u16   reason
 BtdrvFatalReason
 
   }   bluetooth_crash
 BtdrvEventType_BluetoothCrash
 
}; 
 

Detailed Description

Data for btdrvGetEventInfo. The data stored here depends on the BtdrvEventType.

Field Documentation

◆ flag

u8 BtdrvEventInfo::flag

bool flag for Just Works. With SSP passkey notification this is always 0.

Bool flag, when the above indicates success.

◆ passkey

s32 BtdrvEventInfo::passkey

Passkey, only set when the above field is value 3.

Passkey.

◆ status

u8 BtdrvEventInfo::status

BtdrvInquiryStatus

Status flag: 1 = success, 0 = failure.

◆ type

u32 BtdrvEventInfo::type

0 = SSP confirm request, 3 = SSP passkey notification.

BtdrvConnectionEventType

◆ value

u8 BtdrvEventInfo::value

Tsi value, when the above indicates success.

Input bool value from btdrvEnableBurstMode, when the above indicates success.


The documentation for this struct was generated from the following file: