Bluetooth Driver services: Difference between revisions
No edit summary |
|||
Line 26: | Line 26: | ||
| 5 || [[#GetAdapterProperties]] | | 5 || [[#GetAdapterProperties]] | ||
|- | |- | ||
| 6 || GetAdapterProperty | | 6 || [[#GetAdapterProperty]] | ||
|- | |- | ||
| 7 || SetAdapterProperty | | 7 || [[#SetAdapterProperty]] | ||
|- | |- | ||
| 8 || StartInquiry | | 8 || [[#StartInquiry]] | ||
|- | |- | ||
| 9 || StopInquiry | | 9 || [[#StopInquiry]] | ||
|- | |- | ||
| 10 || [[#CreateBond]] | | 10 || [[#CreateBond]] | ||
Line 242: | Line 242: | ||
== GetAdapterProperties == | == GetAdapterProperties == | ||
Takes a type-0x1A output buffer containing an [[#AdapterProperty]]. | Takes a type-0x1A output buffer containing an [[#AdapterProperty]]. | ||
== GetAdapterProperty == | |||
Takes an input [[#BluetoothPropertyType]] and a type-0xA output buffer. | |||
== SetAdapterProperty == | |||
Takes an input [[#BluetoothPropertyType]] and a type-0x9 input buffer. | |||
== StartInquiry == | |||
No input/output. | |||
== StopInquiry == | |||
No input/output. | |||
== CreateBond == | == CreateBond == | ||
Takes | Takes an [[#Address]] and a type-0x19 input buffer containing a [[#TransportType]], no output. | ||
[9.0.0+] Now only takes a | [9.0.0+] Now only takes an [[#Address]] and a [[#TransportType]] without a buffer, no output. | ||
== TriggerConnection == | == TriggerConnection == | ||
Line 300: | Line 312: | ||
| 9 || RegisterBleEvent | | 9 || RegisterBleEvent | ||
|} | |} | ||
= AdapterProperty = | |||
This is "nn::bluetooth::AdapterProperty". | |||
= BluetoothPropertyType = | |||
This is u32 enum "nn::bluetooth::BluetoothPropertyType". | |||
= Address = | |||
This is "nn::bluetooth::Address". This is a 0x6-byte struct with 1-byte alignment. | |||
= TransportType = | |||
This is u32 enum "nn::bluetooth::TransportType". | |||
[[Category:Services]] | [[Category:Services]] |