USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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)
 
virtual uint8_t ConfigureDevice (uint8_t parent, uint8_t port, bool lowspeed)
 
virtual uint8_t Init (uint8_t parent, uint8_t port, bool lowspeed)
 
virtual uint8_t Release ()
 
virtual uint8_t Poll ()
 
virtual uint8_t GetAddress ()
 
virtual bool isReady ()
 
virtual boolean VIDPIDOK (uint16_t vid, uint16_t pid)
 
virtual 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 boolean DEVCLASSOK (uint8_t klass)
 

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 49 of file adk.h.

Constructor & Destructor Documentation

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

void ADK::PrintEndpointDescriptor ( const USB_ENDPOINT_DESCRIPTOR ep_ptr)
protected

Definition at line 335 of file adk.cpp.

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

Definition at line 325 of file adk.cpp.

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

Definition at line 331 of file adk.cpp.

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

Reimplemented from USBDeviceConfig.

Definition at line 61 of file adk.cpp.

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

Reimplemented from USBDeviceConfig.

Definition at line 66 of file adk.cpp.

uint8_t ADK::Release ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 315 of file adk.cpp.

virtual uint8_t ADK::Poll ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 99 of file adk.h.

virtual uint8_t ADK::GetAddress ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 103 of file adk.h.

virtual bool ADK::isReady ( )
inlinevirtual

Definition at line 107 of file adk.h.

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

Reimplemented from USBDeviceConfig.

Definition at line 111 of file adk.h.

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

Implements UsbConfigXtracter.

Definition at line 287 of file adk.cpp.

Member Data Documentation

const uint8_t ADK::epDataInIndex = 1
staticprotected

Definition at line 65 of file adk.h.

const uint8_t ADK::epDataOutIndex = 2
staticprotected

Definition at line 66 of file adk.h.

USB* ADK::pUsb
protected

Definition at line 69 of file adk.h.

uint8_t ADK::bAddress
protected

Definition at line 70 of file adk.h.

uint8_t ADK::bConfNum
protected

Definition at line 71 of file adk.h.

uint8_t ADK::bNumEP
protected

Definition at line 73 of file adk.h.

bool ADK::ready
protected

Definition at line 74 of file adk.h.

EpInfo ADK::epInfo[ADK_MAX_ENDPOINTS]
protected

Definition at line 77 of file adk.h.


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