USB Host Shield 2.0
Classes | Macros
cdcftdi.h File Reference
#include "Usb.h"
Include dependency graph for cdcftdi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FTDIAsyncOper
 
class  FTDI
 

Macros

#define bmREQ_FTDI_OUT   0x40
 
#define bmREQ_FTDI_IN   0xc0
 
#define FTDI_VID   0x0403
 
#define FTDI_PID   0x6001
 
#define FT232AM   0x0200
 
#define FT232BM   0x0400
 
#define FT2232   0x0500
 
#define FT232R   0x0600
 
#define FTDI_SIO_RESET   0 /* Reset the port */
 
#define FTDI_SIO_MODEM_CTRL   1 /* Set the modem control register */
 
#define FTDI_SIO_SET_FLOW_CTRL   2 /* Set flow control register */
 
#define FTDI_SIO_SET_BAUD_RATE   3 /* Set baud rate */
 
#define FTDI_SIO_SET_DATA   4 /* Set the data characteristics of the port */
 
#define FTDI_SIO_GET_MODEM_STATUS   5 /* Retrieve current value of modem status register */
 
#define FTDI_SIO_SET_EVENT_CHAR   6 /* Set the event character */
 
#define FTDI_SIO_SET_ERROR_CHAR   7 /* Set the error character */
 
#define FTDI_SIO_SET_LATENCY_TIMER   9 /* Set the latency timer */
 
#define FTDI_SIO_GET_LATENCY_TIMER   10 /* Get the latency timer */
 
#define FTDI_SIO_RESET_SIO   0
 
#define FTDI_SIO_RESET_PURGE_RX   1
 
#define FTDI_SIO_RESET_PURGE_TX   2
 
#define FTDI_SIO_SET_DATA_PARITY_NONE   (0x0 << 8 )
 
#define FTDI_SIO_SET_DATA_PARITY_ODD   (0x1 << 8 )
 
#define FTDI_SIO_SET_DATA_PARITY_EVEN   (0x2 << 8 )
 
#define FTDI_SIO_SET_DATA_PARITY_MARK   (0x3 << 8 )
 
#define FTDI_SIO_SET_DATA_PARITY_SPACE   (0x4 << 8 )
 
#define FTDI_SIO_SET_DATA_STOP_BITS_1   (0x0 << 11)
 
#define FTDI_SIO_SET_DATA_STOP_BITS_15   (0x1 << 11)
 
#define FTDI_SIO_SET_DATA_STOP_BITS_2   (0x2 << 11)
 
#define FTDI_SIO_SET_BREAK   (0x1 << 14)
 
#define FTDI_SIO_SET_DTR_MASK   0x1
 
#define FTDI_SIO_SET_DTR_HIGH   ( 1 | ( FTDI_SIO_SET_DTR_MASK << 8))
 
#define FTDI_SIO_SET_DTR_LOW   ( 0 | ( FTDI_SIO_SET_DTR_MASK << 8))
 
#define FTDI_SIO_SET_RTS_MASK   0x2
 
#define FTDI_SIO_SET_RTS_HIGH   ( 2 | ( FTDI_SIO_SET_RTS_MASK << 8 ))
 
#define FTDI_SIO_SET_RTS_LOW   ( 0 | ( FTDI_SIO_SET_RTS_MASK << 8 ))
 
#define FTDI_SIO_DISABLE_FLOW_CTRL   0x0
 
#define FTDI_SIO_RTS_CTS_HS   (0x1 << 8)
 
#define FTDI_SIO_DTR_DSR_HS   (0x2 << 8)
 
#define FTDI_SIO_XON_XOFF_HS   (0x4 << 8)
 
#define FTDI_SIO_CTS_MASK   0x10
 
#define FTDI_SIO_DSR_MASK   0x20
 
#define FTDI_SIO_RI_MASK   0x40
 
#define FTDI_SIO_RLSD_MASK   0x80
 
#define FTDI_MAX_ENDPOINTS   3
 

Macro Definition Documentation

◆ bmREQ_FTDI_OUT

#define bmREQ_FTDI_OUT   0x40

