Changes

Jump to navigation Jump to search
279 bytes added ,  14:52, 28 October 2017
no edit summary
Line 7: Line 7:  
== Handles ==
 
== Handles ==
 
Handles for USB_HID function exactly the same as for USB_VEN.
 
Handles for USB_HID function exactly the same as for USB_VEN.
 +
 +
== Internal device structure ==
 +
HID has an additional member at the end of the device structure that seems to be used for keeping track of ongoing transfers.
    
== Ioctls ==
 
== Ioctls ==
Line 33: Line 36:  
| 0x10 || SuspendResume || Identical to VEN
 
| 0x10 || SuspendResume || Identical to VEN
 
|-
 
|-
| 0x11 || CancelEndpoint (?)
+
| 0x11 || CancelEndpoint
 
| Calls /dev/usb/usb ioctl 0x10
 
| Calls /dev/usb/usb ioctl 0x10
 +
 +
Depending on the endpoint (<code>in[8]</code>), this may abort an ongoing transfer with return code -7022 (USB_CANCELLED).
 
|-
 
|-
 
| 0x12 (ioctlv) || CtrlTransfer (?) || ?
 
| 0x12 (ioctlv) || CtrlTransfer (?) || ?
219

edits

Navigation menu