EasyManua.ls Logo

Microsemi SmartFusion2 - Figure 201 MMUART Driver User Guide; Table 466 MSS MMUART Apis

Microsemi SmartFusion2
829 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MMUART Peripherals
UG0331 User Guide Revision 15.0 488
4. Generate the component by clicking Generate Component or by selecting SmartDesign >
Generate Component. For more information on generation of the component, refer to the Libero
SoC User Guide. The firmware driver folder and SoftConsole workspace are included into the
project. Click the highlighted Configure firmware as shown in the following figure to find the
MMUART driver information.
Figure 201 MMUART Driver User Guide
5. Click Generate Bitstream under Program Design to complete the .fdb file generation.
6. Double-click Export Firmware under Handoff Design for Firmware Development in the Libero
SoC design flow window to generate the SoftConsole Firmware Project. The SoftConsole folder
contains the mss_uart firmware driver. The firmware driver, mss_uart (mss_uart.c and
mss_uart.h), which provides a set of functions for controlling the MSS MMUARTs can also be
downloaded from the Microsemi Firmware Catalog. The following table lists main APIs for MMUART.
For complete information on the APIs, refer to the SmartFusion2 MSS UART Driver User Guide as
shown in the preceding figure.
Table 466 • MSS MMUART APIs
Category API Description
Initialization and configuration
functions
MSS_UART_init Initializes and configures the MMUART.
MSS_UART_lin_init Initializes and configures the MMUART for LIN mode
of operation.
MSS_UART_irda_init Initializes and configures the MMUART for IrDA mode
of operation.
MSS_UART_smartcard_init Initializes and configures the MMUART for ISO 7816
(smart-card) mode of operation.
Polled transmit and receive
functions
MSS_UART_polled_tx Transmits the data.
MSS_UART_polled_tx_string Transmits a NULL ('\0') terminated string.
MSS_UART_fill_tx_fifo Fills the UART's hardware transmitter FIFO.
Interrupt driven transmit and
receive functions
MSS_UART_set_rx_handler Registers a receive handler function.
MSS_UART_set_tx_handler Registers a transmit handler function.
MSS_UART_irq_tx Initiates an interrupt driven transmission.
MSS_UART_get_rx Reads the content of the UART receiver's FIFO and
stores it in the receive buffer

Table of Contents

Other manuals for Microsemi SmartFusion2

Related product manuals