These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Embed: (wiki syntax)

« Back to documentation index

RS485_Master

RS485_Master

Functions

void UART_IntReceive (void)
 UART receive function (ring buffer used)
void UART_IntErr (uint8_t bLSErrType)
 UART Line Status Error.
uint32_t UARTReceive (LPC_UART_TypeDef *UARTPort, uint8_t *rxbuf, uint8_t buflen)
 UART read function for interrupt mode (using ring buffers)
void print_menu (void)
 Print Welcome menu.
int c_entry (void)
 c_entry: Main UART-RS485 program body

Function Documentation

int c_entry ( void   )

c_entry: Main UART-RS485 program body

Parameters:
[in]None
Returns:
int

Definition at line 231 of file rs485_master.c.

void print_menu ( void   )

Print Welcome menu.

Print menu.

Parameters:
[in]none
Returns:
None

Definition at line 114 of file adc_burst_test.c.

void UART_IntErr ( uint8_t  bLSErrType )

UART Line Status Error.

Parameters:
[in]bLSErrTypeUART Line Status Error Type
Returns:
None
void UART_IntReceive ( void   )

UART receive function (ring buffer used)

Parameters:
[in]None
Returns:
None
uint32_t UARTReceive ( LPC_UART_TypeDef *  UARTPort,
uint8_t *  rxbuf,
uint8_t  buflen 
)

UART read function for interrupt mode (using ring buffers)

Parameters:
[in]UARTPortSelected UART peripheral used to send data, should be UART0
[out]rxbufPointer to Received buffer
[in]buflenLength of Received buffer
Returns:
Number of bytes actually read from the ring buffer