Silicon Labs Host Libraries
Quad Port Config definitions

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

Detailed Description

Quad Port Config definitions see CP210x_GetQuadPortConfig() and CP210x_SetQuadPortConfig()


Data Structure Documentation

◆ QUAD_PORT_STATE

struct QUAD_PORT_STATE
Data Fields
uint16_t Latch_PB0
uint16_t Latch_PB1
uint16_t Latch_PB2
uint16_t Latch_PB3
uint16_t Latch_PB4
uint16_t LowPower_PB0
uint16_t LowPower_PB1
uint16_t LowPower_PB2
uint16_t LowPower_PB3
uint16_t LowPower_PB4
uint16_t Mode_PB0 tbd
uint16_t Mode_PB1
uint16_t Mode_PB2
uint16_t Mode_PB3
uint16_t Mode_PB4

◆ QUAD_PORT_CONFIG

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

◆ _QUAD_PORT_STATE

struct _QUAD_PORT_STATE

CP2108 Quad Port State structure (used in QUAD_PORT_CONFIG). Alias of this struct is QUAD_PORT_STATE.

◆ _QUAD_PORT_CONFIG

struct _QUAD_PORT_CONFIG

CP2108 Quad Port Config structure. Alias of this struct is QUAD_PORT_CONFIG.

Macro Definition Documentation

◆ EF_DEVICE_DYNAMIC_SUSPEND

#define EF_DEVICE_DYNAMIC_SUSPEND   0x40

DYNAMIC_SUSPEND.

◆ EF_DEVICE_WEAKPULLUP_RESET

#define EF_DEVICE_WEAKPULLUP_RESET   0x10

CP2108 Define bit locations for QUAD_PORT_CONFIG.EnhancedFxn_Device.

WEAKPULLUP_RESET

◆ EF_DEVICE_WEAKPULLUP_SUSPEND

#define EF_DEVICE_WEAKPULLUP_SUSPEND   0x20

WEAKPULLUP_SUSPEND.

◆ EF_IFC_DYNAMIC_SUSPEND

#define EF_IFC_DYNAMIC_SUSPEND   0x40

DYNAMIC_SUSPEND.

◆ EF_IFC_GPIO_CLOCK

#define EF_IFC_GPIO_CLOCK   0x10

CLOCK.

◆ EF_IFC_GPIO_RS485

#define EF_IFC_GPIO_RS485   0x04

RS485 location.

◆ EF_IFC_GPIO_RS485_LOGIC

#define EF_IFC_GPIO_RS485_LOGIC   0x08

RS485_LOGIC.

◆ EF_IFC_GPIO_RXLED

#define EF_IFC_GPIO_RXLED   0x02

RXLED location.

◆ EF_IFC_GPIO_TXLED

#define EF_IFC_GPIO_TXLED   0x01

CP2108 Define bit locations for QUAD_PORT_CONFIG.EnhancedFxn_IFC0 - QUAD_PORT_CONFIG.EnhancedFxn_IFC3 inclusive.

TXLED location

◆ PORT_CTS0

#define PORT_CTS0   0x0008

CTS0 location.

◆ PORT_CTS1

#define PORT_CTS1   0x0800

CTS1 location.

◆ PORT_CTS2

#define PORT_CTS2   0x0008

CTS2 location.

◆ PORT_CTS3

#define PORT_CTS3   0x0002

CTS3 location.

◆ PORT_DCD0

#define PORT_DCD0   0x0040

DCD0 location.

◆ PORT_DCD1

#define PORT_DCD1   0x4000

DCD1 location.

◆ PORT_DCD2

#define PORT_DCD2   0x0010

DCD2 location.

◆ PORT_DCD3

#define PORT_DCD3   0x0100

DCD3 location.

◆ PORT_DSR0

#define PORT_DSR0   0x0020

DSR0 location.

◆ PORT_DSR1

