USB services: Difference between revisions
Line 116: | Line 116: | ||
== GetDsInterface == | == GetDsInterface == | ||
Takes 2 type-5 buffers and returns an [[#IDsInterface]]. [[Manu_Services|Manu]] sends a 0x09-byte command (e.g.: 0x09, 0x04, 0x04, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00) in the first buffer and a string ("usb") in the second buffer. | Takes 2 type-5 buffers and returns an [[#IDsInterface]]. [[Manu_Services|Manu]] sends a 0x09-byte command (e.g.: 0x09, 0x04, 0x04, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00) in the first buffer and a string ("usb") in the second buffer. | ||
When the strlen output for the second buffer is >=0x40, size 0x40 is used instead for copying the string. | |||
Returns an error when [[#BindDevice]] wasn't used. | Returns an error when [[#BindDevice]] wasn't used. | ||
Line 142: | Line 144: | ||
| 0x8 || 0x1 || ? | | 0x8 || 0x1 || ? | ||
|} | |} | ||
Only the first 0x9-bytes are used. | |||
== GetStateChangeEvent == | == GetStateChangeEvent == |