
Public Member Functions | |
| void | BulkDrain (int ep, int timeout=100) |
| Reads anything available on the given endpoint, with a low timeout, in order to clear any pending reads. | |
| bool | GetConfiguration (unsigned char &cfg) |
| Uses the GET_CONFIGURATION control message to determine the currently selected USB configuration, returning it in the cfg argument. | |
Definition at line 244 of file usbwrap.h.
| void Usb::Device::BulkDrain | ( | int | ep, | |
| int | timeout = 100 | |||
| ) |
Reads anything available on the given endpoint, with a low timeout, in order to clear any pending reads.
Definition at line 383 of file usbwrap_libusb.cc.
| bool Usb::Device::GetConfiguration | ( | unsigned char & | cfg | ) |
Uses the GET_CONFIGURATION control message to determine the currently selected USB configuration, returning it in the cfg argument.
Determines the currently selected USB configuration, returning it in the cfg argument.
If unsuccessful, returns false.
Definition at line 400 of file usbwrap_libusb.cc.
1.7.1