Line 63:
Line 63:
64-72: Endpoint descriptors (interface.bNumEndpoints times)
64-72: Endpoint descriptors (interface.bNumEndpoints times)
−
| Get USB descriptors for a device. Behind the scenes, calls /dev/usb/usb ioctl 2 (input: internal ID, output: descriptors) and copies information to the output buffer and the internal device struct.
+
| Get USB descriptors for a device. Behind the scenes, calls /dev/usb/usb ioctl 2 (input: internal ID, output: descriptors) and copies information to the output buffer and the internal device struct (must be called before a device can be used).
The descriptor structures match the ones used by libusb (with padding).
The descriptor structures match the ones used by libusb (with padding).