Public Member Functions | Private Member Functions
USB Class Reference

#include <Usb.h>

Inheritance diagram for USB:
Inheritance graph
[legend]

List of all members.

Public Member Functions

byte ctrlData (byte addr, byte ep, unsigned int nbytes, char *dataptr, boolean direction, unsigned int nak_limit=USB_NAK_LIMIT)
byte ctrlReq (byte addr, byte ep, byte bmReqType, byte bRequest, byte wValLo, byte wValHi, unsigned int wInd, unsigned int nbytes, char *dataptr, unsigned int nak_limit=USB_NAK_LIMIT)
byte ctrlStatus (byte ep, boolean direction, unsigned int nak_limit=USB_NAK_LIMIT)
byte dispatchPkt (byte token, byte ep, unsigned int nak_limit=USB_NAK_LIMIT)
byte getConfDescr (byte addr, byte ep, unsigned int nbytes, byte conf, char *dataptr, unsigned int nak_limit=USB_NAK_LIMIT)
byte getDevDescr (byte addr, byte ep, unsigned int nbytes, char *dataptr, unsigned int nak_limit=USB_NAK_LIMIT)
EP_RECORDgetDevTableEntry (byte addr, byte ep)
byte getIdle (byte addr, byte ep, byte interface, byte reportID, char *dataptr, unsigned int nak_limit=USB_NAK_LIMIT)
byte getProto (byte addr, byte ep, byte interface, char *dataptr, unsigned int nak_limit=USB_NAK_LIMIT)
byte getReport (byte addr, byte ep, unsigned int nbytes, byte interface, byte report_type, byte report_id, char *dataptr, unsigned int nak_limit=USB_NAK_LIMIT)
byte getReportDescr (byte addr, byte ep, unsigned int nbytes, char *dataptr, unsigned int nak_limit=USB_NAK_LIMIT)
byte getStrDescr (byte addr, byte ep, unsigned int nbytes, byte index, unsigned int langid, char *dataptr, unsigned int nak_limit=USB_NAK_LIMIT)
byte getUsbTaskState (void)
byte inTransfer (byte addr, byte ep, unsigned int nbytes, char *data, unsigned int nak_limit=USB_NAK_LIMIT)
int newInTransfer (byte addr, byte ep, unsigned int nbytes, char *data, unsigned int nak_limit=USB_NAK_LIMIT)
byte outTransfer (byte addr, byte ep, unsigned int nbytes, char *data, unsigned int nak_limit=USB_NAK_LIMIT)
byte setAddr (byte oldaddr, byte ep, byte newaddr, unsigned int nak_limit=USB_NAK_LIMIT)
byte setConf (byte addr, byte ep, byte conf_value, unsigned int nak_limit=USB_NAK_LIMIT)
void setDevTableEntry (byte addr, EP_RECORD *eprecord_ptr)
byte setIdle (byte addr, byte ep, byte interface, byte reportID, byte duration, unsigned int nak_limit=USB_NAK_LIMIT)
byte setProto (byte addr, byte ep, byte interface, byte protocol, unsigned int nak_limit=USB_NAK_LIMIT)
byte setReport (byte addr, byte ep, unsigned int nbytes, byte interface, byte report_type, byte report_id, char *dataptr, unsigned int nak_limit=USB_NAK_LIMIT)
void setUsbTaskState (byte state)
void Task (void)
 USB (void)

Private Member Functions

void init ()

Detailed Description

Definition at line 116 of file Usb.h.


Constructor & Destructor Documentation

USB::USB ( void  )

Definition at line 42 of file Usb.cpp.


Member Function Documentation

byte USB::ctrlData ( byte  addr,
byte  ep,
unsigned int  nbytes,
char *  dataptr,
boolean  direction,
unsigned int  nak_limit = USB_NAK_LIMIT 
)

Definition at line 137 of file Usb.cpp.

byte USB::ctrlReq ( byte  addr,
byte  ep,
byte  bmReqType,
byte  bRequest,
byte  wValLo,
byte  wValHi,
unsigned int  wInd,
unsigned int  nbytes,
char *  dataptr,
unsigned int  nak_limit = USB_NAK_LIMIT 
)

