USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
USBHub Class Reference

#include <usbhub.h>

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

Public Member Functions

 USBHub (USB *p)
 
uint8_t ClearHubFeature (uint8_t fid)
 
uint8_t ClearPortFeature (uint8_t fid, uint8_t port, uint8_t sel=0)
 
uint8_t GetHubDescriptor (uint8_t index, uint16_t nbytes, uint8_t *dataptr)
 
uint8_t GetHubStatus (uint16_t nbytes, uint8_t *dataptr)
 
uint8_t GetPortStatus (uint8_t port, uint16_t nbytes, uint8_t *dataptr)
 
uint8_t SetHubDescriptor (uint8_t port, uint16_t nbytes, uint8_t *dataptr)
 
uint8_t SetHubFeature (uint8_t fid)
 
uint8_t SetPortFeature (uint8_t fid, uint8_t port, uint8_t sel=0)
 
void PrintHubStatus ()
 
virtual uint8_t Init (uint8_t parent, uint8_t port, bool lowspeed)
 
virtual uint8_t Release ()
 
virtual uint8_t Poll ()
 
virtual void ResetHubPort (uint8_t port)
 
virtual uint8_t GetAddress ()
 
virtual boolean DEVCLASSOK (uint8_t klass)
 

Additional Inherited Members

- Private Member Functions inherited from USBDeviceConfig
virtual uint8_t ConfigureDevice (uint8_t parent, uint8_t port, bool lowspeed)
 
virtual boolean VIDPIDOK (uint16_t vid, uint16_t pid)
 

Detailed Description

Definition at line 177 of file usbhub.h.

Constructor & Destructor Documentation

USBHub::USBHub ( USB p)

Definition at line 21 of file usbhub.cpp.

Member Function Documentation

uint8_t USBHub::ClearHubFeature ( uint8_t  fid)
inline

Definition at line 220 of file usbhub.h.

uint8_t USBHub::ClearPortFeature ( uint8_t  fid,
uint8_t  port,
uint8_t  sel = 0 
)
inline

Definition at line 225 of file usbhub.h.

uint8_t USBHub::GetHubDescriptor ( uint8_t  index,
uint16_t  nbytes,
uint8_t *  dataptr 
)
inline

Definition at line 230 of file usbhub.h.

uint8_t USBHub::GetHubStatus ( uint16_t  nbytes,
uint8_t *  dataptr 
)
inline

Definition at line 235 of file usbhub.h.

uint8_t USBHub::GetPortStatus ( uint8_t  port,
uint16_t  nbytes,
uint8_t *  dataptr 
)
inline

Definition at line 240 of file usbhub.h.

uint8_t USBHub::SetHubDescriptor ( uint8_t  port,
uint16_t  nbytes,
uint8_t *  dataptr 
)
inline

Definition at line 245 of file usbhub.h.

uint8_t USBHub::SetHubFeature ( uint8_t  fid)
inline

Definition at line 250 of file usbhub.h.

uint8_t USBHub::SetPortFeature ( uint8_t  fid,
uint8_t  port,
uint8_t  sel = 0 
)
inline

Definition at line 255 of file usbhub.h.

void USBHub::PrintHubStatus ( )
uint8_t USBHub::Init ( uint8_t  parent,
uint8_t  port,
bool  lowspeed 
)
virtual

Reimplemented from USBDeviceConfig.

Definition at line 42 of file usbhub.cpp.

uint8_t USBHub::Release ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 211 of file usbhub.cpp.

uint8_t USBHub::Poll ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 224 of file usbhub.cpp.

void USBHub::ResetHubPort ( uint8_t  port)
virtual

Reimplemented from USBDeviceConfig.

Definition at line 304 of file usbhub.cpp.

virtual uint8_t USBHub::GetAddress ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 211 of file usbhub.h.

virtual boolean USBHub::DEVCLASSOK ( uint8_t  klass)
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 214 of file usbhub.h.


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