COMMON SDL API
Module: SDL (AM13E230X) APIs
Structures
Name |
|
|---|---|
struct |
Common_Sdl_StaticRegisterCheckCfgType |
struct |
Common_Sdl_StaticRegisterCheckOutType |
Types
Name |
|
|---|---|
enum |
Common_Sdl_ErrorType { COMMON_SDL_ERROR_NO_ERRORS = 0x00U, COMMON_SDL_ERROR_INVALID_ARGUMENTS = 0xA0U} |
enum |
Common_Sdl_RegisterWidthType { COMMON_SDL_REG_WIDTH_16 = 16U, COMMON_SDL_REG_WIDTH_32 = 32U} |
enum |
Common_Sdl_StatusType { SDL_STATUS_PASS = 0U, SDL_STATUS_FAIL = 1U} |
Functions
Name |
|
|---|---|
Common_Sdl_ExecuteStaticRegisterCheck(const Common_Sdl_StaticRegisterCheckCfgType * cfgPtr, Common_Sdl_StaticRegisterCheckOutType * outPtr, const uint32 staticAddressList[][3], const uint32 staticAddressLength, const uint32 channelAddressList[][3], const uint32 channelAddressLength, const uint32 channelAddressDiffBytes, uint32 numChannels) |
Types Documentation
enum Common_Sdl_ErrorType
Enumerator |
Value |
Description |
|---|---|---|
COMMON_SDL_ERROR_NO_ERRORS |
0x00U |
No errors. |
COMMON_SDL_ERROR_INVALID_ARGUMENTS |
0xA0U |
Invalid parameters. |
Error codes.
enum Common_Sdl_RegisterWidthType
Enumerator |
Value |
Description |
|---|---|---|
COMMON_SDL_REG_WIDTH_16 |
16U |
Register requires a 16-bit read |
COMMON_SDL_REG_WIDTH_32 |
32U |
Register requires a 32-bit read |
Register access width.
enum Common_Sdl_StatusType
Enumerator |
Value |
Description |
|---|---|---|
SDL_STATUS_PASS |
0U |
API execution completed successfully |
SDL_STATUS_FAIL |
1U |
API execution failed |
Execution status returned by SDL APIs.
Functions Documentation
function Common_Sdl_ExecuteStaticRegisterCheck
Common_Sdl_StatusType Common_Sdl_ExecuteStaticRegisterCheck(
const Common_Sdl_StaticRegisterCheckCfgType * cfgPtr,
Common_Sdl_StaticRegisterCheckOutType * outPtr,
const uint32 staticAddressList[][3],
const uint32 staticAddressLength,
const uint32 channelAddressList[][3],
const uint32 channelAddressLength,
const uint32 channelAddressDiffBytes,
uint32 numChannels
)
Performs the static register check for a given peripheral based on provided static and channel register information.
Pre-conditions:
The peripheral is already powered on, enabled, and configured for normal use
The test must have exclusive access to the CRC for the duration of the test
Post-conditions:
None