beautypg.com

16550 uart api, Public apis, 16550 uart api -12 – Altera Embedded Peripherals IP User Manual

Page 98

background image

Figure 9-6: Qsys setting to configure FIFO depth

16550 UART API

Public APIs

Table 9-13: altera_16550_uart_open

Prototype:

altera_16550_uart_dev * altera_16550_uart_

open(const char* name);

Include:

Parameters:

name—the 16550 UART device name to open.

Returns:

Pointer to 16550 UART or NULL if fail to open

Description

Open 16550 UART device.

Table 9-14: altera_16550_uart_close

Prototype:

void alt_16550_uart_close (const char* name)

Include:

Parameters:

name—the 16550 UART device name to close.

Returns:

None

Description:

Closes 16550 UART device.

Table 9-15: alt_16550_uart_read

Prototype:

alt_u32 altera_16550_uart_read(altera_16550_uart_

dev* dev, const char * ptr, alt_u16 len, alt_u16 flags);

Include:

9-12

16550 UART API

UG-01085

2014.24.07

Altera Corporation

16550 UART

Send Feedback