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
ACM Class Reference

#include <cdcacm.h>

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

Public Member Functions

 ACM (USB *pusb, CDCAsyncOper *pasync)
 
uint8_t SetCommFeature (uint16_t fid, uint8_t nbytes, uint8_t *dataptr)
 
uint8_t GetCommFeature (uint16_t fid, uint8_t nbytes, uint8_t *dataptr)
 
uint8_t ClearCommFeature (uint16_t fid)
 
uint8_t SetLineCoding (const LINE_CODING *dataptr)
 
uint8_t GetLineCoding (LINE_CODING *dataptr)
 
uint8_t SetControlLineState (uint8_t state)
 
uint8_t SendBreak (uint16_t duration)
 
uint8_t GetNotif (uint16_t *bytes_rcvd, uint8_t *dataptr)
 
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
 
CDCAsyncOperpAsync
 
uint8_t bAddress
 
uint8_t bConfNum
 
uint8_t bControlIface
 
uint8_t bDataIface
 
uint8_t bNumEP
 
uint32_t qNextPollTime
 
bool bPollEnable
 
bool ready
 
EpInfo epInfo [ACM_MAX_ENDPOINTS]
 

Static Protected Attributes

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

Constructor & Destructor Documentation

ACM::ACM ( USB pusb,
CDCAsyncOper pasync 
)

Member Function Documentation

uint8_t ACM::ClearCommFeature ( uint16_t  fid)
void ACM::EndpointXtract ( uint8_t  conf,
uint8_t  iface,
uint8_t  alt,
uint8_t  proto,
const USB_ENDPOINT_DESCRIPTOR ep 
)
virtual

Implements UsbConfigXtracter.

virtual uint8_t ACM::GetAddress ( )
inlinevirtual

Implements USBDeviceConfig.

uint8_t ACM::GetCommFeature ( uint16_t  fid,
uint8_t  nbytes,
uint8_t *  dataptr 
)
uint8_t ACM::GetLineCoding ( LINE_CODING dataptr)
uint8_t ACM::GetNotif ( uint16_t *  bytes_rcvd,
uint8_t *  dataptr 
)
uint8_t ACM::Init ( uint8_t  parent,
uint8_t  port,
bool  lowspeed 
)
virtual

Implements USBDeviceConfig.

Reimplemented in PL2303.

virtual bool ACM::isReady ( )
inlinevirtual
uint8_t ACM::Poll ( )
virtual

Implements USBDeviceConfig.

void ACM::PrintEndpointDescriptor ( const USB_ENDPOINT_DESCRIPTOR ep_ptr)
protected
uint8_t ACM::RcvData ( uint16_t *  nbytesptr,
uint8_t *  dataptr 
)
uint8_t ACM::Release ( )
virtual

Implements USBDeviceConfig.

uint8_t ACM::SendBreak ( uint16_t  duration)
uint8_t ACM::SetCommFeature ( uint16_t  fid,
uint8_t  nbytes,
uint8_t *  dataptr 
)
uint8_t ACM::SetControlLineState ( uint8_t  state)
uint8_t ACM::SetLineCoding ( const LINE_CODING dataptr)
uint8_t ACM::SndData ( uint16_t  nbytes,
uint8_t *  dataptr 
)

Member Data Documentation

uint8_t ACM::bAddress
protected
uint8_t ACM::bConfNum
protected
uint8_t ACM::bControlIface
protected
uint8_t ACM::bDataIface
protected
uint8_t ACM::bNumEP
protected
bool ACM::bPollEnable
protected
const uint8_t ACM::epDataInIndex = 1
staticprotected
const uint8_t ACM::epDataOutIndex = 2
staticprotected
EpInfo ACM::epInfo[ACM_MAX_ENDPOINTS]
protected
const uint8_t ACM::epInterruptInIndex = 3
staticprotected
CDCAsyncOper* ACM::pAsync
protected
USB* ACM::pUsb
protected
uint32_t ACM::qNextPollTime
protected
bool ACM::ready
protected

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