Altera Embedded Peripherals IP User Manual
Page 101
Advertising

Figure 9-7:
typedef
enum stopbit {ONE =0,TWO } StopBit;
typedef
enum paritybit { ODD =0, EVEN, NOPARITY } ParityBit;
typedef
enum databit { CS_5 =0, CS_6, CS_7, CS_8} DataBit;
typedef
enum baud
{
BR9600
= 9600,
BR19200 = 19200,
BR38400 = 38400,
BR57600 = 57600,
BR115200 = 115200
}
Baud;
typedef
enum rx_fifo_level_e { RXONECHAR = 0,
RXQUARTER,
RXHALF, RXFULL
}
Rx_FifoLvl;
typedef
enum tx_fifo_level_e { TXEMPTY = 0,
TXTWOCHAR,
TXQUARTER, TXHALF } Tx_FifoLvl;
typedef struct uart_config_s
{
StopBit
stop_bit;
ParityBit parity_bit;
DataBit data_bit;
Baud baudrate;
alt_u32
fifo_mode;
Rx_FifoLvl rx_fifo_level;
Tx_FifoLvl tx_fifo_level;
alt_u32
hwfc;
}UartConfig;
UG-01085
2014.24.07
UART Device Structure
9-15
16550 UART
Altera Corporation
Advertising