Header file containing various enumerations, structure definitions and function declarations for the Power System modules such as POK/POR IP.
Go to the source code of this file.
POK types | |
#define | SDL_TYPE_POK ((SDL_pok_type) 1U) |
#define | SDL_TYPE_POK_SA ((SDL_pok_type) 2U) |
typedef int8_t | SDL_PRG_Inst |
typedef int8_t | SDL_POK_Inst |
typedef uint8_t | SDL_pok_type |
POK/POR Deglitch types | |
This enumerator defines the possible ping-pong control values for the Power Subsystem modules | |
#define | SDL_PWRSS_DEGLITCH_5US ((SDL_pwrss_deglitch) 0U) |
#define | SDL_PWRSS_DEGLITCH_10US ((SDL_pwrss_deglitch) 1U) |
#define | SDL_PWRSS_DEGLITCH_15US ((SDL_pwrss_deglitch) 2U) |
#define | SDL_PWRSS_DEGLITCH_20US ((SDL_pwrss_deglitch) 3U) |
#define | SDL_PWRSS_DEGLITCH_GET_VALUE ((SDL_pwrss_deglitch) 4U) |
#define | SDL_PWRSS_DEGLITCH_NO_ACTION ((SDL_pwrss_deglitch) 5U) |
typedef uint8_t | SDL_pwrss_deglitch |
POK/POR Ping/Pong types | |
This enumerator defines the possible deglitch control values for the Power Subsystem modules | |
#define | SDL_PWRSS_PP_MODE_DISABLE ((SDL_pwrss_pp) 0U) |
#define | SDL_PWRSS_PP_MODE_ENABLE ((SDL_pwrss_pp) 1U) |
#define | SDL_PWRSS_PP_MODE_NO_ACTION ((SDL_pwrss_pp) 2U) |
typedef uint8_t | SDL_pwrss_pp |
POK/POR hysteresIs types | |
This enumerator defines the possible hysteresis control values for the Power Subsystem modules | |
#define | SDL_PWRSS_SET_HYSTERESIS_DISABLE ((SDL_pwrss_hysteresis) 0U) |
#define | SDL_PWRSS_SET_HYSTERESIS_ENABLE ((SDL_pwrss_hysteresis) 1U) |
#define | SDL_PWRSS_GET_HYSTERESIS_VALUE ((SDL_pwrss_hysteresis) 2U) |
#define | SDL_PWRSS_HYSTERESIS_NO_ACTION ((SDL_pwrss_hysteresis) 3U) |
typedef uint8_t | SDL_pwrss_hysteresis |
POK/POR TRIM values | |
This enumerator defines the possible trim value for POK/POR modules Any value between 0 through 127 is valid TRIM value * * POK | Under Voltage | Over Voltage | * | Detection | Detection | Step Resolution * ----------- | --------------- | ---------------- | ---------------- * CORE_POK | 475mV - 1.35V | 725mV - 1.65V | 0.0125V * POK1.8 | 1.432V - 2.168V | 1.432V - 2.168V | 0.02V * POK3.3 | 2.625V - 3.975V | 2.625V - 3.975V | 0.0375V * * | |
#define | SDL_PWRSS_MAX_TRIM_VALUE ((SDL_pwrss_trim) 127U) |
#define | SDL_PWRSS_TRIM_NO_ACTION ((SDL_pwrss_trim) 128U) |
#define | SDL_PWRSS_GET_TRIM_VALUE ((SDL_pwrss_trim) 129U) |
#define | SDL_PWRSS_INVALID_TRIM_VALUE ((SDL_pwrss_trim) 255U) |
typedef uint8_t | SDL_pwrss_trim |
POK/POR Voltage detection modes | |
This enumerator defines the possible values of Voltage Detection modes | |
#define | SDL_PWRSS_SET_UNDER_VOLTAGE_DET_ENABLE ((SDL_pwrss_vd_mode) 0U) |
#define | SDL_PWRSS_SET_OVER_VOLTAGE_DET_ENABLE ((SDL_pwrss_vd_mode) 1U) |
#define | SDL_PWRSS_SET_PP_VOLTAGE_DET_ENABLE ((SDL_pwrss_vd_mode) 2U) |
#define | SDL_PWRSS_GET_VOLTAGE_DET_MODE ((SDL_pwrss_vd_mode) 3U) |
#define | SDL_PWRSS_VOLTAGE_DET_NO_ACTION ((SDL_pwrss_vd_mode) 4U) |
typedef uint8_t | SDL_pwrss_vd_mode |
POK detection status | |
#define | SDL_POK_DETECTION_DISABLED ((SDL_POK_detection_status) 0U) |
#define | SDL_POK_DETECTION_ENABLED ((SDL_POK_detection_status) 1U) |
typedef uint8_t | SDL_POK_detection_status |
POK detection values | |
#define | SDL_POK_DETECTION_DISABLE ((SDL_POK_detection) 0U) |
#define | SDL_POK_DETECTION_ENABLE ((SDL_POK_detection) 1U) |
#define | SDL_POK_DETECTION_NO_ACTION ((SDL_POK_detection) 2U) |
#define | SDL_POK_GET_DETECTION_VALUE ((SDL_POK_detection) 3U) |
typedef uint8_t | SDL_POK_detection |
POK Enable Selection source Values | |
#define | SDL_POK_ENSEL_HWTIEOFFS ((SDL_POK_enSelSrc) 0U) |
#define | SDL_POK_ENSEL_PRG_CTRL ((SDL_POK_enSelSrc) 1U) |
#define | SDL_POK_ENSEL_NO_ACTION ((SDL_POK_enSelSrc) 2U) |
#define | SDL_POK_GET_ENSEL_VALUE ((SDL_POK_enSelSrc) 3U) |
typedef uint8_t | SDL_POK_enSelSrc |
POK trim selection values from HHV default or CTRL registers | |
#define | SDL_POR_TRIM_SELECTION_FROM_HHV_DEFAULT ((uint8_t) 0U) |
#define | SDL_POR_TRIM_SELECTION_FROM_CTRL_REGS ((uint8_t) 1U) |
#define | SDL_POR_TRIM_SELECTION_NO_CHANGE ((uint8_t) 2U) |
#define | SDL_POR_TRIM_SELECTION_GET_VALUE ((uint8_t) 3U) |
typedef uint8_t | SDL_por_trim_sel |
POR Module state values | |
#define | SDL_POR_MODULE_STATUS_FUNCTIONAL_MODE ((SDL_por_module_status) 0U) |
#define | SDL_POR_MODULE_STATUS_RESET_MODE ((SDL_por_module_status) 1U) |
typedef uint8_t | SDL_por_module_status |
Data Structures | |
struct | SDL_pokShiftsAndMasks_t |
struct | SDL_pokPRGInfo_t |
struct | SDL_POK_config |
POK Configuration structure. More... | |
struct | SDL_pokVal_t |
POK Configuration structure read value. More... | |
struct | SDL_pokPorCfg_t |
POK functionality of POR Configuration structure. More... | |
struct | SDL_pokPorVal_t |
POK functionality of POR Value structure. More... | |
Typedefs | |
POK POK ID values | |
typedef SDL_mcu_ctrl_mmr_cfg0Regs | SDL_mcuCtrlRegsBase_t |
Functions | |
int32_t | SDL_pok_getPRGInfo (SDL_mcuCtrlRegsBase_t *pBaseAddress, SDL_PRG_Inst instance, SDL_pokPRGInfo_t *pPRGInfo) |
void | sdlGetErrSig (uint32_t id, SDL_POK_Inst *instance, uint32_t *esm_err_sig_ov, uint32_t *esm_err_sig_uv, bool *usePorCfgFlag) |
int32_t SDL_pok_getPRGInfo | ( | SDL_mcuCtrlRegsBase_t * | pBaseAddress, |
SDL_PRG_Inst | instance, | ||
SDL_pokPRGInfo_t * | pPRGInfo | ||
) |
void sdlGetErrSig | ( | uint32_t | id, |
SDL_POK_Inst * | instance, | ||
uint32_t * | esm_err_sig_ov, | ||
uint32_t * | esm_err_sig_uv, | ||
bool * | usePorCfgFlag | ||
) |