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)
 
- Public Member Functions inherited from USBDeviceConfig
virtual uint8_t ConfigureDevice (uint8_t parent, uint8_t port, bool lowspeed)
 
virtual void ResetHubPort (uint8_t port)
 
virtual boolean VIDPIDOK (uint16_t vid, uint16_t pid)
 
virtual boolean DEVCLASSOK (uint8_t klass)
 

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
 

Detailed Description

Definition at line 138 of file cdcacm.h.

Constructor & Destructor Documentation

ACM::ACM ( USB pusb,
CDCAsyncOper pasync 
)

Definition at line 23 of file cdcacm.cpp.

Member Function Documentation

void ACM::PrintEndpointDescriptor ( const USB_ENDPOINT_DESCRIPTOR ep_ptr)
protected

Definition at line 336 of file cdcacm.cpp.

uint8_t ACM::SetCommFeature ( uint16_t  fid,
uint8_t  nbytes,
uint8_t *  dataptr 
)

Definition at line 308 of file cdcacm.cpp.

uint8_t ACM::GetCommFeature ( uint16_t  fid,
uint8_t  nbytes,
uint8_t *  dataptr 
)

Definition at line 312 of file cdcacm.cpp.

uint8_t ACM::ClearCommFeature ( uint16_t  fid)

Definition at line 316 of file cdcacm.cpp.

uint8_t ACM::SetLineCoding ( const LINE_CODING dataptr)

Definition at line 320 of file cdcacm.cpp.

uint8_t ACM::GetLineCoding ( LINE_CODING dataptr)

Definition at line 324 of file cdcacm.cpp.

uint8_t ACM::SetControlLineState ( uint8_t  state)

Definition at line 328 of file cdcacm.cpp.

uint8_t ACM::SendBreak ( uint16_t  duration)

Definition at line 332 of file cdcacm.cpp.

uint8_t ACM::GetNotif ( uint16_t *  bytes_rcvd,
uint8_t *  dataptr 
)
uint8_t ACM::RcvData ( uint16_t *  nbytesptr,
uint8_t *  dataptr 
)

Definition at line 300 of file cdcacm.cpp.

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

Definition at line 304 of file cdcacm.cpp.

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

Reimplemented from USBDeviceConfig.

Reimplemented in PL2303.

Definition at line 47 of file cdcacm.cpp.

uint8_t ACM::Release ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 251 of file cdcacm.cpp.

uint8_t ACM::Poll ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 264 of file cdcacm.cpp.

virtual uint8_t ACM::GetAddress ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 180 of file cdcacm.h.

virtual bool ACM::isReady ( )
inlinevirtual

Definition at line 184 of file cdcacm.h.

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

Implements UsbConfigXtracter.

Definition at line 224 of file cdcacm.cpp.

Member Data Documentation

const uint8_t ACM::epDataInIndex = 1
staticprotected

Definition at line 140 of file cdcacm.h.

const uint8_t ACM::epDataOutIndex = 2
staticprotected

Definition at line 141 of file cdcacm.h.

const uint8_t ACM::epInterruptInIndex = 3
staticprotected

Definition at line 142 of file cdcacm.h.

USB* ACM::pUsb
protected

Definition at line 144 of file cdcacm.h.

CDCAsyncOper* ACM::pAsync
protected

Definition at line 145 of file cdcacm.h.

uint8_t ACM::bAddress
protected

Definition at line 146 of file cdcacm.h.

uint8_t ACM::bConfNum
protected

Definition at line 147 of file cdcacm.h.

uint8_t ACM::bControlIface
protected

Definition at line 148 of file cdcacm.h.

uint8_t ACM::bDataIface
protected

Definition at line 149 of file cdcacm.h.

uint8_t ACM::bNumEP
protected

Definition at line 150 of file cdcacm.h.

uint32_t ACM::qNextPollTime
protected

Definition at line 151 of file cdcacm.h.

bool ACM::bPollEnable
protected

Definition at line 152 of file cdcacm.h.

bool ACM::ready
protected

Definition at line 153 of file cdcacm.h.

EpInfo ACM::epInfo[ACM_MAX_ENDPOINTS]
protected

Definition at line 155 of file cdcacm.h.


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