#define PORT_DSR1   0x2000

DSR1 location.

◆ PORT_DSR2

#define PORT_DSR2   0x0008

DSR2 location.

◆ PORT_DSR3

#define PORT_DSR3   0x0080

DSR3 location.

◆ PORT_DTR0

#define PORT_DTR0   0x0010

DTR0 location.

◆ PORT_DTR1

#define PORT_DTR1   0x1000

DTR1 location.

◆ PORT_DTR2

#define PORT_DTR2   0x0004

DTR2 location.

◆ PORT_DTR3

#define PORT_DTR3   0x0040

DTR3 location.

◆ PORT_GPIO_0

#define PORT_GPIO_0   0x0001

GPIO 0.

◆ PORT_GPIO_1

#define PORT_GPIO_1   0x0002

GPIO 1.

◆ PORT_GPIO_10

#define PORT_GPIO_10   0x0400

GPIO 10.

◆ PORT_GPIO_11

#define PORT_GPIO_11   0x0800

GPIO 11.

◆ PORT_GPIO_12

#define PORT_GPIO_12   0x1000

GPIO 12.

◆ PORT_GPIO_13

#define PORT_GPIO_13   0x2000

GPIO 13.

◆ PORT_GPIO_14

#define PORT_GPIO_14   0x4000

GPIO 14.

◆ PORT_GPIO_15

#define PORT_GPIO_15   0x8000

GPIO 15.

◆ PORT_GPIO_2

#define PORT_GPIO_2   0x0004

GPIO 2.

◆ PORT_GPIO_3

#define PORT_GPIO_3   0x0008

GPIO 3.

◆ PORT_GPIO_4

#define PORT_GPIO_4   0x0010

GPIO 4.

◆ PORT_GPIO_5

#define PORT_GPIO_5   0x0020

GPIO 5.

◆ PORT_GPIO_6

#define PORT_GPIO_6   0x0040

GPIO 6.

◆ PORT_GPIO_7

#define PORT_GPIO_7   0x0080

GPIO 7.

◆ PORT_GPIO_8

#define PORT_GPIO_8   0x0100

GPIO 8.

◆ PORT_GPIO_9

#define PORT_GPIO_9   0x0200

GPIO 9.

◆ PORT_RI0

#define PORT_RI0   0x0080

RI0 location.

◆ PORT_RI1

#define PORT_RI1   0x8000

RI1 location.

◆ PORT_RI2

#define PORT_RI2   0x0020

RI2 location.

◆ PORT_RI3

#define PORT_RI3   0x0200

RI3 location.

◆ PORT_RTS0

#define PORT_RTS0   0x0004

RTS0 location.

◆ PORT_RTS1

#define PORT_RTS1   0x0400

RTS1 location.

◆ PORT_RTS2

#define PORT_RTS2   0x0004

RTS2 location.

◆ PORT_RTS3

#define PORT_RTS3   0x0001

RTS3 location.

◆ PORT_RX0

#define PORT_RX0   0x0002

RX0 location.

◆ PORT_RX1

#define PORT_RX1   0x0200

RX1 location.

◆ PORT_RX2

#define PORT_RX2   0x0002

RX2 location.

◆ PORT_RX3

#define PORT_RX3   0x0008

RX3 location.

◆ PORT_SUSPEND

#define PORT_SUSPEND   0x0001

SUSPEND location.

◆ PORT_SUSPEND_BAR

#define PORT_SUSPEND_BAR   0x0002

SUSPEND_BAR location.

◆ PORT_TX0

#define PORT_TX0   0x0001

CP2108 Define bit locations for Mode/Latch for Reset and Suspend structures.

TX0 location

◆ PORT_TX1

#define PORT_TX1   0x0100

TX1 location.

◆ PORT_TX2

#define PORT_TX2   0x0001

TX2 location.

◆ PORT_TX3

#define PORT_TX3   0x0004

TX3 location.