SeaBreeze
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends
seabreeze::USB Class Reference
Collaboration diagram for seabreeze::USB:
Collaboration graph

Public Member Functions

bool open ()
 
bool close ()
 
int write (int endpoint, void *data, unsigned int length_bytes)
 
int read (int endpoint, void *data, unsigned int length_bytes)
 
void clearStall (int endpoint)
 
int getDeviceDescriptor (struct USBDeviceDescriptor *desc)
 
int getInterfaceDescriptor (struct USBInterfaceDescriptor *desc)
 
int getEndpointDescriptor (int index, struct USBEndpointDescriptor *epDesc)
 
std::string * getStringDescriptor (int index)
 
int getMaxPacketSize ()
 
bool isOpened ()
 

Static Public Member Functions

static void setVerbose (bool v)
 

Protected Member Functions

void usbHexDump (void *x, int length, int endpoint)
 
void hexDump (void *x, int length)
 
void describeTransfer (const char *label, int length, void *data, int endpoint, bool hexdump)
 
 USB (unsigned long deviceID)
 

Protected Attributes

void * descriptor
 
bool opened
 
unsigned long deviceID
 

Static Protected Attributes

static bool verbose
 

Friends

class USBDiscovery
 

The documentation for this class was generated from the following file: