Usb::Device Class Reference

List of all members.

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.

Detailed Description

Definition at line 95 of file usbwrap.h.


Member Function Documentation

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 314 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 331 of file usbwrap.cc.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208