USB_Host_Shield_2.0
|
#include <Usb.h>
Public Member Functions | |
USB (void) | |
void | SetHubPreMask () |
void | ResetHubPreMask () |
AddressPool & | GetAddressPool () |
uint8_t | RegisterDeviceClass (USBDeviceConfig *pdev) |
void | ForEachUsbDevice (UsbDeviceHandleFunc pfunc) |
uint8_t | getUsbTaskState (void) |
void | setUsbTaskState (uint8_t state) |
EpInfo * | getEpInfoEntry (uint8_t addr, uint8_t ep) |
uint8_t | setEpInfoEntry (uint8_t addr, uint8_t epcount, EpInfo *eprecord_ptr) |
uint8_t | getDevDescr (uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *dataptr) |
defined(USB_METHODS_INLINE) More... | |
uint8_t | getConfDescr (uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t conf, uint8_t *dataptr) |
uint8_t | getConfDescr (uint8_t addr, uint8_t ep, uint8_t conf, USBReadParser *p) |
uint8_t | getStrDescr (uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t index, uint16_t langid, uint8_t *dataptr) |
uint8_t | setAddr (uint8_t oldaddr, uint8_t ep, uint8_t newaddr) |
uint8_t | setConf (uint8_t addr, uint8_t ep, uint8_t conf_value) |
uint8_t | ctrlData (uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *dataptr, boolean direction) |
uint8_t | ctrlStatus (uint8_t ep, boolean direction, uint16_t nak_limit) |
uint8_t | inTransfer (uint8_t addr, uint8_t ep, uint16_t *nbytesptr, uint8_t *data) |
uint8_t | outTransfer (uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *data) |
uint8_t | dispatchPkt (uint8_t token, uint8_t ep, uint16_t nak_limit) |
void | Task (void) |
uint8_t | DefaultAddressing (uint8_t parent, uint8_t port, bool lowspeed) |
uint8_t | Configuring (uint8_t parent, uint8_t port, bool lowspeed) |
uint8_t | ReleaseDevice (uint8_t addr) |
uint8_t | ctrlReq (uint8_t addr, uint8_t ep, uint8_t bmReqType, uint8_t bRequest, uint8_t wValLo, uint8_t wValHi, uint16_t wInd, uint16_t total, uint16_t nbytes, uint8_t *dataptr, USBReadParser *p) |
Public Member Functions inherited from MAX3421e< SS, INTR > | |
MAX3421e () | |
void | regWr (uint8_t reg, uint8_t data) |
uint8_t * | bytesWr (uint8_t reg, uint8_t nbytes, uint8_t *data_p) |
void | gpioWr (uint8_t data) |
uint8_t | regRd (uint8_t reg) |
uint8_t * | bytesRd (uint8_t reg, uint8_t nbytes, uint8_t *data_p) |
uint8_t | gpioRd () |
uint16_t | reset () |
int8_t | Init () |
uint8_t | getVbusState (void) |
void | busprobe () |
uint8_t | GpxHandler () |
uint8_t | IntHandler () |
uint8_t | Task () |
USB::USB | ( | void | ) |
uint8_t USB::Configuring | ( | uint8_t | parent, |
uint8_t | port, | ||
bool | lowspeed | ||
) |
uint8_t USB::ctrlData | ( | uint8_t | addr, |
uint8_t | ep, | ||
uint16_t | nbytes, | ||
uint8_t * | dataptr, | ||
boolean | direction | ||
) |
uint8_t USB::ctrlReq | ( | uint8_t | addr, |
uint8_t | ep, | ||
uint8_t | bmReqType, | ||
uint8_t | bRequest, | ||
uint8_t | wValLo, | ||
uint8_t | wValHi, | ||
uint16_t | wInd, | ||
uint16_t | total, | ||
uint16_t | nbytes, | ||
uint8_t * | dataptr, | ||
USBReadParser * | p | ||
) |
uint8_t USB::ctrlStatus | ( | uint8_t | ep, |
boolean | direction, | ||
uint16_t | nak_limit | ||
) |
uint8_t USB::DefaultAddressing | ( | uint8_t | parent, |
uint8_t | port, | ||
bool | lowspeed | ||
) |
uint8_t USB::dispatchPkt | ( | uint8_t | token, |
uint8_t | ep, | ||
uint16_t | nak_limit | ||
) |
|
inline |
|
inline |
uint8_t USB::getConfDescr | ( | uint8_t | addr, |
uint8_t | ep, | ||
uint16_t | nbytes, | ||
uint8_t | conf, | ||
uint8_t * | dataptr | ||
) |
uint8_t USB::getConfDescr | ( | uint8_t | addr, |
uint8_t | ep, | ||
uint8_t | conf, | ||
USBReadParser * | p | ||
) |
uint8_t USB::getDevDescr | ( | uint8_t | addr, |
uint8_t | ep, | ||
uint16_t | nbytes, | ||
uint8_t * | dataptr | ||
) |
defined(USB_METHODS_INLINE)
EpInfo * USB::getEpInfoEntry | ( | uint8_t | addr, |
uint8_t | ep | ||
) |
uint8_t USB::getStrDescr | ( | uint8_t | addr, |
uint8_t | ep, | ||
uint16_t | nbytes, | ||
uint8_t | index, | ||
uint16_t | langid, | ||
uint8_t * | dataptr | ||
) |
uint8_t USB::getUsbTaskState | ( | void | ) |
uint8_t USB::inTransfer | ( | uint8_t | addr, |
uint8_t | ep, | ||
uint16_t * | nbytesptr, | ||
uint8_t * | data | ||
) |
uint8_t USB::outTransfer | ( | uint8_t | addr, |
uint8_t | ep, | ||
uint16_t | nbytes, | ||
uint8_t * | data | ||
) |
|
inline |
uint8_t USB::ReleaseDevice | ( | uint8_t | addr | ) |
|
inline |
uint8_t USB::setAddr | ( | uint8_t | oldaddr, |
uint8_t | ep, | ||
uint8_t | newaddr | ||
) |
uint8_t USB::setConf | ( | uint8_t | addr, |
uint8_t | ep, | ||
uint8_t | conf_value | ||
) |
uint8_t USB::setEpInfoEntry | ( | uint8_t | addr, |
uint8_t | epcount, | ||
EpInfo * | eprecord_ptr | ||
) |
|
inline |
void USB::setUsbTaskState | ( | uint8_t | state | ) |
void USB::Task | ( | void | ) |