USB Host Shield 2.0
Public Member Functions | List of all members
XR21B1411 Class Reference

#include <cdc_XR21B1411.h>

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

Public Member Functions

 XR21B1411 (USB *pusb, CDCAsyncOper *pasync)
 
virtual bool VIDPIDOK (uint16_t vid, uint16_t pid)
 
uint8_t Init (uint8_t parent, uint8_t port, bool lowspeed)
 
virtual tty_features enhanced_features (void)
 
uint8_t read_register (uint16_t reg, uint16_t *val)
 
uint8_t write_register (uint16_t reg, uint16_t val)
 
virtual void autoflowRTS (bool s)
 
virtual void autoflowDSR (bool s)
 
virtual void autoflowXON (bool s)
 
virtual void half_duplex (bool s)
 
- Public Member Functions inherited from ACM
 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 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 DEVCLASSOK (uint8_t klass)
 
virtual bool DEVSUBCLASSOK (uint8_t subklass)
 

Additional Inherited Members

- Protected Member Functions inherited from ACM
void PrintEndpointDescriptor (const USB_ENDPOINT_DESCRIPTOR *ep_ptr)
 
- Protected Attributes inherited from ACM
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 inherited from ACM
static const uint8_t epDataInIndex = 1
 
static const uint8_t epDataOutIndex = 2
 
static const uint8_t epInterruptInIndex = 3
 

Detailed Description

Definition at line 103 of file cdc_XR21B1411.h.

Constructor & Destructor Documentation

XR21B1411::XR21B1411 ( USB pusb,
CDCAsyncOper pasync 
)

Definition at line 19 of file cdc_XR21B1411.cpp.

Member Function Documentation

virtual bool XR21B1411::VIDPIDOK ( uint16_t  vid,
uint16_t  pid 
)
inlinevirtual

Used by the USB core to check what this driver support.

Parameters
vidThe device's VID.
pidThe device's PID.
Returns
Returns true if the device's VID and PID matches this driver.

Reimplemented from USBDeviceConfig.

Definition at line 115 of file cdc_XR21B1411.h.

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

Reimplemented from USBDeviceConfig.

Definition at line 25 of file cdc_XR21B1411.cpp.

virtual tty_features XR21B1411::enhanced_features ( void  )
inlinevirtual

Reimplemented from ACM.

Definition at line 121 of file cdc_XR21B1411.h.

uint8_t XR21B1411::read_register ( uint16_t  reg,
uint16_t *  val 
)
inline

Definition at line 132 of file cdc_XR21B1411.h.

uint8_t XR21B1411::write_register ( uint16_t  reg,
uint16_t  val 
)
inline

Definition at line 136 of file cdc_XR21B1411.h.

virtual void XR21B1411::autoflowRTS ( bool  s)
inlinevirtual

Reimplemented from ACM.

Definition at line 145 of file cdc_XR21B1411.h.

virtual void XR21B1411::autoflowDSR ( bool  s)
inlinevirtual

Reimplemented from ACM.

Definition at line 176 of file cdc_XR21B1411.h.

virtual void XR21B1411::autoflowXON ( bool  s)
inlinevirtual

Reimplemented from ACM.

Definition at line 211 of file cdc_XR21B1411.h.

virtual void XR21B1411::half_duplex ( bool  s)
inlinevirtual

Reimplemented from ACM.

Definition at line 243 of file cdc_XR21B1411.h.


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