#include <Usb.h>
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_RECORD * | getDevTableEntry (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 () |
byte USB::ctrlData | ( | byte | addr, |
byte | ep, | ||
unsigned int | nbytes, | ||
char * | dataptr, | ||
boolean | direction, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) |
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 |
||
) |
byte USB::ctrlStatus | ( | byte | ep, |
boolean | direction, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) |
byte USB::dispatchPkt | ( | byte | token, |
byte | ep, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) |
byte USB::getConfDescr | ( | byte | addr, |
byte | ep, | ||
unsigned int | nbytes, | ||
byte | conf, | ||
char * | dataptr, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) | [inline] |
byte USB::getDevDescr | ( | byte | addr, |
byte | ep, | ||
unsigned int | nbytes, | ||
char * | dataptr, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) | [inline] |
EP_RECORD * USB::getDevTableEntry | ( | byte | addr, |
byte | ep | ||
) |
byte USB::getIdle | ( | byte | addr, |
byte | ep, | ||
byte | interface, | ||
byte | reportID, | ||
char * | dataptr, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) | [inline] |
byte USB::getProto | ( | byte | addr, |
byte | ep, | ||
byte | interface, | ||
char * | dataptr, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) | [inline] |
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] |
byte USB::getReportDescr | ( | byte | addr, |
byte | ep, | ||
unsigned int | nbytes, | ||
char * | dataptr, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) | [inline] |
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] |
byte USB::getUsbTaskState | ( | void | ) |
byte USB::inTransfer | ( | byte | addr, |
byte | ep, | ||
unsigned int | nbytes, | ||
char * | data, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) |
int USB::newInTransfer | ( | byte | addr, |
byte | ep, | ||
unsigned int | nbytes, | ||
char * | data, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) |
byte USB::outTransfer | ( | byte | addr, |
byte | ep, | ||
unsigned int | nbytes, | ||
char * | data, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) |
byte USB::setAddr | ( | byte | oldaddr, |
byte | ep, | ||
byte | newaddr, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) | [inline] |
byte USB::setConf | ( | byte | addr, |
byte | ep, | ||
byte | conf_value, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) | [inline] |
void USB::setDevTableEntry | ( | byte | addr, |
EP_RECORD * | eprecord_ptr | ||
) |
byte USB::setIdle | ( | byte | addr, |
byte | ep, | ||
byte | interface, | ||
byte | reportID, | ||
byte | duration, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) | [inline] |
byte USB::setProto | ( | byte | addr, |
byte | ep, | ||
byte | interface, | ||
byte | protocol, | ||
unsigned int | nak_limit = USB_NAK_LIMIT |
||
) | [inline] |
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] |
void USB::setUsbTaskState | ( | byte | state | ) |