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, uint16_t idProduct=FTDI_PID)
 
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)
 
virtual bool isReady ()
 
- 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 96 of file cdcftdi.h.

Constructor & Destructor Documentation

◆ FTDI()

FTDI::FTDI ( USB pusb,
FTDIAsyncOper pasync,
uint16_t  idProduct = FTDI_PID 
)

Definition at line 23 of file cdcftdi.cpp.

Member Function Documentation

◆ SetBaudRate()

uint8_t FTDI::SetBaudRate ( uint32_t  baud)

Definition at line 276 of file cdcftdi.cpp.

◆ SetModemControl()

uint8_t FTDI::SetModemControl ( uint16_t  control)

Definition at line 316 of file cdcftdi.cpp.

◆ SetFlowControl()

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

Definition at line 324 of file cdcftdi.cpp.

◆ SetData()

uint8_t FTDI::SetData ( uint16_t  databm)

Definition at line 332 of file cdcftdi.cpp.

◆ RcvData()

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

Definition at line 340 of file cdcftdi.cpp.

◆ SndData()

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

Definition at line 348 of file cdcftdi.cpp.

◆ Init()

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

Reimplemented from USBDeviceConfig.

Definition at line 41 of file cdcftdi.cpp.

◆ Release()

uint8_t FTDI::Release ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 250 of file cdcftdi.cpp.

◆ Poll()

uint8_t FTDI::Poll ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 261 of file cdcftdi.cpp.

◆ GetAddress()

virtual uint8_t FTDI::GetAddress ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 134 of file cdcftdi.h.

◆ EndpointXtract()

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 223 of file cdcftdi.cpp.

◆ VIDPIDOK()

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

Reimplemented from USBDeviceConfig.

Definition at line 141 of file cdcftdi.h.

◆ isReady()

virtual bool FTDI::isReady ( )
inlinevirtual

Definition at line 144 of file cdcftdi.h.


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