DRAFT
DRAFT DRAFT DR
DRAFT DRAFT DRAFT
D
RAF
DRAFT DRAFT DRA
FT D
RAFT DR
AFT D
DRA
FT DRAFT DRAFT
D
RAFT
DRAFT
D
RAFT
DRA
UM10601
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
Preliminary user manual
Rev. 1.0 — 7 November 2012
287 of 313
NXP Semiconductors
UM10601
Chapter 24: LPC800 USART API ROM driver routines
24.4.6 UART get line
24.4.7 UART put line
24.4.8 UART interrupt service routine
24.4.9 Error codes
Table 277. 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 278. 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 279. 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 280. 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