|
AM62Px MCU+ SDK
09.02.01
|
|
Go to the documentation of this file.
53 #include <sdl/include/sdl_types.h>
54 #include <sdl/include/soc_config.h>
55 #include <sdl/esm/sdl_ip_esm.h>
57 #if defined (IP_VERSION_POK_V1)
58 #include <sdl/pok/v1/soc/sdl_soc_pok.h>
74 typedef struct SDL_pokShiftsAndMasks
106 typedef struct SDL_pokPRGInfo
132 #define SDL_TYPE_POK ((SDL_pok_type) 1U)
134 #define SDL_TYPE_POK_SA ((SDL_pok_type) 2U)
152 #define SDL_PWRSS_DEGLITCH_5US ((SDL_pwrss_deglitch) 0U)
154 #define SDL_PWRSS_DEGLITCH_10US ((SDL_pwrss_deglitch) 1U)
156 #define SDL_PWRSS_DEGLITCH_15US ((SDL_pwrss_deglitch) 2U)
158 #define SDL_PWRSS_DEGLITCH_20US ((SDL_pwrss_deglitch) 3U)
160 #define SDL_PWRSS_DEGLITCH_GET_VALUE ((SDL_pwrss_deglitch) 4U)
162 #define SDL_PWRSS_DEGLITCH_NO_ACTION ((SDL_pwrss_deglitch) 5U)
180 #define SDL_PWRSS_PP_MODE_DISABLE ((SDL_pwrss_pp) 0U)
182 #define SDL_PWRSS_PP_MODE_ENABLE ((SDL_pwrss_pp) 1U)
184 #define SDL_PWRSS_PP_MODE_NO_ACTION ((SDL_pwrss_pp) 2U)
203 #define SDL_PWRSS_SET_HYSTERESIS_DISABLE ((SDL_pwrss_hysteresis) 0U)
205 #define SDL_PWRSS_SET_HYSTERESIS_ENABLE ((SDL_pwrss_hysteresis) 1U)
207 #define SDL_PWRSS_GET_HYSTERESIS_VALUE ((SDL_pwrss_hysteresis) 2U)
209 #define SDL_PWRSS_HYSTERESIS_NO_ACTION ((SDL_pwrss_hysteresis) 3U)
242 #define SDL_PWRSS_MAX_TRIM_VALUE ((SDL_pwrss_trim) 127U)
245 #define SDL_PWRSS_TRIM_NO_ACTION ((SDL_pwrss_trim) 128U)
248 #define SDL_PWRSS_GET_TRIM_VALUE ((SDL_pwrss_trim) 129U)
251 #define SDL_PWRSS_INVALID_TRIM_VALUE ((SDL_pwrss_trim) 255U)
269 #define SDL_PWRSS_SET_UNDER_VOLTAGE_DET_ENABLE ((SDL_pwrss_vd_mode) 0U)
271 #define SDL_PWRSS_SET_OVER_VOLTAGE_DET_ENABLE ((SDL_pwrss_vd_mode) 1U)
273 #define SDL_PWRSS_SET_PP_VOLTAGE_DET_ENABLE ((SDL_pwrss_vd_mode) 2U)
275 #define SDL_PWRSS_GET_VOLTAGE_DET_MODE ((SDL_pwrss_vd_mode) 3U)
277 #define SDL_PWRSS_VOLTAGE_DET_NO_ACTION ((SDL_pwrss_vd_mode) 4U)
293 #define SDL_POK_DETECTION_DISABLED ((SDL_POK_detection_status) 0U)
295 #define SDL_POK_DETECTION_ENABLED ((SDL_POK_detection_status) 1U)
311 #define SDL_POK_DETECTION_DISABLE ((SDL_POK_detection) 0U)
313 #define SDL_POK_DETECTION_ENABLE ((SDL_POK_detection) 1U)
315 #define SDL_POK_DETECTION_NO_ACTION ((SDL_POK_detection) 2U)
317 #define SDL_POK_GET_DETECTION_VALUE ((SDL_POK_detection) 3U)
334 #define SDL_POK_ENSEL_HWTIEOFFS ((SDL_POK_enSelSrc) 0U)
336 #define SDL_POK_ENSEL_PRG_CTRL ((SDL_POK_enSelSrc) 1U)
338 #define SDL_POK_ENSEL_NO_ACTION ((SDL_POK_enSelSrc) 2U)
340 #define SDL_POK_GET_ENSEL_VALUE ((SDL_POK_enSelSrc) 3U)
357 #define SDL_POR_TRIM_SELECTION_FROM_HHV_DEFAULT ((uint8_t) 0U)
361 #define SDL_POR_TRIM_SELECTION_FROM_CTRL_REGS ((uint8_t) 1U)
364 #define SDL_POR_TRIM_SELECTION_NO_CHANGE ((uint8_t) 2U)
367 #define SDL_POR_TRIM_SELECTION_GET_VALUE ((uint8_t) 3U)
385 #define SDL_POR_MODULE_STATUS_FUNCTIONAL_MODE ((SDL_por_module_status) 0U)
387 #define SDL_POR_MODULE_STATUS_RESET_MODE ((SDL_por_module_status) 1U)
417 typedef struct SDL_pokCfg
444 typedef struct SDL_pokVal
473 typedef struct SDL_pokPorCfg
489 typedef struct SDL_pokPorVal
uint32_t detEnShift
Definition: sdl_pok_def.h:93
uint8_t SDL_POK_detection
Definition: sdl_pok_def.h:309
SDL_pwrss_trim trim
Definition: sdl_pok_def.h:453
uint32_t pokEnPPMask
Definition: sdl_pok_def.h:109
volatile uint32_t * pokAddr
Definition: sdl_pok_def.h:76
SDL_pwrss_deglitch deglitch
Definition: sdl_pok_def.h:434
SDL_pwrss_trim trim
Definition: sdl_pok_def.h:426
SDL_por_trim_sel trim_select
Definition: sdl_pok_def.h:494
POK functionality of POR Configuration structure.
Definition: sdl_pok_def.h:474
SDL_pwrss_deglitch deglitch
Definition: sdl_pok_def.h:461
int32_t SDL_pok_getPRGInfo(SDL_mcuCtrlRegsBase_t *pBaseAddress, SDL_PRG_Inst instance, SDL_pokPRGInfo_t *pPRGInfo)
uint32_t pokEnPPMask
Definition: sdl_pok_def.h:82
SDL_pwrss_hysteresis hystCtrlOV
Definition: sdl_pok_def.h:449
uint32_t ovSelShift
Definition: sdl_pok_def.h:95
int8_t SDL_PRG_Inst
Definition: sdl_soc_pok.h:104
SDL_pwrss_hysteresis hystCtrl
Definition: sdl_pok_def.h:420
SDL_por_trim_sel trim_select
Definition: sdl_pok_def.h:478
uint32_t hystOVMask
Definition: sdl_pok_def.h:86
bool maskHHVOutputEnable
Definition: sdl_pok_def.h:492
uint32_t hystMask
Definition: sdl_pok_def.h:84
SDL_pwrss_hysteresis hystCtrlOV
Definition: sdl_pok_def.h:422
POK Configuration structure.
Definition: sdl_pok_def.h:418
uint32_t pokEnPPShift
Definition: sdl_pok_def.h:83
uint32_t pokEnSelMask
Definition: sdl_pok_def.h:96
uint32_t vdDetOVShift
Definition: sdl_pok_def.h:91
SDL_POK_enSelSrc pokEnSelSrcCtrl
Definition: sdl_pok_def.h:432
uint32_t trimShift
Definition: sdl_pok_def.h:99
uint8_t SDL_pwrss_trim
Definition: sdl_pok_def.h:235
volatile uint32_t * pokEnPPAddr
Definition: sdl_pok_def.h:80
Definition: sdl_pok_def.h:75
uint32_t hystShift
Definition: sdl_pok_def.h:85
Definition: sdl_pok_def.h:107
volatile uint32_t * pokDetAddr
Definition: sdl_pok_def.h:78
uint32_t pokEnPPShift
Definition: sdl_pok_def.h:110
uint32_t hystOVShift
Definition: sdl_pok_def.h:87
bool maskHHVOutputEnable
Definition: sdl_pok_def.h:476
uint32_t deglitchSelShift
Definition: sdl_pok_def.h:103
uint8_t SDL_pok_type
Definition: sdl_pok_def.h:129
uint32_t detEnMask
Definition: sdl_pok_def.h:92
SDL_pwrss_vd_mode voltDetMode
Definition: sdl_pok_def.h:451
SDL_POK_detection detectionCtrl
Definition: sdl_pok_def.h:430
uint32_t vdDetMask
Definition: sdl_pok_def.h:88
volatile uint32_t * deglitchSelAddr
Definition: sdl_pok_def.h:81
enum SDL_mcu_ctrl_mmr_cfg0Regs SDL_mcuCtrlRegsBase_t
Definition: sdl_pok_def.h:400
SDL_pwrss_trim trimOV
Definition: sdl_pok_def.h:428
volatile uint32_t * addr
Definition: sdl_pok_def.h:108
uint32_t trimOVShift
Definition: sdl_pok_def.h:101
uint32_t pokEnSelShift
Definition: sdl_pok_def.h:97
volatile uint32_t * pokEnSelAddr
Definition: sdl_pok_def.h:79
SDL_POK_enSelSrc pokEnSelSrcCtrl
Definition: sdl_pok_def.h:459
uint32_t vdDetOVMask
Definition: sdl_pok_def.h:90
uint32_t ovSelMask
Definition: sdl_pok_def.h:94
uint32_t trimOVMask
Definition: sdl_pok_def.h:100
volatile uint32_t * pokOVAddr
Definition: sdl_pok_def.h:77
uint32_t vdDetShift
Definition: sdl_pok_def.h:89
POK functionality of POR Value structure.
Definition: sdl_pok_def.h:490
SDL_pwrss_vd_mode voltDetMode
Definition: sdl_pok_def.h:424
SDL_pwrss_trim trimOV
Definition: sdl_pok_def.h:455
uint32_t trimMask
Definition: sdl_pok_def.h:98
uint8_t SDL_por_trim_sel
Definition: sdl_pok_def.h:354
uint8_t SDL_por_module_status
Definition: sdl_pok_def.h:382
void sdlGetErrSig(uint32_t id, SDL_POK_Inst *instance, uint32_t *esm_err_sig_ov, uint32_t *esm_err_sig_uv, bool *usePorCfgFlag)
uint8_t SDL_pwrss_vd_mode
Definition: sdl_pok_def.h:266
POK Configuration structure read value.
Definition: sdl_pok_def.h:445
SDL_pwrss_hysteresis hystCtrl
Definition: sdl_pok_def.h:447
uint8_t SDL_pwrss_hysteresis
Definition: sdl_pok_def.h:200
uint8_t SDL_pwrss_deglitch
Definition: sdl_pok_def.h:149
uint8_t SDL_POK_enSelSrc
Definition: sdl_pok_def.h:332
uint8_t SDL_POK_detection_status
Definition: sdl_pok_def.h:291
int8_t SDL_POK_Inst
Definition: sdl_soc_pok.h:75
uint32_t deglitchSelMask
Definition: sdl_pok_def.h:102
SDL_POK_detection_status detectionStatus
Definition: sdl_pok_def.h:457
uint8_t SDL_pwrss_pp
Definition: sdl_pok_def.h:177