LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
UART_CONFIG_T Struct Reference

Detailed Description

UART ROM driver configutaion structure

Definition at line 115 of file uartd_8xx.h.

#include "uartd_8xx.h"

Data Fields

uint32_t sys_clk_in_hz
 
uint32_t baudrate_in_hz
 
uint8_t config
 
uint8_t sync_mod
 
uint16_t error_en
 

Field Documentation

uint32_t baudrate_in_hz

Baud rate in Hz

Definition at line 117 of file uartd_8xx.h.

uint8_t config

Configuration value bit1:0 Data Length: 00: 7 bits length, 01: 8 bits length, others: reserved bit3:2 Parity: 00: No Parity, 01: reserved, 10: Even, 11: Odd bit4: Stop Bit(s): 0: 1 Stop bit, 1: 2 Stop bits

Definition at line 118 of file uartd_8xx.h.

uint16_t error_en

Errors to be enabled bit0: Overrun Errors Enabled bit1: Underrun Errors Enabled bit2: FrameErr Errors Enabled bit3: ParityErr Errors Enabled bit4: RxNoise Errors Enabled

Definition at line 130 of file uartd_8xx.h.

uint8_t sync_mod

Sync mode settings bit0: Mode: 0: Asynchronous mode, 1: Synchronous mode bit1: 0: Un_RXD is sampled on the falling edge of SCLK 1: Un_RXD is sampled on the rising edge of SCLK bit2: 0: Start and stop bits are transmitted as in asynchronous mode) 1: Start and stop bits are not transmitted) bit3: 0: The UART is a slave in Synchronous mode 1: The UART is a master in Synchronous mode

Definition at line 122 of file uartd_8xx.h.

uint32_t sys_clk_in_hz

System clock in Hz

Definition at line 116 of file uartd_8xx.h.


The documentation for this struct was generated from the following file: