BTM services: Difference between revisions
No edit summary |
No edit summary |
||
Line 407: | Line 407: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || AcquireDiscoveryEvent | | 0 || [[#AcquireDiscoveryEvent]] | ||
|- | |- | ||
| 1 || StartDiscovery | | 1 || [[#StartDiscovery]] | ||
|- | |- | ||
| 2 || CancelDiscovery | | 2 || [[#CancelDiscovery]] | ||
|- | |- | ||
| 3 || GetDeviceProperty | | 3 || [[#GetDeviceProperty]] | ||
|- | |- | ||
| 4 || CreateBond | | 4 || [[#CreateBond]] | ||
|- | |- | ||
| 5 || CancelBond | | 5 || [[#CancelBond]] | ||
|- | |- | ||
| 6 || SetTsiMode | | 6 || [[#SetTsiMode]] | ||
|- | |- | ||
| 7 || GeneralTest | | 7 || [[#GeneralTest]] | ||
|- | |- | ||
| 8 || HidConnect | | 8 || [[#HidConnect]] | ||
|- | |- | ||
| 9 || [5.0.0+] GeneralGet | | 9 || [5.0.0+] [[#GeneralGet]] | ||
|- | |- | ||
| 10 || [5.1.0+] GetGattClientDisconnectionReason | | 10 || [5.1.0+] [[#GetGattClientDisconnectionReason]] | ||
|- | |- | ||
| 11 || [5.1.0+] GetBleConnectionParameter | | 11 || [5.1.0+] [[#GetBleConnectionParameter]] | ||
|- | |- | ||
| 12 || [5.1.0+] GetBleConnectionParameterRequest | | 12 || [5.1.0+] [[#GetBleConnectionParameterRequest]] | ||
|} | |} | ||
[3.0.0+] | == AcquireDiscoveryEvent == | ||
No input, returns output an Event handle with EventClearMode=1. | |||
[3.0.0+] Now returns an additional output bool. | |||
== StartDiscovery == | |||
No input/output. | |||
== CancelDiscovery == | |||
No input/output. | |||
== GetDeviceProperty == | |||
Takes a type-0x1A output buffer containing a [[#DevicePropertyList]]. | |||
== CreateBond == | |||
Takes an input [[Bluetooth_Driver_services#Address|Address]], no output. | |||
== CancelBond == | |||
Takes an input [[Bluetooth_Driver_services#Address|Address]], no output. | |||
== SetTsiMode == | |||
Takes an input [[Bluetooth_Driver_services#Address|Address]] and a [[#TsiMode]], no output. | |||
== GeneralTest == | |||
Takes an input s32, no output. | |||
== HidConnect == | |||
Takes an input [[Bluetooth_Driver_services#Address|Address]], no output. | |||
== GeneralGet == | |||
Takes an input u32 and a type-0x1A output buffer containing a 0x11-byte struct. | |||
== GetGattClientDisconnectionReason == | |||
Takes an input [[Bluetooth_Driver_services#Address|Address]] and an u32, returns an output bool and u16. | |||
The bool indicates whether the cmd is successful. | |||
== GetBleConnectionParameter == | |||
Takes an input u32, returns an output bool and 3 u16s. | |||
The bool indicates whether the cmd is successful, the output u16s are only set when this bool is set. | |||
== GetBleConnectionParameterRequest == | |||
Takes an input u32, returns an output bool and 4 u16s. | |||
The bool indicates whether the cmd is successful, the output u16s are only set when this bool is set. | |||
= btm:sys = | = btm:sys = | ||
Line 772: | Line 817: | ||
= WlanMode = | = WlanMode = | ||
This is "nn::btm::WlanMode". This is an u32 enum. | This is "nn::btm::WlanMode". This is an u32 enum. | ||
= TsiMode = | |||
This is "nn::btm::TsiMode". This is an u32 enum. | |||
= HostDeviceProperty = | = HostDeviceProperty = | ||
Line 784: | Line 832: | ||
= DeviceInfo = | = DeviceInfo = | ||
This is "nn::btm::DeviceInfo". This is a 0x60-byte struct. | This is "nn::btm::DeviceInfo". This is a 0x60-byte struct. | ||
= DevicePropertyList = | |||
This is "nn::btm::DevicePropertyList". This is a 0x268-byte struct. | |||
= ZeroRetransmissionList = | = ZeroRetransmissionList = |