UART_SETTINGS Structure
This structure defines settings for UART access on neoVI Fire devices.
typedef struct _UART_SETTINGS{
unsigned short Baudrate;
unsigned short spbrg;
unsigned short brgh;
unsigned short parity;
unsigned short stop_bits;
unsigned char flow_control; // 0- off, 1 - Simple CTS RTS,
unsigned char reserved_1;
unsigned int bOptions; //AND to combind these values invert_tx = 1 invert_rx = 2 half_duplex = 4
} UART_SETTINGS;
Remarks
Structure Elements
Item
Description
icscm_uint16 Baudrate
Holds the baud rate for the UART Connection. An example value could be 10417 or 9600
icscm_uint16 spbrg
icscm_uint16 brgh
icscm_uint16 parity
Sets the Parity type. Valid values are below
None
0
Even
1
Odd
2
icscm_uint16 stop_bits
Sets the number of stop bits to use. Valid values are below.
One Stop Bit
1
Two Stop Bits
2
icscm_uint8 flow_control
Set to 0 for no flow control and 1 for simple CTS RTS
icscm_uint8 reserved
icscm_uint32 bOptions
Bitfield containing UART Options
Invert Tx
1
Invert Rx
2
Half Duplex
4
Last updated