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 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 void EndpointXtract (uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)
 

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 71 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::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.

virtual uint8_t ADK::GetAddress ( )
inlinevirtual

Implements USBDeviceConfig.

Definition at line 121 of file adk.h.

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

Implements USBDeviceConfig.

Definition at line 62 of file adk.cpp.

virtual bool ADK::isReady ( )
inlinevirtual

Definition at line 122 of file adk.h.

virtual uint8_t ADK::Poll ( )
inlinevirtual

Implements USBDeviceConfig.

Definition at line 120 of file adk.h.

void ADK::PrintEndpointDescriptor ( const USB_ENDPOINT_DESCRIPTOR ep_ptr)
protected

Definition at line 339 of file adk.cpp.

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

Definition at line 327 of file adk.cpp.

uint8_t ADK::Release ( )
virtual

Implements USBDeviceConfig.

Definition at line 316 of file adk.cpp.

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

Definition at line 334 of file adk.cpp.

Member Data Documentation

uint8_t ADK::bAddress
protected

Definition at line 93 of file adk.h.

uint8_t ADK::bConfNum
protected

Definition at line 94 of file adk.h.

uint8_t ADK::bNumEP
protected

Definition at line 96 of file adk.h.

const uint8_t ADK::epDataInIndex = 1
staticprotected

Definition at line 88 of file adk.h.

const uint8_t ADK::epDataOutIndex = 2
staticprotected

Definition at line 89 of file adk.h.

EpInfo ADK::epInfo[ADK_MAX_ENDPOINTS]
protected

Definition at line 100 of file adk.h.

USB* ADK::pUsb
protected

Definition at line 92 of file adk.h.

bool ADK::ready
protected

Definition at line 97 of file adk.h.


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