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 <Usb.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 189 of file Usb.h.

Constructor & Destructor Documentation

USB::USB ( void  )

Definition at line 34 of file Usb.cpp.

Member Function Documentation

void USB::SetHubPreMask ( )
inline

Definition at line 198 of file Usb.h.

void USB::ResetHubPreMask ( )
inline

Definition at line 202 of file Usb.h.

AddressPool& USB::GetAddressPool ( )
inline

Definition at line 206 of file Usb.h.

uint8_t USB::RegisterDeviceClass ( USBDeviceConfig pdev)
inline

Definition at line 210 of file Usb.h.

void USB::ForEachUsbDevice ( UsbDeviceHandleFunc  pfunc)
inline

Definition at line 220 of file Usb.h.

uint8_t USB::getUsbTaskState ( void  )

Definition at line 45 of file Usb.cpp.

void USB::setUsbTaskState ( uint8_t  state)

Definition at line 49 of file Usb.cpp.

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

Definition at line 53 of file Usb.cpp.

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

Definition at line 73 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 745 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 750 of file Usb.cpp.

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

Definition at line 754 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 772 of file Usb.cpp.

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

Definition at line 777 of file Usb.cpp.

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

Definition at line 782 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 215 of file Usb.cpp.

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

Definition at line 299 of file Usb.cpp.

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

Definition at line 383 of file Usb.cpp.

void USB::Task ( void  )

Definition at line 431 of file Usb.cpp.

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

Definition at line 537 of file Usb.cpp.

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

Definition at line 636 of file Usb.cpp.

uint8_t USB::ReleaseDevice ( uint8_t  addr)

Definition at line 730 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 135 of file Usb.cpp.


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