SPI SDL API

Module: SDL (AM13E230X) APIs

Structures

Name

struct

Spi_Sdl_LoopbackCfgType
Test configuration structure for the test.

Functions

Name

Common_Sdl_StatusType

Spi_Sdl_ExecuteLoopback(const Spi_Sdl_LoopbackCfgType * cfgPtr)
Executes the SPI internal loopback test.

Functions Documentation

function Spi_Sdl_ExecuteLoopback

Common_Sdl_StatusType Spi_Sdl_ExecuteLoopback(
    const Spi_Sdl_LoopbackCfgType * cfgPtr
)

Executes the SPI internal loopback test.

Relevant Mechanism: SPI1

Pre-conditions:

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

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

Post-conditions:

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

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

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