Definition at line 22 of file cdcftdi.h.

◆ bmREQ_FTDI_IN

#define bmREQ_FTDI_IN   0xc0

Definition at line 23 of file cdcftdi.h.

◆ FTDI_VID

#define FTDI_VID   0x0403

Definition at line 28 of file cdcftdi.h.

◆ FTDI_PID

#define FTDI_PID   0x6001

Definition at line 29 of file cdcftdi.h.

◆ FT232AM

#define FT232AM   0x0200

Definition at line 31 of file cdcftdi.h.

◆ FT232BM

#define FT232BM   0x0400

Definition at line 32 of file cdcftdi.h.

◆ FT2232

#define FT2232   0x0500

Definition at line 33 of file cdcftdi.h.

◆ FT232R

#define FT232R   0x0600

Definition at line 34 of file cdcftdi.h.

◆ FTDI_SIO_RESET

#define FTDI_SIO_RESET   0 /* Reset the port */

Definition at line 37 of file cdcftdi.h.

◆ FTDI_SIO_MODEM_CTRL

#define FTDI_SIO_MODEM_CTRL   1 /* Set the modem control register */

Definition at line 38 of file cdcftdi.h.

◆ FTDI_SIO_SET_FLOW_CTRL

#define FTDI_SIO_SET_FLOW_CTRL   2 /* Set flow control register */

Definition at line 39 of file cdcftdi.h.

◆ FTDI_SIO_SET_BAUD_RATE

#define FTDI_SIO_SET_BAUD_RATE   3 /* Set baud rate */

Definition at line 40 of file cdcftdi.h.

◆ FTDI_SIO_SET_DATA

#define FTDI_SIO_SET_DATA   4 /* Set the data characteristics of the port */

Definition at line 41 of file cdcftdi.h.

◆ FTDI_SIO_GET_MODEM_STATUS

#define FTDI_SIO_GET_MODEM_STATUS   5 /* Retrieve current value of modem status register */

Definition at line 42 of file cdcftdi.h.

◆ FTDI_SIO_SET_EVENT_CHAR

#define FTDI_SIO_SET_EVENT_CHAR   6 /* Set the event character */

Definition at line 43 of file cdcftdi.h.

◆ FTDI_SIO_SET_ERROR_CHAR

#define FTDI_SIO_SET_ERROR_CHAR   7 /* Set the error character */

Definition at line 44 of file cdcftdi.h.

◆ FTDI_SIO_SET_LATENCY_TIMER

#define FTDI_SIO_SET_LATENCY_TIMER   9 /* Set the latency timer */

Definition at line 45 of file cdcftdi.h.

◆ FTDI_SIO_GET_LATENCY_TIMER

#define FTDI_SIO_GET_LATENCY_TIMER   10 /* Get the latency timer */

Definition at line 46 of file cdcftdi.h.

◆ FTDI_SIO_RESET_SIO

#define FTDI_SIO_RESET_SIO   0

Definition at line 48 of file cdcftdi.h.

◆ FTDI_SIO_RESET_PURGE_RX

#define FTDI_SIO_RESET_PURGE_RX   1

Definition at line 49 of file cdcftdi.h.

◆ FTDI_SIO_RESET_PURGE_TX

#define FTDI_SIO_RESET_PURGE_TX   2

Definition at line 50 of file cdcftdi.h.

◆ FTDI_SIO_SET_DATA_PARITY_NONE

#define FTDI_SIO_SET_DATA_PARITY_NONE   (0x0 << 8 )

Definition at line 52 of file cdcftdi.h.

◆ FTDI_SIO_SET_DATA_PARITY_ODD

#define FTDI_SIO_SET_DATA_PARITY_ODD   (0x1 << 8 )

Definition at line 53 of file cdcftdi.h.

◆ FTDI_SIO_SET_DATA_PARITY_EVEN

#define FTDI_SIO_SET_DATA_PARITY_EVEN   (0x2 << 8 )

Definition at line 54 of file cdcftdi.h.

◆ FTDI_SIO_SET_DATA_PARITY_MARK

