USB services: Difference between revisions
No edit summary |
|||
| Line 404: | Line 404: | ||
== QueryAllInterfaces == | == QueryAllInterfaces == | ||
Takes a 0x10-byte input struct and a type-0x6 output buffer, returns an output u32. | Takes a 0x10-byte input struct and a type-0x6 output buffer, returns an output u32 total_entries. | ||
The output buffer contains an array of [[#UsbHsInterface]]. | |||
== QueryAvailableInterfaces == | == QueryAvailableInterfaces == | ||
Takes a 0x10-byte input struct and a type-0x6 output buffer, returns an output s32. | Takes a 0x10-byte input struct and a type-0x6 output buffer, returns an output s32 total_entries. | ||
The buffer contains an array of | The output buffer contains an array of [[#UsbHsInterface]]. | ||
HID-sysmodule uses the following for the input struct: <code>80 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00</code> | HID-sysmodule uses the following for the input struct: <code>80 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00</code> | ||
| Line 528: | Line 530: | ||
The buffer contains an array of 0x18-byte report structs. | The buffer contains an array of 0x18-byte report structs. | ||
= UsbHsInterface = | |||
{| class="wikitable" border="1" | |||
|- | |||
! Offset || Size || Description | |||
|- | |||
| 0x0 || 0x228 || | |||
|} | |||
This is a 0x228-byte struct. | |||
= usb:pd = | = usb:pd = | ||