USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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, 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 ()
 
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 152 of file UsbCore.h.

Constructor & Destructor Documentation

USB::USB ( void  )

Definition at line 25 of file Usb.cpp.

Member Function Documentation

void USB::SetHubPreMask ( )
inline

Definition at line 160 of file UsbCore.h.

void USB::ResetHubPreMask ( )
inline

Definition at line 164 of file UsbCore.h.

AddressPool& USB::GetAddressPool ( )
inline

Definition at line 168 of file UsbCore.h.

uint8_t USB::RegisterDeviceClass ( USBDeviceConfig pdev)
inline

Definition at line 172 of file UsbCore.h.

void USB::ForEachUsbDevice ( UsbDeviceHandleFunc  pfunc)
inline

Definition at line 182 of file UsbCore.h.

uint8_t USB::getUsbTaskState ( void  )

Definition at line 36 of file Usb.cpp.

void USB::setUsbTaskState ( uint8_t  state)

Definition at line 40 of file Usb.cpp.

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

Definition at line 44 of file Usb.cpp.

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

Definition at line 64 of file Usb.cpp.

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

defined(USB_METHODS_INLINE)

Definition at line 756 of file Usb.cpp.

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

Definition at line 761 of file Usb.cpp.

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

Definition at line 767 of file Usb.cpp.

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 785 of file Usb.cpp.

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

Definition at line 790 of file Usb.cpp.

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

Definition at line 795 of file Usb.cpp.

uint8_t USB::ctrlData ( uint8_t  addr,
uint8_t  ep,
uint16_t  nbytes,
uint8_t *  dataptr,
boolean  direction 
)
uint8_t USB::ctrlStatus ( uint8_t  ep,
boolean  direction,
uint16_t  nak_limit 
)
uint8_t USB::inTransfer ( uint8_t  addr,
uint8_t  ep,
uint16_t *  nbytesptr,
uint8_t *  data 
)

Definition at line 206 of file Usb.cpp.

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

Definition at line 290 of file Usb.cpp.

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

Definition at line 374 of file Usb.cpp.

void USB::Task ( void  )

Definition at line 422 of file Usb.cpp.

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

Definition at line 528 of file Usb.cpp.

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

Definition at line 647 of file Usb.cpp.

uint8_t USB::ReleaseDevice ( uint8_t  addr)

Definition at line 741 of file Usb.cpp.

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: