USB_Host_Shield_2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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)
 
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 void EndpointXtract (uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)
 

Constructor & Destructor Documentation

FTDI::FTDI ( USB pusb,
FTDIAsyncOper pasync 
)

Member Function Documentation

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

Implements UsbConfigXtracter.

virtual uint8_t FTDI::GetAddress ( )
inlinevirtual

Implements USBDeviceConfig.

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

Implements USBDeviceConfig.

uint8_t FTDI::Poll ( )
virtual

Implements USBDeviceConfig.

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

Implements USBDeviceConfig.

uint8_t FTDI::SetBaudRate ( uint32_t  baud)
uint8_t FTDI::SetData ( uint16_t  databm)
uint8_t FTDI::SetFlowControl ( uint8_t  protocol,
uint8_t  xon = 0x11,
uint8_t  xoff = 0x13 
)
uint8_t FTDI::SetModemControl ( uint16_t  control)
uint8_t FTDI::SndData ( uint16_t  nbytes,
uint8_t *  dataptr 
)

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