Definition at line 86 of file Usb.cpp.

byte USB::ctrlStatus ( byte  ep,
boolean  direction,
unsigned int  nak_limit = USB_NAK_LIMIT 
)

Definition at line 125 of file Usb.cpp.

byte USB::dispatchPkt ( byte  token,
byte  ep,
unsigned int  nak_limit = USB_NAK_LIMIT 
)

Definition at line 292 of file Usb.cpp.

byte USB::getConfDescr ( byte  addr,
byte  ep,
unsigned int  nbytes,
byte  conf,
char *  dataptr,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 165 of file Usb.h.

byte USB::getDevDescr ( byte  addr,
byte  ep,
unsigned int  nbytes,
char *  dataptr,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 161 of file Usb.h.

EP_RECORD * USB::getDevTableEntry ( byte  addr,
byte  ep 
)

Definition at line 67 of file Usb.cpp.

byte USB::getIdle ( byte  addr,
byte  ep,
byte  interface,
byte  reportID,
char *  dataptr,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 198 of file Usb.h.

byte USB::getProto ( byte  addr,
byte  ep,
byte  interface,
char *  dataptr,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 184 of file Usb.h.

byte USB::getReport ( byte  addr,
byte  ep,
unsigned int  nbytes,
byte  interface,
byte  report_type,
byte  report_id,
char *  dataptr,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 194 of file Usb.h.

byte USB::getReportDescr ( byte  addr,
byte  ep,
unsigned int  nbytes,
char *  dataptr,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 188 of file Usb.h.

byte USB::getStrDescr ( byte  addr,
byte  ep,
unsigned int  nbytes,
byte  index,
unsigned int  langid,
char *  dataptr,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 169 of file Usb.h.

byte USB::getUsbTaskState ( void  )

Definition at line 59 of file Usb.cpp.

void USB::init ( ) [private]

Definition at line 47 of file Usb.cpp.

byte USB::inTransfer ( byte  addr,
byte  ep,
unsigned int  nbytes,
char *  data,
unsigned int  nak_limit = USB_NAK_LIMIT 
)

Definition at line 155 of file Usb.cpp.

int USB::newInTransfer ( byte  addr,
byte  ep,
unsigned int  nbytes,
char *  data,
unsigned int  nak_limit = USB_NAK_LIMIT 
)

Definition at line 191 of file Usb.cpp.

byte USB::outTransfer ( byte  addr,
byte  ep,
unsigned int  nbytes,
char *  data,
unsigned int  nak_limit = USB_NAK_LIMIT 
)

Definition at line 231 of file Usb.cpp.

byte USB::setAddr ( byte  oldaddr,
byte  ep,
byte  newaddr,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 173 of file Usb.h.

byte USB::setConf ( byte  addr,
byte  ep,
byte  conf_value,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 177 of file Usb.h.

void USB::setDevTableEntry ( byte  addr,
EP_RECORD eprecord_ptr 
)

Definition at line 76 of file Usb.cpp.

byte USB::setIdle ( byte  addr,
byte  ep,
byte  interface,
byte  reportID,
byte  duration,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 201 of file Usb.h.

byte USB::setProto ( byte  addr,
byte  ep,
byte  interface,
byte  protocol,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 181 of file Usb.h.

byte USB::setReport ( byte  addr,
byte  ep,
unsigned int  nbytes,
byte  interface,
byte  report_type,
byte  report_id,
char *  dataptr,
unsigned int  nak_limit = USB_NAK_LIMIT 
) [inline]

Definition at line 191 of file Usb.h.

void USB::setUsbTaskState ( byte  state)

Definition at line 63 of file Usb.cpp.

void USB::Task ( void  )

Reimplemented from MAX3421E.

Definition at line 335 of file Usb.cpp.


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


rosserial_adk_demo
Author(s): Adam Stambler
autogenerated on Mon Dec 2 2013 12:02:02