USB Host Shield 2.0
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)
 
uint8_t Init (uint8_t parent, uint8_t port, bool lowspeed)
 
uint8_t Release ()
 
uint8_t Poll ()
 
bool available (void)
 
virtual uint8_t GetAddress ()
 
virtual bool isReady ()
 
virtual tty_features enhanced_status (void)
 
virtual tty_features enhanced_features (void)
 
virtual void autoflowRTS (bool s)
 
virtual void autoflowDSR (bool s)
 
virtual void autoflowXON (bool s)
 
virtual void half_duplex (bool s)
 
virtual void wide (bool s)
 
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 bool VIDPIDOK (uint16_t vid, uint16_t pid)
 
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
 
CDCAsyncOperpAsync
 
uint8_t bAddress
 
uint8_t bConfNum
 
uint8_t bControlIface
 
uint8_t bDataIface
 
uint8_t bNumEP
 
uint32_t qNextPollTime
 
volatile bool bPollEnable
 
volatile bool ready
 
tty_features _enhanced_status
 
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 163 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 318 of file cdcacm.cpp.

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

Definition at line 290 of file cdcacm.cpp.

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

Definition at line 294 of file cdcacm.cpp.

uint8_t ACM::ClearCommFeature ( uint16_t  fid)

Definition at line 298 of file cdcacm.cpp.

uint8_t ACM::SetLineCoding ( const LINE_CODING dataptr)

Definition at line 302 of file cdcacm.cpp.

uint8_t ACM::GetLineCoding ( LINE_CODING dataptr)

Definition at line 306 of file cdcacm.cpp.

uint8_t ACM::SetControlLineState ( uint8_t  state)

Definition at line 310 of file cdcacm.cpp.

uint8_t ACM::SendBreak ( uint16_t  duration)

Definition at line 314 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 282 of file cdcacm.cpp.

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

Definition at line 286 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 46 of file cdcacm.cpp.

uint8_t ACM::Release ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 259 of file cdcacm.cpp.

uint8_t ACM::Poll ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 273 of file cdcacm.cpp.

bool ACM::available ( void  )
inline

Definition at line 206 of file cdcacm.h.

virtual uint8_t ACM::GetAddress ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 210 of file cdcacm.h.

virtual bool ACM::isReady ( )
inlinevirtual

Definition at line 214 of file cdcacm.h.

virtual tty_features ACM::enhanced_status ( void  )
inlinevirtual

Definition at line 218 of file cdcacm.h.

virtual tty_features ACM::enhanced_features ( void  )
inlinevirtual

Reimplemented in XR21B1411.

Definition at line 222 of file cdcacm.h.

virtual void ACM::autoflowRTS ( bool  s)
inlinevirtual

Reimplemented in XR21B1411.

Definition at line 233 of file cdcacm.h.

virtual void ACM::autoflowDSR ( bool  s)
inlinevirtual

Reimplemented in XR21B1411.

Definition at line 236 of file cdcacm.h.

virtual void ACM::autoflowXON ( bool  s)
inlinevirtual

Reimplemented in XR21B1411.

Definition at line 239 of file cdcacm.h.

virtual void ACM::half_duplex ( bool  s)
inlinevirtual

Reimplemented in XR21B1411.

Definition at line 242 of file cdcacm.h.

virtual void ACM::wide ( bool  s)
inlinevirtual

Definition at line 245 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

Reimplemented from UsbConfigXtracter.

Definition at line 231 of file cdcacm.cpp.

Member Data Documentation

const uint8_t ACM::epDataInIndex = 1
staticprotected

Definition at line 165 of file cdcacm.h.

const uint8_t ACM::epDataOutIndex = 2
staticprotected

Definition at line 166 of file cdcacm.h.

const uint8_t ACM::epInterruptInIndex = 3
staticprotected

Definition at line 167 of file cdcacm.h.

USB* ACM::pUsb
protected

Definition at line 169 of file cdcacm.h.

CDCAsyncOper* ACM::pAsync
protected

Definition at line 170 of file cdcacm.h.

uint8_t ACM::bAddress
protected

Definition at line 171 of file cdcacm.h.

uint8_t ACM::bConfNum
protected

Definition at line 172 of file cdcacm.h.

uint8_t ACM::bControlIface
protected

Definition at line 173 of file cdcacm.h.

uint8_t ACM::bDataIface
protected

Definition at line 174 of file cdcacm.h.

uint8_t ACM::bNumEP
protected

Definition at line 175 of file cdcacm.h.

uint32_t ACM::qNextPollTime
protected

Definition at line 176 of file cdcacm.h.

volatile bool ACM::bPollEnable
protected

Definition at line 177 of file cdcacm.h.

volatile bool ACM::ready
protected

Definition at line 178 of file cdcacm.h.

tty_features ACM::_enhanced_status
protected

Definition at line 179 of file cdcacm.h.

EpInfo ACM::epInfo[ACM_MAX_ENDPOINTS]
protected

Definition at line 181 of file cdcacm.h.


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