#define FTDI_SIO_SET_DATA_PARITY_MARK   (0x3 << 8 )

Definition at line 55 of file cdcftdi.h.

◆ FTDI_SIO_SET_DATA_PARITY_SPACE

#define FTDI_SIO_SET_DATA_PARITY_SPACE   (0x4 << 8 )

Definition at line 56 of file cdcftdi.h.

◆ FTDI_SIO_SET_DATA_STOP_BITS_1

#define FTDI_SIO_SET_DATA_STOP_BITS_1   (0x0 << 11)

Definition at line 57 of file cdcftdi.h.

◆ FTDI_SIO_SET_DATA_STOP_BITS_15

#define FTDI_SIO_SET_DATA_STOP_BITS_15   (0x1 << 11)

Definition at line 58 of file cdcftdi.h.

◆ FTDI_SIO_SET_DATA_STOP_BITS_2

#define FTDI_SIO_SET_DATA_STOP_BITS_2   (0x2 << 11)

Definition at line 59 of file cdcftdi.h.

◆ FTDI_SIO_SET_BREAK

#define FTDI_SIO_SET_BREAK   (0x1 << 14)

Definition at line 60 of file cdcftdi.h.

◆ FTDI_SIO_SET_DTR_MASK

#define FTDI_SIO_SET_DTR_MASK   0x1

Definition at line 62 of file cdcftdi.h.

◆ FTDI_SIO_SET_DTR_HIGH

#define FTDI_SIO_SET_DTR_HIGH   ( 1 | ( FTDI_SIO_SET_DTR_MASK << 8))

Definition at line 63 of file cdcftdi.h.

◆ FTDI_SIO_SET_DTR_LOW

#define FTDI_SIO_SET_DTR_LOW   ( 0 | ( FTDI_SIO_SET_DTR_MASK << 8))

Definition at line 64 of file cdcftdi.h.

◆ FTDI_SIO_SET_RTS_MASK

#define FTDI_SIO_SET_RTS_MASK   0x2

Definition at line 65 of file cdcftdi.h.

◆ FTDI_SIO_SET_RTS_HIGH

#define FTDI_SIO_SET_RTS_HIGH   ( 2 | ( FTDI_SIO_SET_RTS_MASK << 8 ))

Definition at line 66 of file cdcftdi.h.

◆ FTDI_SIO_SET_RTS_LOW

#define FTDI_SIO_SET_RTS_LOW   ( 0 | ( FTDI_SIO_SET_RTS_MASK << 8 ))

Definition at line 67 of file cdcftdi.h.

◆ FTDI_SIO_DISABLE_FLOW_CTRL

#define FTDI_SIO_DISABLE_FLOW_CTRL   0x0

Definition at line 69 of file cdcftdi.h.

◆ FTDI_SIO_RTS_CTS_HS

#define FTDI_SIO_RTS_CTS_HS   (0x1 << 8)

Definition at line 70 of file cdcftdi.h.

◆ FTDI_SIO_DTR_DSR_HS

#define FTDI_SIO_DTR_DSR_HS   (0x2 << 8)

Definition at line 71 of file cdcftdi.h.

◆ FTDI_SIO_XON_XOFF_HS

#define FTDI_SIO_XON_XOFF_HS   (0x4 << 8)

Definition at line 72 of file cdcftdi.h.

◆ FTDI_SIO_CTS_MASK

#define FTDI_SIO_CTS_MASK   0x10

Definition at line 74 of file cdcftdi.h.

◆ FTDI_SIO_DSR_MASK

#define FTDI_SIO_DSR_MASK   0x20

Definition at line 75 of file cdcftdi.h.

◆ FTDI_SIO_RI_MASK

#define FTDI_SIO_RI_MASK   0x40

Definition at line 76 of file cdcftdi.h.

◆ FTDI_SIO_RLSD_MASK

#define FTDI_SIO_RLSD_MASK   0x80

Definition at line 77 of file cdcftdi.h.

◆ FTDI_MAX_ENDPOINTS

#define FTDI_MAX_ENDPOINTS   3

Definition at line 96 of file cdcftdi.h.