Data Structures | |
| struct | PQUAD_PORT_STATE |
| struct | PQUAD_PORT_CONFIG |
| struct | _QUAD_PORT_STATE |
| CP2108 Quad Port State structure (used in QUAD_PORT_CONFIG). Alias of this struct is QUAD_PORT_STATE. More... | |
| struct | _QUAD_PORT_CONFIG |
| CP2108 Quad Port Config structure. Alias of this struct is QUAD_PORT_CONFIG. More... | |
Macros | |
| #define | PORT_TX0 0x0001 |
| CP2108 Define bit locations for Mode/Latch for Reset and Suspend structures. More... | |
| #define | PORT_RX0 0x0002 |
| RX0 location. More... | |
| #define | PORT_RTS0 0x0004 |
| RTS0 location. More... | |
| #define | PORT_CTS0 0x0008 |
| CTS0 location. More... | |
| #define | PORT_DTR0 0x0010 |
| DTR0 location. More... | |
| #define | PORT_DSR0 0x0020 |
| DSR0 location. More... | |
| #define | PORT_DCD0 0x0040 |
| DCD0 location. More... | |
| #define | PORT_RI0 0x0080 |
| RI0 location. More... | |
| #define | PORT_TX1 0x0100 |
| TX1 location. More... | |
| #define | PORT_RX1 0x0200 |
| RX1 location. More... | |
| #define | PORT_RTS1 0x0400 |
| RTS1 location. More... | |
| #define | PORT_CTS1 0x0800 |
| CTS1 location. More... | |
| #define | PORT_DTR1 0x1000 |
| DTR1 location. More... | |
| #define | PORT_DSR1 0x2000 |
| DSR1 location. More... | |
| #define | PORT_DCD1 0x4000 |
| DCD1 location. More... | |
| #define | PORT_RI1 0x8000 |
| RI1 location. More... | |
| #define | PORT_GPIO_0 0x0001 |
| GPIO 0. More... | |
| #define | PORT_GPIO_1 0x0002 |
| GPIO 1. More... | |
| #define | PORT_GPIO_2 0x0004 |
| GPIO 2. More... | |
| #define | PORT_GPIO_3 0x0008 |
| GPIO 3. More... | |
| #define | PORT_GPIO_4 0x0010 |
| GPIO 4. More... | |
| #define | PORT_GPIO_5 0x0020 |
| GPIO 5. More... | |
| #define | PORT_GPIO_6 0x0040 |
| GPIO 6. More... | |
| #define | PORT_GPIO_7 0x0080 |
| GPIO 7. More... | |
| #define | PORT_GPIO_8 0x0100 |
| GPIO 8. More... | |
| #define | PORT_GPIO_9 0x0200 |
| GPIO 9. More... | |
| #define | PORT_GPIO_10 0x0400 |
| GPIO 10. More... | |
| #define | PORT_GPIO_11 0x0800 |
| GPIO 11. More... | |
| #define | PORT_GPIO_12 0x1000 |
| GPIO 12. More... | |
| #define | PORT_GPIO_13 0x2000 |
| GPIO 13. More... | |
| #define | PORT_GPIO_14 0x4000 |
| GPIO 14. More... | |
| #define | PORT_GPIO_15 0x8000 |
| GPIO 15. More... | |
| #define | PORT_SUSPEND 0x0001 |
| SUSPEND location. More... | |
| #define | PORT_SUSPEND_BAR 0x0002 |
| SUSPEND_BAR location. More... | |
| #define | PORT_DTR2 0x0004 |
| DTR2 location. More... | |
| #define | PORT_DSR2 0x0008 |
| DSR2 location. More... | |
| #define | PORT_TX2 0x0001 |
| TX2 location. More... | |
| #define | PORT_RX2 0x0002 |
| RX2 location. More... | |
| #define | PORT_RTS2 0x0004 |
| RTS2 location. More... | |
| #define | PORT_CTS2 0x0008 |
| CTS2 location. More... | |
| #define | PORT_DCD2 0x0010 |
| DCD2 location. More... | |
| #define | PORT_RI2 0x0020 |
| RI2 location. More... | |
| #define | PORT_DTR3 0x0040 |
| DTR3 location. More... | |
| #define | PORT_DSR3 0x0080 |
| DSR3 location. More... | |
| #define | PORT_DCD3 0x0100 |
| DCD3 location. More... | |
| #define | PORT_RI3 0x0200 |
| RI3 location. More... | |
| #define | PORT_RTS3 0x0001 |
| RTS3 location. More... | |
| #define | PORT_CTS3 0x0002 |
| CTS3 location. More... | |
| #define | PORT_TX3 0x0004 |
| TX3 location. More... | |
| #define | PORT_RX3 0x0008 |
| RX3 location. More... | |
| #define | EF_IFC_GPIO_TXLED 0x01 |
| CP2108 Define bit locations for QUAD_PORT_CONFIG.EnhancedFxn_IFC0 - QUAD_PORT_CONFIG.EnhancedFxn_IFC3 inclusive. More... | |
| #define | EF_IFC_GPIO_RXLED 0x02 |
| RXLED location. More... | |
| #define | EF_IFC_GPIO_RS485 0x04 |
| RS485 location. More... | |
| #define | EF_IFC_GPIO_RS485_LOGIC 0x08 |
| RS485_LOGIC. More... | |
| #define | EF_IFC_GPIO_CLOCK 0x10 |
| CLOCK. More... | |
| #define | EF_IFC_DYNAMIC_SUSPEND 0x40 |
| DYNAMIC_SUSPEND. More... | |
| #define | EF_DEVICE_WEAKPULLUP_RESET 0x10 |
| CP2108 Define bit locations for QUAD_PORT_CONFIG.EnhancedFxn_Device. More... | |
| #define | EF_DEVICE_WEAKPULLUP_SUSPEND 0x20 |
| WEAKPULLUP_SUSPEND. More... | |
| #define | EF_DEVICE_DYNAMIC_SUSPEND 0x40 |
| DYNAMIC_SUSPEND. More... | |
Quad Port Config definitions see CP210x_GetQuadPortConfig() and CP210x_SetQuadPortConfig()
| struct QUAD_PORT_STATE |
| struct QUAD_PORT_CONFIG |
| Data Fields | ||
|---|---|---|
| uint8_t | EnhancedFxn_Device | Enhanced function of Devie. |
| uint8_t | EnhancedFxn_IFC0 | Enhanced function of Interface 0. |
| uint8_t | EnhancedFxn_IFC1 | |
| uint8_t | EnhancedFxn_IFC2 | |
| uint8_t | EnhancedFxn_IFC3 | |
| uint8_t | ExtClk0Freq | |
| uint8_t | ExtClk1Freq | |
| uint8_t | ExtClk2Freq | |
| uint8_t | ExtClk3Freq | |
| uint8_t | IPDelay_IFC0 | |
| uint8_t | IPDelay_IFC1 | |
| uint8_t | IPDelay_IFC2 | |
| uint8_t | IPDelay_IFC3 | |
| QUAD_PORT_STATE | Reset_Latch | |
| QUAD_PORT_STATE | Suspend_Latch | |
| struct _QUAD_PORT_STATE |
CP2108 Quad Port State structure (used in QUAD_PORT_CONFIG). Alias of this struct is QUAD_PORT_STATE.
| struct _QUAD_PORT_CONFIG |
CP2108 Quad Port Config structure. Alias of this struct is QUAD_PORT_CONFIG.
| #define EF_DEVICE_DYNAMIC_SUSPEND 0x40 |
DYNAMIC_SUSPEND.
| #define EF_DEVICE_WEAKPULLUP_RESET 0x10 |
CP2108 Define bit locations for QUAD_PORT_CONFIG.EnhancedFxn_Device.
WEAKPULLUP_RESET
| #define EF_DEVICE_WEAKPULLUP_SUSPEND 0x20 |
WEAKPULLUP_SUSPEND.
| #define EF_IFC_DYNAMIC_SUSPEND 0x40 |
DYNAMIC_SUSPEND.
| #define EF_IFC_GPIO_CLOCK 0x10 |
CLOCK.
| #define EF_IFC_GPIO_RS485 0x04 |
RS485 location.
| #define EF_IFC_GPIO_RS485_LOGIC 0x08 |
RS485_LOGIC.
| #define EF_IFC_GPIO_RXLED 0x02 |
RXLED location.
| #define EF_IFC_GPIO_TXLED 0x01 |
CP2108 Define bit locations for QUAD_PORT_CONFIG.EnhancedFxn_IFC0 - QUAD_PORT_CONFIG.EnhancedFxn_IFC3 inclusive.
TXLED location
| #define PORT_CTS0 0x0008 |
CTS0 location.
| #define PORT_CTS1 0x0800 |
CTS1 location.
| #define PORT_CTS2 0x0008 |
CTS2 location.
| #define PORT_CTS3 0x0002 |
CTS3 location.
| #define PORT_DCD0 0x0040 |
DCD0 location.
| #define PORT_DCD1 0x4000 |
DCD1 location.
| #define PORT_DCD2 0x0010 |
DCD2 location.
| #define PORT_DCD3 0x0100 |
DCD3 location.
| #define PORT_DSR0 0x0020 |
DSR0 location.
| #define PORT_DSR1 0x2000 |
DSR1 location.
| #define PORT_DSR2 0x0008 |
DSR2 location.
| #define PORT_DSR3 0x0080 |
DSR3 location.
| #define PORT_DTR0 0x0010 |
DTR0 location.
| #define PORT_DTR1 0x1000 |
DTR1 location.
| #define PORT_DTR2 0x0004 |
DTR2 location.
| #define PORT_DTR3 0x0040 |
DTR3 location.
| #define PORT_GPIO_0 0x0001 |
GPIO 0.
| #define PORT_GPIO_1 0x0002 |
GPIO 1.
| #define PORT_GPIO_10 0x0400 |
GPIO 10.
| #define PORT_GPIO_11 0x0800 |
GPIO 11.
| #define PORT_GPIO_12 0x1000 |
GPIO 12.
| #define PORT_GPIO_13 0x2000 |
GPIO 13.
| #define PORT_GPIO_14 0x4000 |
GPIO 14.
| #define PORT_GPIO_15 0x8000 |
GPIO 15.
| #define PORT_GPIO_2 0x0004 |
GPIO 2.
| #define PORT_GPIO_3 0x0008 |
GPIO 3.
| #define PORT_GPIO_4 0x0010 |
GPIO 4.
| #define PORT_GPIO_5 0x0020 |
GPIO 5.
| #define PORT_GPIO_6 0x0040 |
GPIO 6.
| #define PORT_GPIO_7 0x0080 |
GPIO 7.
| #define PORT_GPIO_8 0x0100 |
GPIO 8.
| #define PORT_GPIO_9 0x0200 |
GPIO 9.
| #define PORT_RI0 0x0080 |
RI0 location.
| #define PORT_RI1 0x8000 |
RI1 location.
| #define PORT_RI2 0x0020 |
RI2 location.
| #define PORT_RI3 0x0200 |
RI3 location.
| #define PORT_RTS0 0x0004 |
RTS0 location.
| #define PORT_RTS1 0x0400 |
RTS1 location.
| #define PORT_RTS2 0x0004 |
RTS2 location.
| #define PORT_RTS3 0x0001 |
RTS3 location.
| #define PORT_RX0 0x0002 |
RX0 location.
| #define PORT_RX1 0x0200 |
RX1 location.
| #define PORT_RX2 0x0002 |
RX2 location.
| #define PORT_RX3 0x0008 |
RX3 location.
| #define PORT_SUSPEND 0x0001 |
SUSPEND location.
| #define PORT_SUSPEND_BAR 0x0002 |
SUSPEND_BAR location.
| #define PORT_TX0 0x0001 |
CP2108 Define bit locations for Mode/Latch for Reset and Suspend structures.
TX0 location
| #define PORT_TX1 0x0100 |
TX1 location.
| #define PORT_TX2 0x0001 |
TX2 location.
| #define PORT_TX3 0x0004 |
TX3 location.