Bluetooth Driver services: Difference between revisions
No edit summary |
|||
Line 337: | Line 337: | ||
This is used by [[HID_services|hid]]. | This is used by [[HID_services|hid]]. | ||
This sends a HID DATA transaction packet with report-type Output. | |||
== WriteHidData2 == | == WriteHidData2 == | ||
Line 350: | Line 352: | ||
This is used by [[HID_services|hid]]. | This is used by [[HID_services|hid]]. | ||
This sends a HID SET_REPORT transaction packet. | |||
== GetHidReport == | == GetHidReport == | ||
Takes an input [[#Address]], an u8, a [[#BluetoothHhReportType]], no output. | Takes an input [[#Address]], an u8 report_id, a [[#BluetoothHhReportType]], no output. | ||
This is used by [[HID_services|hid]]. | This is used by [[HID_services|hid]]. | ||
This sends a HID GET_REPORT transaction packet. The report_id is sent in the packet for the Report Id, when non-zero. | |||
== HidWakeController == | == HidWakeController == | ||
Line 867: | Line 873: | ||
= BluetoothHhReportType = | = BluetoothHhReportType = | ||
This is u32 enum "nn::bluetooth::BluetoothHhReportType". | This is u32 enum "nn::bluetooth::BluetoothHhReportType". | ||
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. | |||
{| class="wikitable" border="1" | |||
|- | |||
! Value | |||
! Description | |||
|- | |||
| 0 || Other | |||
|- | |||
| 1 || Input | |||
|- | |||
| 2 || Output | |||
|- | |||
| 3 || Feature | |||
|} | |||
= HidEventType = | = HidEventType = |