Silicon Labs Host Libraries
Port Config definitions

Data Structures

struct  PPORT_CONFIG
 
struct  _PORT_CONFIG
 CP2103/4 Port Config Structure. Alias of this struct is PORT_CONFIG. More...
 

Macros

#define PORT_RI_ON   0x0001
 Define bit locations for PORT_CONFIG.Mode PORT_CONFIG.Reset_Latch and PORT_CONFIG.Suspend_Latch. More...
 
#define PORT_DCD_ON   0x0002
 tbd More...
 
#define PORT_DTR_ON   0x0004
 tbd More...
 
#define PORT_DSR_ON   0x0008
 tbd More...
 
#define PORT_TXD_ON   0x0010
 tbd More...
 
#define PORT_RXD_ON   0x0020
 tbd More...
 
#define PORT_RTS_ON   0x0040
 tbd More...
 
#define PORT_CTS_ON   0x0080
 tbd More...
 
#define PORT_GPIO_0_ON   0x0100
 tbd More...
 
#define PORT_GPIO_1_ON   0x0200
 tbd More...
 
#define PORT_GPIO_2_ON   0x0400
 tbd More...
 
#define PORT_GPIO_3_ON   0x0800
 tbd More...
 
#define PORT_SUSPEND_ON   0x4000
 tbd More...
 
#define PORT_SUSPEND_BAR_ON   0x8000
 tbd More...
 
#define EF_GPIO_0_TXLED   0x01
 Define bit locations for PORT_CONFIG.EnhancedFxn. More...
 
#define EF_GPIO_1_RXLED   0x02
 Under device control. More...
 
#define EF_GPIO_2_RS485   0x04
 Under device control. More...
 
#define EF_RS485_INVERT   0x08
 RS485 Invert bit. More...
 
#define EF_RS485_INVERT   0x08
 RS485 Invert bit. More...
 
#define EF_RESERVED_1   0x20
 Reserved, leave bit 5 cleared. More...
 
#define EF_SERIAL_DYNAMIC_SUSPEND   0x40
 For 8 UART/Modem signals. More...
 
#define EF_GPIO_DYNAMIC_SUSPEND   0x80
 For 4 GPIO signals. More...
 

Detailed Description

Port Config definitions see CP210x_GetPortConfig() and CP210x_SetPortConfig()


Data Structure Documentation

◆ PORT_CONFIG

struct PORT_CONFIG
Data Fields
unsigned char EnhancedFxn tbd
uint16_t Mode Push-Pull = 1, Open-Drain = 0.
uint16_t Reset_Latch Logic High = 1, Logic Low = =0.
uint16_t Suspend_Latch Logic High = 1, Logic Low = =0.

◆ _PORT_CONFIG

struct _PORT_CONFIG

CP2103/4 Port Config Structure. Alias of this struct is PORT_CONFIG.

Macro Definition Documentation

◆ EF_GPIO_0_TXLED

#define EF_GPIO_0_TXLED   0x01

Define bit locations for PORT_CONFIG.EnhancedFxn.

Under device control

◆ EF_GPIO_1_RXLED

#define EF_GPIO_1_RXLED   0x02

Under device control.

◆ EF_GPIO_2_RS485

#define EF_GPIO_2_RS485   0x04

Under device control.

◆ EF_GPIO_DYNAMIC_SUSPEND

#define EF_GPIO_DYNAMIC_SUSPEND   0x80

For 4 GPIO signals.

◆ EF_RESERVED_1

#define EF_RESERVED_1   0x20

Reserved, leave bit 5 cleared.

◆ EF_RS485_INVERT [1/2]

#define EF_RS485_INVERT   0x08

RS485 Invert bit.

Under device control.

◆ EF_RS485_INVERT [2/2]

#define EF_RS485_INVERT   0x08

RS485 Invert bit.

Under device control.

◆ EF_SERIAL_DYNAMIC_SUSPEND

#define EF_SERIAL_DYNAMIC_SUSPEND   0x40

For 8 UART/Modem signals.

◆ PORT_CTS_ON

#define PORT_CTS_ON   0x0080

tbd

◆ PORT_DCD_ON

#define PORT_DCD_ON   0x0002

tbd

◆ PORT_DSR_ON

#define PORT_DSR_ON   0x0008

tbd

◆ PORT_DTR_ON

#define PORT_DTR_ON   0x0004

tbd

◆ PORT_GPIO_0_ON

#define PORT_GPIO_0_ON   0x0100

tbd

◆ PORT_GPIO_1_ON

#define PORT_GPIO_1_ON   0x0200

tbd

◆ PORT_GPIO_2_ON

#define PORT_GPIO_2_ON   0x0400

tbd

◆ PORT_GPIO_3_ON

#define PORT_GPIO_3_ON   0x0800

tbd

◆ PORT_RI_ON

#define PORT_RI_ON   0x0001

Define bit locations for PORT_CONFIG.Mode PORT_CONFIG.Reset_Latch and PORT_CONFIG.Suspend_Latch.

tbd

◆ PORT_RTS_ON

#define PORT_RTS_ON   0x0040

tbd

◆ PORT_RXD_ON

#define PORT_RXD_ON   0x0020

tbd

◆ PORT_SUSPEND_BAR_ON

#define PORT_SUSPEND_BAR_ON   0x8000

tbd

◆ PORT_SUSPEND_ON

#define PORT_SUSPEND_ON   0x4000

tbd

◆ PORT_TXD_ON

#define PORT_TXD_ON   0x0010

tbd