UART
22.2.1.32 ROM_UARTRxErrorClear
Clears all reported receiver errors.
Prototype:
void
ROM_UARTRxErrorClear(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_UARTRxErrorClear is a function pointer located at ROM_UARTTABLE[30].
Parameters:
ui32Base is the base address of the UART port.
Description:
This function is used to clear all receiver error conditions reported via
ROM_UARTRxErrorGet(). If using the overrun, framing error, parity error or break inter-
rupts, this function must be called after clearing the interrupt to ensure that later errors of the
same type trigger another interrupt.
Returns:
None.
22.2.1.33 ROM_UARTRxErrorGet
Gets current receiver errors.
Prototype:
uint32_t
ROM_UARTRxErrorGet(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_UARTRxErrorGet is a function pointer located at ROM_UARTTABLE[29].
Parameters:
ui32Base is the base address of the UART port.
Description:
This function returns the current state of each of the 4 receiver error sources. The returned er-
rors are equivalent to the four error bits returned via the previous call to ROM_UARTCharGet()
or ROM_UARTCharGetNonBlocking() with the exception that the overrun error is set immedi-
ately the overrun occurs rather than when a character is next read.
Returns:
Returns a logical OR combination of the receiver error flags, UART_RXERROR_FRAMING,
UART_RXERROR_PARITY, UART_RXERROR_BREAK and UART_RXERROR_OVERRUN.
April 8, 2013 267