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
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
Summary of Contents for Tiva TM4C123GH6PM
Page 26: ...Boot Loader 26 April 8 2013...
Page 68: ...Controller Area Network CAN 68 April 8 2013...
Page 122: ...Hibernation Module 122 April 8 2013...
Page 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Page 152: ...Memory Protection Unit MPU 152 April 8 2013...
Page 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Page 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Page 222: ...System Control 222 April 8 2013...
Page 270: ...UART 270 April 8 2013...
Page 296: ...uDMA Controller 296 April 8 2013...
Page 351: ...April 8 2013 351...