UART SDL API

Module: SDL (AM13E230X) APIs

Structures

Name

struct

Uart_Sdl_LoopbackCfgType
Test configuration structure for the test.

Functions

Name

Common_Sdl_StatusType

Uart_Sdl_ExecuteLoopback(const Uart_Sdl_LoopbackCfgType * cfgPtr)
Executes the UART internal loopback test.

Functions Documentation

function Uart_Sdl_ExecuteLoopback

Common_Sdl_StatusType Uart_Sdl_ExecuteLoopback(
    const Uart_Sdl_LoopbackCfgType * cfgPtr
)

Executes the UART internal loopback test.

Relevant Mechanism: UART1

Pre-conditions:

  • The peripheral is already powered on, enabled, and configured for normal use

  • This test will change the original UART configuration in order to run the test

Post-conditions:

  • The user should re-initialize the peripheral for functional use.

The UART internal loopback test enables the UART internal loopback mode and transmits the predefined test data through the UART TX FIFO.

The transmitted data is received through the UART RX FIFO. The received data is stored in the receive buffer and compared with the transmitted data to verify the correctness of UART transmission and reception.