Changes

Jump to navigation Jump to search
694 bytes added ,  23:00, 26 August 2020
no edit summary
Line 150: Line 150:  
== GetHostDeviceProperty ==
 
== GetHostDeviceProperty ==
 
No input, returns an output [[#HostDeviceProperty]].
 
No input, returns an output [[#HostDeviceProperty]].
 +
 +
This gets the previously initialized [[#HostDeviceProperty]].
    
== AcquireDeviceConditionEvent ==
 
== AcquireDeviceConditionEvent ==
Line 277: Line 279:     
== BleDisconnect ==
 
== BleDisconnect ==
Takes an input u32, no output.
+
Takes an input u32 ConnectionHandle, no output.
   −
The u32 must match an Id in a [[Bluetooth_Driver_services#BleConnectionInfo|BleConnectionInfo]] from [[#BleGetConnectionState]]. [5.1.0+] 0xFFFFFFFF is invalid.
+
The u32 must match a ConnectionHandle in a [[Bluetooth_Driver_services#BleConnectionInfo|BleConnectionInfo]] from [[#BleGetConnectionState]]. [5.1.0+] 0xFFFFFFFF is invalid.
    
== BleGetConnectionState ==
 
== BleGetConnectionState ==
Line 326: Line 328:     
== GetGattIncludedServices ==
 
== GetGattIncludedServices ==
Takes a type-0x6 output buffer containing an array of [[#GattService]], an u16, an u32, returns an output u8.
+
Takes a type-0x6 output buffer containing an array of [[#GattService]], an u16 Handle, an u32, returns an output u8.
    
The u32 is the same as the param for [[#BleDisconnect]]. The max array entries is 100.
 
The u32 is the same as the param for [[#BleDisconnect]]. The max array entries is 100.
Line 335: Line 337:     
== GetBelongingService ==
 
== GetBelongingService ==
Takes a type-0x1A output buffer containing a [[#GattService]], an u16, an u32, returns an output bool.
+
Takes a type-0x1A output buffer containing a [[#GattService]], an u16 Handle, an u32, returns an output bool.
    
The u32 is the same as the param for [[#BleDisconnect]]. The output bool indicates whether a [[#GattService]] was returned.
 
The u32 is the same as the param for [[#BleDisconnect]]. The output bool indicates whether a [[#GattService]] was returned.
Line 342: Line 344:     
== GetGattCharacteristics ==
 
== GetGattCharacteristics ==
Takes a type-0x6 output buffer containing an array of [[#GattCharacteristic]], an u16, an u32, returns an output u8 total_out.
+
Takes a type-0x6 output buffer containing an array of [[#GattCharacteristic]], an u16 Handle, an u32, returns an output u8 total_out.
    
The u32 is the same as the param for [[#BleDisconnect]]. The max array entries is 100.
 
The u32 is the same as the param for [[#BleDisconnect]]. The max array entries is 100.
Line 349: Line 351:     
== GetGattDescriptors ==
 
== GetGattDescriptors ==
Takes a type-0x6 output buffer containing an array of [[#GattDescriptor]], an u16, an u32, returns an output u8 total_out.
+
Takes a type-0x6 output buffer containing an array of [[#GattDescriptor]], an u16 Handle, an u32, returns an output u8 total_out.
    
The u32 is the same as the param for [[#BleDisconnect]]. The max array entries is 100.
 
The u32 is the same as the param for [[#BleDisconnect]]. The max array entries is 100.
Line 823: Line 825:  
= HostDeviceProperty =
 
= HostDeviceProperty =
 
This is "nn::btm::HostDeviceProperty". This is a 0x2A-byte struct.
 
This is "nn::btm::HostDeviceProperty". This is a 0x2A-byte struct.
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0 || 0x9 || Same as [[Bluetooth_Driver_services#AdapterProperty|AdapterProperty]]+0x0.
 +
|-
 +
| 0x9 || 0x1F || Same as [[Bluetooth_Driver_services#AdapterProperty|AdapterProperty]]+0x9.
 +
|-
 +
| 0x28 || 0x1 || Always zero.
 +
|-
 +
| 0x29 || 0x1 || Same as [[Bluetooth_Driver_services#AdapterProperty|AdapterProperty]]+0x102.
 +
|}
    
= DeviceSlotModeList =
 
= DeviceSlotModeList =
Line 829: Line 846:  
= DeviceInfoList =
 
= DeviceInfoList =
 
This is "nn::btm::DeviceInfoList". This is a 0x3C4-byte struct.
 
This is "nn::btm::DeviceInfoList". This is a 0x3C4-byte struct.
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0 || 0x1 || Total entries.
 +
|-
 +
| 0x1 || 0x3 || Padding
 +
|-
 +
| 0x4 || 0xA*60(0x3C0) || Array of [[#DeviceInfo]].
 +
|}
    
= DeviceInfo =
 
= DeviceInfo =

Navigation menu