Definition at line 95 of file usbwrap.h.
Public Member Functions | |
| Device (Usb::DeviceIDType id, int timeout=USBWRAP_DEFAULT_TIMEOUT) | |
| ~Device () | |
| Usb::DeviceIDType | GetID () const |
| Usb::DeviceHandleType | GetHandle () const |
| int | GetLastError () const |
| bool | SetConfiguration (unsigned char cfg) |
| bool | ClearHalt (int ep) |
| bool | Reset () |
| bool | BulkRead (int ep, Barry::Data &data, int timeout=-1) |
| bool | BulkWrite (int ep, const Barry::Data &data, int timeout=-1) |
| bool | BulkWrite (int ep, const void *data, size_t size, int timeout=-1) |
| bool | InterruptRead (int ep, Barry::Data &data, int timeout=-1) |
| bool | InterruptWrite (int ep, const Barry::Data &data, int timeout=-1) |
| 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. | |
| 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 312 of file usbwrap.cc.
References BulkRead().
Referenced by Barry::Probe::ProbePair().
| 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.
If unsuccessful, returns false.
Definition at line 329 of file usbwrap.cc.
Referenced by Barry::Probe::ProbeDevice().
1.5.1