UART
Returns:
None.
22.2.1.10 ROM_UARTCharPutNonBlocking
Sends a character to the specified port.
Prototype:
bool
ROM_UARTCharPutNonBlocking(uint32_t ui32Base,
uint8_t ui8Data)
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_UARTCharPutNonBlocking is a function pointer located at ROM_UARTTABLE[15].
Parameters:
ui32Base is the base address of the UART port.
ui8Data is the character to be transmitted.
Description:
Writes the character ui8Data to the transmit FIFO for the specified port. This function does not
block, so if there is no space available, then a false is returned, and the application must retry
the function later.
Returns:
Returns true if the character was successfully placed in the transmit FIFO or false if there was
no space available in the transmit FIFO.
22.2.1.11 ROM_UARTCharsAvail
Determines if there are any characters in the receive FIFO.
Prototype:
bool
ROM_UARTCharsAvail(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_UARTCharsAvail is a function pointer located at ROM_UARTTABLE[11].
Parameters:
ui32Base is the base address of the UART port.
Description:
This function returns a flag indicating whether or not there is data available in the receive FIFO.
Returns:
Returns true if there is data in the receive FIFO or false if there is no data in the receive FIFO.
April 8, 2013 255