SDL API Guide for J7200
POK Functions

Introduction

Functions

int32_t SDL_pokSetControl (SDL_wkupCtrlRegsBase_t *pBaseAddress, const SDL_POK_config *pPokCfg, SDL_POK_Inst instance)
 write the POK configuration for the specified POK control register More...
 
int32_t SDL_pokGetControl (SDL_wkupCtrlRegsBase_t *pBaseAddress, const SDL_POK_config *pPokCfg, SDL_pokVal_t *pPokVal, SDL_POK_Inst instance)
 Read the POK configuration for the specified POK control register. More...
 
int32_t SDL_porSetControl (SDL_wkupCtrlRegsBase_t *pBaseAddress, const SDL_pokPorCfg_t *pPorCfg)
 write the POR configuration for the specified POK control register More...
 

Function Documentation

◆ SDL_pokSetControl()

int32_t SDL_pokSetControl ( SDL_wkupCtrlRegsBase_t pBaseAddress,
const SDL_POK_config pPokCfg,
SDL_POK_Inst  instance 
)

write the POK configuration for the specified POK control register

This API supports the enable/disable of the POK hysterisis and Voltage Detection for a given POK control register

Parameters
pBaseAddress[IN] Pointer to the Wakeup Control Register
pPokCfg[IN] Pointer to the POK control register to be written
instance[IN] POK ID of which POK to be updated
Returns
The SDL error code for the API. Success : SDL_PASS Fail : SDL_EFAIL Invalid Args : SDL_EBADARGS

◆ SDL_pokGetControl()

int32_t SDL_pokGetControl ( SDL_wkupCtrlRegsBase_t pBaseAddress,
const SDL_POK_config pPokCfg,
SDL_pokVal_t pPokVal,
SDL_POK_Inst  instance 
)

Read the POK configuration for the specified POK control register.

This API supports the enable/disable of the POK hysterisis and Voltage Detection for a given POK control register

Parameters
pBaseAddress[IN] Pointer to the Wakeup Control Register
pPokCfg[IN] Pointer to the POK control register values to be read
pPokVal[OUT] Pointer to the POK control register to be read
instance[IN] POK ID of which POK to be updated
Returns
The SDL error code for the API. Success : SDL_PASS Fail : SDL_EFAIL Invalid Args : SDL_EBADARGS

◆ SDL_porSetControl()

int32_t SDL_porSetControl ( SDL_wkupCtrlRegsBase_t pBaseAddress,
const SDL_pokPorCfg_t pPorCfg 
)

write the POR configuration for the specified POK control register

This API supports the enable/disable of the POK hysterisis and Voltage Detection for a given POK control register

Parameters
pBaseAddress[IN] Pointer to the Wakeup Control Register
pPorCfg[IN] Pointer to the POR configuration
Returns
The SDL error code for the API. Success : SDL_PASS Fail : SDL_EFAIL Invalid Args : SDL_EBADARGS