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_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

#define bmREQ_FTDI_OUT   0x40

Definition at line 22 of file cdcftdi.h.

#define bmREQ_FTDI_IN   0xc0

Definition at line 23 of file cdcftdi.h.

#define FTDI_VID   0x0403

Definition at line 28 of file cdcftdi.h.

#define FTDI_PID   0x6001

Definition at line 29 of file cdcftdi.h.

#define FT232AM   0x0200

Definition at line 31 of file cdcftdi.h.

#define FT232BM   0x0400

Definition at line 32 of file cdcftdi.h.

#define FT2232   0x0500

Definition at line 33 of file cdcftdi.h.

#define FT232R   0x0600

Definition at line 34 of file cdcftdi.h.

#define FTDI_SIO_RESET   0 /* Reset the port */

Definition at line 37 of file cdcftdi.h.

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

Definition at line 38 of file cdcftdi.h.

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

Definition at line 39 of file cdcftdi.h.

#define FTDI_SIO_SET_BAUD_RATE   3 /* Set baud rate */

Definition at line 40 of file cdcftdi.h.

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

Definition at line 41 of file cdcftdi.h.

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

Definition at line 42 of file cdcftdi.h.

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

Definition at line 43 of file cdcftdi.h.

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

Definition at line 44 of file cdcftdi.h.

#define FTDI_SIO_RESET_SIO   0

Definition at line 46 of file cdcftdi.h.

#define FTDI_SIO_RESET_PURGE_RX   1

Definition at line 47 of file cdcftdi.h.

#define FTDI_SIO_RESET_PURGE_TX   2

Definition at line 48 of file cdcftdi.h.

#define FTDI_SIO_SET_DATA_PARITY_NONE   (0x0 << 8 )

Definition at line 50 of file cdcftdi.h.

#define FTDI_SIO_SET_DATA_PARITY_ODD   (0x1 << 8 )

Definition at line 51 of file cdcftdi.h.

#define FTDI_SIO_SET_DATA_PARITY_EVEN   (0x2 << 8 )

Definition at line 52 of file cdcftdi.h.

#define FTDI_SIO_SET_DATA_PARITY_MARK   (0x3 << 8 )

Definition at line 53 of file cdcftdi.h.

#define FTDI_SIO_SET_DATA_PARITY_SPACE   (0x4 << 8 )

Definition at line 54 of file cdcftdi.h.

#define FTDI_SIO_SET_DATA_STOP_BITS_1   (0x0 << 11)

Definition at line 55 of file cdcftdi.h.

#define FTDI_SIO_SET_DATA_STOP_BITS_15   (0x1 << 11)

Definition at line 56 of file cdcftdi.h.

#define FTDI_SIO_SET_DATA_STOP_BITS_2   (0x2 << 11)

Definition at line 57 of file cdcftdi.h.

#define FTDI_SIO_SET_BREAK   (0x1 << 14)

Definition at line 58 of file cdcftdi.h.

#define FTDI_SIO_SET_DTR_MASK   0x1

Definition at line 60 of file cdcftdi.h.

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

Definition at line 61 of file cdcftdi.h.

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

Definition at line 62 of file cdcftdi.h.

#define FTDI_SIO_SET_RTS_MASK   0x2

Definition at line 63 of file cdcftdi.h.

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

Definition at line 64 of file cdcftdi.h.

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

Definition at line 65 of file cdcftdi.h.

#define FTDI_SIO_DISABLE_FLOW_CTRL   0x0

Definition at line 67 of file cdcftdi.h.

#define FTDI_SIO_RTS_CTS_HS   (0x1 << 8)

Definition at line 68 of file cdcftdi.h.

#define FTDI_SIO_DTR_DSR_HS   (0x2 << 8)

Definition at line 69 of file cdcftdi.h.

#define FTDI_SIO_XON_XOFF_HS   (0x4 << 8)

Definition at line 70 of file cdcftdi.h.

#define FTDI_SIO_CTS_MASK   0x10

Definition at line 72 of file cdcftdi.h.

#define FTDI_SIO_DSR_MASK   0x20

Definition at line 73 of file cdcftdi.h.

#define FTDI_SIO_RI_MASK   0x40

Definition at line 74 of file cdcftdi.h.

#define FTDI_SIO_RLSD_MASK   0x80

Definition at line 75 of file cdcftdi.h.

#define FTDI_MAX_ENDPOINTS   3

Definition at line 94 of file cdcftdi.h.