|
AM263Px MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
83 #define ESM_NUMBER_OF_GROUP_REGS (32u)
96 #define ESM_OPERATION_MODE_NORMAL 0x0U
98 #define ESM_OPERATION_MODE_ERROR_FORCE 0xAu
113 #define SDL_ESM_LVL_PINOUT 0x0u
115 #define SDL_ESM_PWM_PINOUT 0xFu
128 #define ESM_INTR_TYPE_CONFIG_ERROR (0x0u)
130 #define ESM_INTR_TYPE_LOW_PRIO_ERROR (0x1u)
132 #define ESM_INTR_TYPE_HIGH_PRIO_ERROR (0x2u)
144 #define ESM_INTR_PRIORITY_LEVEL_LOW (0x0u)
146 #define ESM_INTR_PRIORITY_LEVEL_HIGH (0x1u)
158 typedef struct esmRevisionId
177 typedef struct esmInfo
194 typedef struct esmGroupIntrStatus
230 volatile uint32_t
EN;
415 uint32_t *pInfluence);
volatile uint32_t PWMH_PIN_CNTR_PRE
Definition: esm.h:235
int32_t SDL_ESM_setInfluenceOnErrPin(uint32_t baseAddr, uint32_t intrSrc, bool enable)
This API is used to set the influence of interrupt on nERROR pin.
int32_t SDL_ESM_setIntrPriorityLvl(uint32_t baseAddr, uint32_t intrSrc, esmIntrPriorityLvl_t intrPriorityLvl)
This API is used to set interrupt level.
int32_t SDL_ESM_getGroupIntrStatus(uint32_t baseAddr, esmIntrPriorityLvl_t intrPrioType, esmGroupIntrStatus_t *pIntrstatus)
This API is used to get the interrupt/error status for a group. This will also return highest pending...
int32_t SDL_ESM_setIntrStatusRAW(uint32_t baseAddr, uint32_t intrSrc)
This API is used to set the interrupt RAW status.
int32_t SDL_ESM_getInfo(uint32_t baseAddr, esmInfo_t *pInfo)
This API is used read the ESM information register.
Structure to access the status of interrupts belonging to a High or Low priority interrupt.
Definition: esm.h:195
int32_t SDL_ESM_getErrorOutMode(uint32_t baseAddr, esmOperationMode_t *pMode)
This API is used to read Error Out mode (LVL or PWM) of ESM module.
#define ESM_NUMBER_OF_GROUP_REGS
ESM Operation Mode type.
Definition: esm.h:83
int32_t SDL_ESM_PWML_setErrPinLowTimePreload(uint32_t baseAddr, uint32_t lowTime)
This API is used to configure the low time counter pre-load value for PWM error.
uint32_t minor
Definition: esm.h:170
volatile uint32_t INTR_EN_CLR
Definition: esm.h:217
uint32_t highestPendLvlIntNum
Definition: esm.h:200
int32_t SDL_ESM_getErrPinLowTimePreload(uint32_t baseAddr, uint32_t *pLowTime)
This API is used to read the low time counter pre-load value.
int32_t SDL_ESM_getInfluenceOnErrPin(uint32_t baseAddr, uint32_t intrSrc, uint32_t *pInfluence)
This API is used to get the influence of interrupt on nERROR pin.
int32_t SDL_ESM_setCfgIntrStatusRAW(uint32_t baseAddr, uint32_t group)
This API is used to set the configuration interrupt RAW status for a group.
int32_t SDL_ESM_PWML_getCurrErrPinLowTimeCnt(uint32_t baseAddr, uint32_t *pLowPWMLTime)
This API is used to get the current value of low time counter for PWM error.
uint32_t custom
Definition: esm.h:168
ESM static registers list.
Definition: esm.h:226
int32_t SDL_ESM_setCriticalIntrDelay(uint32_t baseAddr, uint32_t delay)
This API is used to set delay for critical interrupt.
int32_t SDL_ESM_enableGlobalIntr(uint32_t baseAddr)
This API is used to enable Global control of interrupt.
int32_t SDL_ESM_PWMH_setErrPinHighTimePreload(uint32_t baseAddr, uint32_t highTime)
This API is used to configure the high time counter pre-load value for PWM error.
uint32_t func
Definition: esm.h:162
volatile uint32_t PIN_EN_SET
Definition: esm.h:219
int32_t SDL_ESM_disableCfgIntr(uint32_t baseAddr, uint32_t intrNum)
This API is used to disable the configuration interrupt.
int32_t SDL_ESM_getIntrStatus(uint32_t baseAddr, uint32_t intrSrc, uint32_t *pStaus)
This API is used to get the interrupt status.
uint32_t esmOperationMode_t
ESM Operation Mode type.
Definition: esm.h:94
Structure for accessing information register of ESM module.
Definition: esm.h:178
Structure for accessing Revision ID of ESM module.
Definition: esm.h:159
int32_t SDL_ESM_getPinMode(uint32_t baseAddr, esmOperationMode_t *pMode)
This API is used to read operation mode of ESM module.
uint32_t rtlRev
Definition: esm.h:164
volatile uint32_t PIN_EN_CLR
Definition: esm.h:220
int32_t SDL_ESM_getCfgIntrStatus(uint32_t baseAddr, uint32_t group, uint32_t *pStaus)
This API is used to get the configuration interrupt status for a group.
int32_t SDL_ESM_disableCriticalIntr(uint32_t baseAddr, uint32_t intrNum)
This API is used to disable critical interrupt.
volatile uint32_t INFO
Definition: esm.h:229
int32_t SDL_ESM_getGlobalIntrEnabledStatus(uint32_t baseAddr, uint32_t *pStatus)
This API is used read the ESM information register.
volatile uint32_t PIN_CNTR_PRE
Definition: esm.h:234
uint32_t lastRstType
Definition: esm.h:179
uint32_t esmIntrType_t
Definition: esm.h:126
int32_t SDL_ESM_PWMH_getErrPinHighTimePreload(uint32_t baseAddr, uint32_t *pPinPWMHCntrPre)
This API is used to read the High time counter pre-load value for PWM error.
int32_t SDL_ESM_getErrPinStatus(uint32_t baseAddr, uint32_t *pStatus)
This API is used to get the current status of nERROR pin.
volatile uint32_t PIN_CTRL
Definition: esm.h:233
int32_t SDL_ESM_getIntrPriorityLvl(uint32_t baseAddr, uint32_t intrSrc, esmIntrPriorityLvl_t *pIntrPriorityLvl)
This API is used to get interrupt level.
int32_t SDL_ESM_reset(uint32_t baseAddr)
This API is used to reset ESM module. Reset is used to reset all enables and raw status bits.
volatile uint32_t ERR_EN_SET
Definition: esm.h:231
int32_t SDL_ESM_isEnableIntr(uint32_t baseAddr, uint32_t intrSrc, uint32_t *pEnStatus)
This API is used check if interrupt is enabled/disabled.
int32_t SDL_ESM_disableGlobalIntr(uint32_t baseAddr)
This API is used to disable Global control of interrupt.
uint32_t scheme
Definition: esm.h:160
int32_t SDL_ESM_setErrPinLowTimePreload(uint32_t baseAddr, uint32_t lowTime)
This API is used to configure the low time counter pre-load value.
volatile uint32_t EN
Definition: esm.h:230
uint32_t plsGrpNum
Definition: esm.h:184
int32_t SDL_ESM_enableCriticalIntr(uint32_t baseAddr, uint32_t intrNum)
This API is used to enable critical interrupt.
uint32_t esmErrOutMode_t
ESM Error Output Mode type.
Definition: esm.h:111
int32_t SDL_ESM_getCurrErrPinLowTimeCnt(uint32_t baseAddr, uint32_t *pPinCntrPre)
This API is used to get the current value of low time counter.
volatile uint32_t INT_PRIO
Definition: esm.h:218
uint32_t esmIntrPriorityLvl_t
Definition: esm.h:142
int32_t SDL_ESM_writeEOI(uint32_t baseAddr, esmIntrType_t intrType)
This API is used to write EOI.
int32_t SDL_ESM_disableIntr(uint32_t baseAddr, uint32_t intrNum)
This API is used to disable interrupt.
int32_t SDL_ESM_getIntrStatusRAW(uint32_t baseAddr, uint32_t intrSrc, uint32_t *pStatus)
This API is used to get the interrupt RAW status.
int32_t SDL_ESM_enableCfgIntr(uint32_t baseAddr, uint32_t group)
This API is used to enable the configuration interrupt.
int32_t SDL_ESM_isEnableCfgIntr(uint32_t baseAddr, uint32_t group, uint32_t *pEnStatus)
This API is used check if the configuration interrupt for a group is enabled/disabled.
uint32_t highestPendPlsIntNum
Definition: esm.h:196
int32_t SDL_ESM_enableIntr(uint32_t baseAddr, uint32_t intrNum)
This API is used to enable interrupt.
int32_t SDL_ESM_PWMH_getCurrErrPinHighTimeCnt(uint32_t baseAddr, uint32_t *pHighPWMHTime)
This API is used to get the current value of high time counter for PWM error.
uint32_t major
Definition: esm.h:166
volatile uint32_t PID
Definition: esm.h:228
int32_t SDL_ESM_setMode(uint32_t baseAddr, esmOperationMode_t mode)
This API is used to configure operation mode of ESM module.
int32_t SDL_ESM_clearIntrStatus(uint32_t baseAddr, uint32_t intrSrc)
This API is used to clear the interrupt status.
volatile uint32_t PWML_PIN_CNTR_PRE
Definition: esm.h:236
int32_t SDL_ESM_resetErrPin(uint32_t baseAddr)
This API is used to reset the nERROR pin.
volatile uint32_t ERR_EN_CLR
Definition: esm.h:232
int32_t SDL_ESM_clearCfgIntrStatus(uint32_t baseAddr, uint32_t group)
This API is used to clear the configuration interrupt status.
uint32_t lvlGrpNum
Definition: esm.h:186
int32_t SDL_ESM_isEnableCriticalIntr(uint32_t baseAddr, uint32_t intrSrc, uint32_t *pEnStatus)
This API is used check if critical interrupt is enabled/disabled.
int32_t SDL_ESM_getRevisionId(uint32_t baseAddr, esmRevisionId_t *pRevId)
This API is used get the ESM revision ID.
uint32_t grpIntrStatus
Definition: esm.h:204
volatile uint32_t INTR_EN_SET
Definition: esm.h:216
int32_t SDL_ESM_PWML_getErrPinLowTimePreload(uint32_t baseAddr, uint32_t *pPinPWMLCntrPre)
This API is used to read the low time counter pre-load value for PWM error.
ESM Error Group static registers list.
Definition: esm.h:215