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. | |
bool | SetAltInterface (int iface) |
Uses the usb_set_altinterface() function to set the currently selected USB alternate setting of the current interface. |
Definition at line 101 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 319 of file usbwrap.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.
If unsuccessful, returns false.
Definition at line 336 of file usbwrap.cc.
bool Usb::Device::SetAltInterface | ( | int | iface | ) |
Uses the usb_set_altinterface() function to set the currently selected USB alternate setting of the current interface.
The iface parameter passed in should be a value specified in the bAlternateSetting descriptor field. If unsuccessful, returns false.
Definition at line 353 of file usbwrap.cc.