Bit, Parity, and Stop Bit Definitions


UART Bits

These define the number of bits in each data word:

Option
Value
Meaning
PSP_UART_BITS_5 0U 5 data bits per word.
PSP_UART_BITS_6 1U 6 data bits per word.
PSP_UART_BITS_7 2U 7 data bits per word.
PSP_UART_BITS_8 3U 8 data bits per word.

Parity

The definitions are as follows:

Definition
Value
Description
LCT_PARITY_NONE 0U No parity.
LCT_PARITY_ODD 1U Odd parity.
LCT_PARITY_EVEN 2U Even parity.
LCT_PARITY_MARK 3U Mark parity.
LCT_PARITY_SPACE 4U Space parity.

Stop Bits

The definitions are as follows:

Option
Value
Meaning
LCT_STOP_1 0U One stop bit.
LCT_STOP_1_5 1U One and a half stop bits.
LCT_STOP_2 2U Two stop bits.