UART
22.2.1.30 ROM_UARTParityModeGet
Gets the type of parity currently being used.
Prototype:
uint32_t
ROM_UARTParityModeGet(uint32_t ui32Base)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_UARTTABLE is an array of pointers located at ROM_APITABLE[1].
ROM_UARTParityModeGet is a function pointer located at ROM_UARTTABLE[2].
Parameters:
ui32Base is the base address of the UART port.
Description:
This function gets the type of parity used for transmitting data and expected when receiving
data.
Returns:
Returns the current parity settings, specified as one of UART_CONFIG_PAR_NONE,
UART_CONFIG_PAR_EVEN, UART_CONFIG_PAR_ODD, UART_CONFIG_PAR_ONE, or
UART_CONFIG_PAR_ZERO.
22.2.1.31 ROM_UARTParityModeSet
Sets the type of parity.
Prototype:
void
ROM_UARTParityModeSet(uint32_t ui32Base,
uint32_t ui32Parity)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_UARTTABLE is an array of pointers located at ROM_APITABLE[1].
ROM_UARTParityModeSet is a function pointer located at ROM_UARTTABLE[1].
Parameters:
ui32Base is the base address of the UART port.
ui32Parity specifies the type of parity to use.
Description:
Sets the type of parity to use for transmitting and expect when receiving. The ui32Parity
parameter must be one of UART_CONFIG_PAR_NONE, UART_CONFIG_PAR_EVEN,
UART_CONFIG_PAR_ODD, UART_CONFIG_PAR_ONE, or UART_CONFIG_PAR_ZERO.
The last two allow direct control of the parity bit; it is always either one or zero based on
the mode.
Returns:
None.
266 April 8, 2013