USB Host Shield 2.0
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ADK Class Reference

#include <adk.h>

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

Public Member Functions

 ADK (USB *pUsb, const char *manufacturer, const char *model, const char *description, const char *version, const char *uri, const char *serial)
 
uint8_t RcvData (uint16_t *nbytesptr, uint8_t *dataptr)
 
uint8_t SndData (uint16_t nbytes, uint8_t *dataptr)
 
uint8_t ConfigureDevice (uint8_t parent, uint8_t port, bool lowspeed)
 
uint8_t Init (uint8_t parent, uint8_t port, bool lowspeed)
 
uint8_t Release ()
 
virtual uint8_t Poll ()
 
virtual uint8_t GetAddress ()
 
virtual bool isReady ()
 
virtual bool VIDPIDOK (uint16_t vid, uint16_t pid)
 
void EndpointXtract (uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)
 
- Public Member Functions inherited from USBDeviceConfig
virtual void ResetHubPort (uint8_t port)
 
virtual bool DEVCLASSOK (uint8_t klass)
 
virtual bool DEVSUBCLASSOK (uint8_t subklass)
 

Protected Member Functions

void PrintEndpointDescriptor (const USB_ENDPOINT_DESCRIPTOR *ep_ptr)
 

Protected Attributes

USBpUsb
 
uint8_t bAddress
 
uint8_t bConfNum
 
uint8_t bNumEP
 
bool ready
 
EpInfo epInfo [ADK_MAX_ENDPOINTS]
 

Static Protected Attributes

static const uint8_t epDataInIndex = 1
 
static const uint8_t epDataOutIndex = 2
 

Detailed Description

Definition at line 53 of file adk.h.

Constructor & Destructor Documentation

◆ ADK()

ADK::ADK ( USB pUsb,
const char *  manufacturer,
const char *  model,
const char *  description,
const char *  version,
const char *  uri,
const char *  serial 
)

Definition at line 25 of file adk.cpp.

Member Function Documentation

◆ PrintEndpointDescriptor()

void ADK::PrintEndpointDescriptor ( const USB_ENDPOINT_DESCRIPTOR ep_ptr)
protected

Definition at line 357 of file adk.cpp.

◆ RcvData()

uint8_t ADK::RcvData ( uint16_t *  nbytesptr,
uint8_t *  dataptr 
)

Definition at line 347 of file adk.cpp.

◆ SndData()

uint8_t ADK::SndData ( uint16_t  nbytes,
uint8_t *  dataptr 
)

Definition at line 353 of file adk.cpp.

◆ ConfigureDevice()

uint8_t ADK::ConfigureDevice ( uint8_t  parent,
uint8_t  port,
bool  lowspeed 
)
virtual

Reimplemented from USBDeviceConfig.

Definition at line 59 of file adk.cpp.

◆ Init()

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

Reimplemented from USBDeviceConfig.

Definition at line 64 of file adk.cpp.

◆ Release()

uint8_t ADK::Release ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 337 of file adk.cpp.

◆ Poll()

virtual uint8_t ADK::Poll ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 103 of file adk.h.

◆ GetAddress()

virtual uint8_t ADK::GetAddress ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 107 of file adk.h.

◆ isReady()

virtual bool ADK::isReady ( )
inlinevirtual

Definition at line 111 of file adk.h.

◆ VIDPIDOK()

virtual bool ADK::VIDPIDOK ( uint16_t  vid,
uint16_t  pid 
)
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 115 of file adk.h.

◆ EndpointXtract()

void ADK::EndpointXtract ( uint8_t  conf,
uint8_t  iface,
uint8_t  alt,
uint8_t  proto,
const USB_ENDPOINT_DESCRIPTOR ep 
)
virtual

Reimplemented from UsbConfigXtracter.

Definition at line 312 of file adk.cpp.

Member Data Documentation

◆ epDataInIndex

const uint8_t ADK::epDataInIndex = 1
staticprotected

Definition at line 69 of file adk.h.

◆ epDataOutIndex

const uint8_t ADK::epDataOutIndex = 2
staticprotected

Definition at line 70 of file adk.h.

◆ pUsb

USB* ADK::pUsb
protected

Definition at line 73 of file adk.h.

◆ bAddress

uint8_t ADK::bAddress
protected

Definition at line 74 of file adk.h.

◆ bConfNum

uint8_t ADK::bConfNum
protected

Definition at line 75 of file adk.h.

◆ bNumEP

uint8_t ADK::bNumEP
protected

Definition at line 77 of file adk.h.

◆ ready

bool ADK::ready
protected

Definition at line 78 of file adk.h.

◆ epInfo

EpInfo ADK::epInfo[ADK_MAX_ENDPOINTS]
protected

Definition at line 81 of file adk.h.


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