USB Host Shield 2.0
Public Member Functions | List of all members
USB Class Reference

#include <UsbCore.h>

Inheritance diagram for USB:
Inheritance graph
[legend]
Collaboration diagram for USB:
Collaboration graph
[legend]

Public Member Functions

 USB (void)
 
void SetHubPreMask ()
 
void ResetHubPreMask ()
 
AddressPoolGetAddressPool ()
 
uint8_t RegisterDeviceClass (USBDeviceConfig *pdev)
 
void ForEachUsbDevice (UsbDeviceHandleFunc pfunc)
 
uint8_t getUsbTaskState (void)
 
void setUsbTaskState (uint8_t state)
 
EpInfogetEpInfoEntry (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, bool direction)
 
uint8_t ctrlStatus (uint8_t ep, bool direction, uint16_t nak_limit)
 
uint8_t inTransfer (uint8_t addr, uint8_t ep, uint16_t *nbytesptr, uint8_t *data, uint8_t bInterval=0)
 
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< SPI_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 ()
 Reads the current GPI input values. More...
 
uint8_t gpioRdOutput ()
 Reads the current GPI output values. More...
 
uint16_t reset ()
 
int8_t Init ()
 
int8_t Init (int mseconds)
 
void vbusPower (VBUS_t state)
 
uint8_t getVbusState (void)
 
void busprobe ()
 
uint8_t GpxHandler ()
 
uint8_t IntHandler ()
 
uint8_t Task ()
 

Detailed Description

Definition at line 212 of file UsbCore.h.

Constructor & Destructor Documentation

◆ USB()

USB::USB ( void  )

Definition at line 25 of file Usb.cpp.

Member Function Documentation

◆ SetHubPreMask()

void USB::SetHubPreMask ( )
inline

Definition at line 220 of file UsbCore.h.

◆ ResetHubPreMask()

void USB::ResetHubPreMask ( )
inline

Definition at line 224 of file UsbCore.h.

◆ GetAddressPool()

AddressPool& USB::GetAddressPool ( )
inline

Definition at line 228 of file UsbCore.h.

◆ RegisterDeviceClass()

uint8_t USB::RegisterDeviceClass ( USBDeviceConfig pdev)
inline

Definition at line 232 of file UsbCore.h.

◆ ForEachUsbDevice()

void USB::ForEachUsbDevice ( UsbDeviceHandleFunc  pfunc)
inline

Definition at line 242 of file UsbCore.h.

◆ getUsbTaskState()

uint8_t USB::getUsbTaskState ( void  )

Definition at line 36 of file Usb.cpp.

◆ setUsbTaskState()

void USB::setUsbTaskState ( uint8_t  state)

Definition at line 40 of file Usb.cpp.

◆ getEpInfoEntry()

EpInfo * USB::getEpInfoEntry ( uint8_t  addr,
uint8_t  ep 
)

Definition at line 44 of file Usb.cpp.

◆ setEpInfoEntry()

uint8_t USB::setEpInfoEntry ( uint8_t  addr,
uint8_t  epcount,
EpInfo eprecord_ptr 
)

Definition at line 64 of file Usb.cpp.

◆ getDevDescr()

uint8_t USB::getDevDescr ( uint8_t  addr,
uint8_t  ep,
uint16_t  nbytes,
uint8_t *  dataptr 
)

defined(USB_METHODS_INLINE)

Definition at line 801 of file Usb.cpp.

◆ getConfDescr() [1/2]

uint8_t USB::getConfDescr ( uint8_t  addr,
uint8_t  ep,
uint16_t  nbytes,
uint8_t  conf,
uint8_t *  dataptr 
)

Definition at line 806 of file Usb.cpp.

◆ getConfDescr() [2/2]

uint8_t USB::getConfDescr ( uint8_t  addr,
uint8_t  ep,
uint8_t  conf,
USBReadParser p 
)

Definition at line 812 of file Usb.cpp.

◆ getStrDescr()

uint8_t USB::getStrDescr ( uint8_t  addr,
uint8_t  ep,
uint16_t  nbytes,
uint8_t  index,
uint16_t  langid,
uint8_t *  dataptr 
)

Definition at line 831 of file Usb.cpp.

◆ setAddr()

uint8_t USB::setAddr ( uint8_t  oldaddr,
uint8_t  ep,
uint8_t  newaddr 
)

Definition at line 836 of file Usb.cpp.

◆ setConf()

uint8_t USB::setConf ( uint8_t  addr,
uint8_t  ep,
uint8_t  conf_value 
)

Definition at line 845 of file Usb.cpp.

◆ ctrlData()

uint8_t USB::ctrlData ( uint8_t  addr,
uint8_t  ep,
uint16_t  nbytes,
uint8_t *  dataptr,
bool  direction 
)

◆ ctrlStatus()

uint8_t USB::ctrlStatus ( uint8_t  ep,
bool  direction,
uint16_t  nak_limit 
)

◆ inTransfer()

uint8_t USB::inTransfer ( uint8_t  addr,
uint8_t  ep,
uint16_t *  nbytesptr,
uint8_t *  data,
uint8_t  bInterval = 0 
)

Definition at line 209 of file Usb.cpp.

◆ outTransfer()

uint8_t USB::outTransfer ( uint8_t  addr,
uint8_t  ep,
uint16_t  nbytes,
uint8_t *  data 
)

Definition at line 303 of file Usb.cpp.

◆ dispatchPkt()

uint8_t USB::dispatchPkt ( uint8_t  token,
uint8_t  ep,
uint16_t  nak_limit 
)

Definition at line 406 of file Usb.cpp.

◆ Task()

void USB::Task ( void  )

Definition at line 460 of file Usb.cpp.

◆ DefaultAddressing()

uint8_t USB::DefaultAddressing ( uint8_t  parent,
uint8_t  port,
bool  lowspeed 
)

Definition at line 566 of file Usb.cpp.

◆ Configuring()

uint8_t USB::Configuring ( uint8_t  parent,
uint8_t  port,
bool  lowspeed 
)

Definition at line 688 of file Usb.cpp.

◆ ReleaseDevice()

uint8_t USB::ReleaseDevice ( uint8_t  addr)

Definition at line 786 of file Usb.cpp.

◆ ctrlReq()

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 
)

Definition at line 126 of file Usb.cpp.


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