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

#include <cdcftdi.h>

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

Public Member Functions

 FTDI (USB *pusb, FTDIAsyncOper *pasync)
 
uint8_t SetBaudRate (uint32_t baud)
 
uint8_t SetModemControl (uint16_t control)
 
uint8_t SetFlowControl (uint8_t protocol, uint8_t xon=0x11, uint8_t xoff=0x13)
 
uint8_t SetData (uint16_t databm)
 
uint8_t RcvData (uint16_t *bytes_rcvd, 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 ()
 
virtual uint8_t GetAddress ()
 
void EndpointXtract (uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)
 
virtual bool VIDPIDOK (uint16_t vid, uint16_t pid)
 
- 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)
 

Detailed Description

Definition at line 94 of file cdcftdi.h.

Constructor & Destructor Documentation

FTDI::FTDI ( USB pusb,
FTDIAsyncOper pasync 
)

Definition at line 23 of file cdcftdi.cpp.

Member Function Documentation

uint8_t FTDI::SetBaudRate ( uint32_t  baud)

Definition at line 262 of file cdcftdi.cpp.

uint8_t FTDI::SetModemControl ( uint16_t  control)

Definition at line 299 of file cdcftdi.cpp.

uint8_t FTDI::SetFlowControl ( uint8_t  protocol,
uint8_t  xon = 0x11,
uint8_t  xoff = 0x13 
)

Definition at line 303 of file cdcftdi.cpp.

uint8_t FTDI::SetData ( uint16_t  databm)

Definition at line 307 of file cdcftdi.cpp.

uint8_t FTDI::RcvData ( uint16_t *  bytes_rcvd,
uint8_t *  dataptr 
)

Definition at line 311 of file cdcftdi.cpp.

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

Definition at line 315 of file cdcftdi.cpp.

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

Reimplemented from USBDeviceConfig.

Definition at line 39 of file cdcftdi.cpp.

uint8_t FTDI::Release ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 237 of file cdcftdi.cpp.

uint8_t FTDI::Poll ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 247 of file cdcftdi.cpp.

virtual uint8_t FTDI::GetAddress ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 130 of file cdcftdi.h.

void FTDI::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 210 of file cdcftdi.cpp.

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

Reimplemented from USBDeviceConfig.

Definition at line 137 of file cdcftdi.h.


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