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)
 
- 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 boolean VIDPIDOK (uint16_t vid, uint16_t pid)
 
virtual boolean DEVCLASSOK (uint8_t klass)
 

Detailed Description

Definition at line 107 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 269 of file cdcftdi.cpp.

uint8_t FTDI::SetModemControl ( uint16_t  control)

Definition at line 306 of file cdcftdi.cpp.

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

Definition at line 310 of file cdcftdi.cpp.

uint8_t FTDI::SetData ( uint16_t  databm)

Definition at line 314 of file cdcftdi.cpp.

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

Definition at line 318 of file cdcftdi.cpp.

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

Definition at line 322 of file cdcftdi.cpp.

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

Reimplemented from USBDeviceConfig.

Definition at line 41 of file cdcftdi.cpp.

uint8_t FTDI::Release ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 244 of file cdcftdi.cpp.

uint8_t FTDI::Poll ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 254 of file cdcftdi.cpp.

virtual uint8_t FTDI::GetAddress ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

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

Implements UsbConfigXtracter.

Definition at line 217 of file cdcftdi.cpp.


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