
UM10800
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2016. All rights reserved.
User manual
Rev. 1.2 — 5 October 2016
401 of 487
NXP Semiconductors
UM10800
Chapter 27: LPC82x ROM API USART driver routines
27.4.6 UART get line
27.4.7 UART put line
27.4.8 UART interrupt service routine
27.4.9 Error codes
Table 352. uart_get_line
Routine
uart_get_line
Prototype
uint32_t uart_get_line(UART_HANDLE_T* handle, UART_PARAM_T param);
Input parameter
handle: The handle to the uart instance.
param: Refer to UART_PARAM_T definition.
Return
Error code:
ERR_UART_RECEIVE_ON - UART receive is ongoing.
Description
Receive multiple bytes from UART.
Table 353. uart_put_line
Routine
uart_put_line
Prototype
uint32_t uart_put_line(UART_HANDLE_T* handle, UART_PARAM_T param);
Input parameter
handle: The handle to the uart instance.
param: Refer to UART_PARAM_T definition.
Return
Error code:
ERR_UART_SEND_ON - UART sending is ongoing.
Description
Send string (end with \0) or raw data through UART.
Table 354. uart_isr
Routine
uart_isr
Prototype
void uart_isr(UART_HANDLE_T* handle);
Input parameter
handle: The handle to the uart instance.
Return
None.
Description
UART interrupt service routine. To use this routine, the corresponding USART
interrupt must be enabled. This function is invoked by the user ISR.
Table 355. Error codes
Return code
Error Code
Description
0x0008 0001
ERR_UART_RXD_BUSY =
ERR_UA1,
UART receive is busy
0x0008 0002
ERR_UART_TXD_BUSY
UART transmit is busy
0x0008 0003
ERR_UART_OVERRUN_FRA
ME_PARITY_NOISE
Overrun error, Frame error,
parity error, RxNoise error
0x0008 0004
ERR_UART_UNDERRUN
Underrun error
0x0008 0005
ERR_UART_PARAM
Parameter error