GPIO SDL API

Module: SDL (AM13E230X) APIs

Structures

Name

struct

Gpio_Sdl_LoopbackCfgType
Test configuration structure for the test.

Functions

Name

Common_Sdl_StatusType

Gpio_Sdl_ExecuteLoopback(const Gpio_Sdl_LoopbackCfgType * cfgPtr)
Runs GPIO loopback test by driving and reading a given GPIO pin.

Functions Documentation

function Gpio_Sdl_ExecuteLoopback

Common_Sdl_StatusType Gpio_Sdl_ExecuteLoopback(
    const Gpio_Sdl_LoopbackCfgType * cfgPtr
)

Runs GPIO loopback test by driving and reading a given GPIO pin.

Relevant Mechanism: GPIO1

Pre-conditions:

  • The GPIO peripheral shall be powered and enabled before calling this API

  • The user shall ensure that that driving selected GPIO pin on the board will not cause any adverse side effects

  • 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 GPIO Loopback takes a given GPIO with an associated IOMUX and then drives the pin high and low, taking readings via the same GPIO instance in a loopback configuration.