Usb::Device Class Reference

List of all members.

Detailed Description

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.


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 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().


The documentation for this class was generated from the following files:
Generated on Wed Sep 24 21:27:33 2008 for Barry by  doxygen 1.5.1