UART
Description:
Gets a character from the receive FIFO for the specified port. If there are no characters avail-
able, this function waits until a character is received before returning.
Returns:
Returns the character read from the specified port, cast as a int32_t.
22.2.1.8 ROM_UARTCharGetNonBlocking
Receives a character from the specified port.
Prototype:
int32_t
ROM_UARTCharGetNonBlocking(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_UARTCharGetNonBlocking is a function pointer located at ROM_UARTTABLE[13].
Parameters:
ui32Base is the base address of the UART port.
Description:
Gets a character from the receive FIFO for the specified port.
Returns:
Returns the character read from the specified port, cast as a int32_t. A -1 is returned if there
are no characters present in the receive FIFO. The ROM_UARTCharsAvail() function should
be called before attempting to call this function.
22.2.1.9 ROM_UARTCharPut
Waits to send a character from the specified port.
Prototype:
void
ROM_UARTCharPut(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_UARTCharPut is a function pointer located at ROM_UARTTABLE[0].
Parameters:
ui32Base is the base address of the UART port.
ui8Data is the character to be transmitted.
Description:
Sends the character ui8Data to the transmit FIFO for the specified port. If there is no space
available in the transmit FIFO, this function waits until there is space available before returning.
254 April 8, 2013