USB Host Shield 2.0
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 ()
 
uint8_t Init (uint8_t parent, uint8_t port, bool lowspeed)
 
uint8_t Release ()
 
uint8_t Poll ()
 
void ResetHubPort (uint8_t port)
 
virtual uint8_t GetAddress ()
 
virtual bool DEVCLASSOK (uint8_t klass)
 

Detailed Description

Definition at line 164 of file usbhub.h.

Constructor & Destructor Documentation

◆ USBHub()

USBHub::USBHub ( USB p)

Definition at line 21 of file usbhub.cpp.

Member Function Documentation

◆ ClearHubFeature()

uint8_t USBHub::ClearHubFeature ( uint8_t  fid)
inline

Definition at line 211 of file usbhub.h.

◆ ClearPortFeature()

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

Definition at line 216 of file usbhub.h.

◆ GetHubDescriptor()

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

Definition at line 221 of file usbhub.h.

◆ GetHubStatus()

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

Definition at line 226 of file usbhub.h.

◆ GetPortStatus()

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

Definition at line 231 of file usbhub.h.

◆ SetHubDescriptor()

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

Definition at line 236 of file usbhub.h.

◆ SetHubFeature()

uint8_t USBHub::SetHubFeature ( uint8_t  fid)
inline

Definition at line 241 of file usbhub.h.

◆ SetPortFeature()

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

Definition at line 246 of file usbhub.h.

◆ PrintHubStatus()

void USBHub::PrintHubStatus ( )

◆ Init()

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

Reimplemented from USBDeviceConfig.

Definition at line 44 of file usbhub.cpp.

◆ Release()

uint8_t USBHub::Release ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 216 of file usbhub.cpp.

◆ Poll()

uint8_t USBHub::Poll ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 229 of file usbhub.cpp.

◆ ResetHubPort()

void USBHub::ResetHubPort ( uint8_t  port)
virtual

Reimplemented from USBDeviceConfig.

Definition at line 309 of file usbhub.cpp.

◆ GetAddress()

virtual uint8_t USBHub::GetAddress ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 199 of file usbhub.h.

◆ DEVCLASSOK()

virtual bool USBHub::DEVCLASSOK ( uint8_t  klass)
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 203 of file usbhub.h.


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