|
AM243x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
57 #include <drivers/hw_include/cslr_soc.h>
58 #include <drivers/hw_include/cslr_esm.h>
72 #define ESM_MAX_NOTIFIERS (4U)
74 #define ESM_MAX_ISR_COUNT (4U)
79 #define ESM_OPERATION_MODE_NORMAL 0x0U
81 #define ESM_OPERATION_MODE_ERROR_FORCE 0xAU
87 #define ESM_INTRE_CONFIG_ERROR (0x0u)
89 #define ESM_INTR_PRIORITY_LEVEL_LOW (0x1u)
91 #define ESM_INTR_PRIORITY_LEVEL_HIGH (0x2u)
391 if (openPrms != NULL)
void * arg
Definition: drivers/esm/v1/esm.h:122
uint32_t ESM_getIntrStatus(uint32_t baseAddr, uint32_t intrSrc)
This API is used to get the interrupt status.
uint32_t highPrioIntNum
Definition: drivers/esm/v1/esm.h:209
uint32_t gEsmConfigNum
Externally defined driver configuration array size.
uint32_t esmBaseAddr
Definition: drivers/esm/v1/esm.h:159
uint32_t errorNumber
Definition: drivers/esm/v1/esm.h:116
ESM_Handle esmHandle
Definition: drivers/esm/v1/esm.h:157
uint16_t index
Definition: tisci_rm_proxy.h:3
int32_t ESM_getGroupIntrStatus(uint32_t baseAddr, uint32_t intrPrioType, ESM_GroupIntrStatus *pIntrstatus)
This API is used to get the interrupt/error status for a group. This will also return highest pending...
void(* ESM_CallBack)(void *arg)
Callback function which is invoked by the ESM module if a notify function is registered using the ESM...
Definition: drivers/esm/v1/esm.h:107
ESM Open Parameters.
Definition: drivers/esm/v1/esm.h:139
uint32_t setIntrPriorityLvl
Definition: drivers/esm/v1/esm.h:118
int32_t ESM_registerNotifier(ESM_Handle handle, ESM_NotifyParams *params)
Register the notifers. The ESM module will call back if error interrupt is detected.
uint32_t grpIntrStatus
Definition: drivers/esm/v1/esm.h:189
void ESM_close(ESM_Handle handle)
The function closes a ESM peripheral specified by the ESM handle.
void ESM_deinit(void)
The functions de-initializes the ESM module.
ESM_CallBack notify
Definition: drivers/esm/v1/esm.h:124
ESM_OpenParams params
Definition: drivers/esm/v1/esm.h:161
uint32_t highestPendPlsIntNum
Definition: drivers/esm/v1/esm.h:181
ESM Instance configuration.
Definition: drivers/esm/v1/esm.h:225
int32_t ESM_setErrPinLowTimePreload(uint32_t baseAddr, uint32_t lowTime)
This API is used to configure the low time counter pre-load value.
ESM_Config gEsmConfig[]
Externally defined driver configuration array.
int32_t ESM_deregisterNotifier(ESM_Handle handle, int32_t notifyIndex)
Deregister the ESM notifers.
uint8_t intrLowPriority
Definition: drivers/esm/v1/esm.h:215
uint32_t lowPrioIntNum
Definition: drivers/esm/v1/esm.h:211
void ESM_resetErrPin(uint32_t baseAddr)
This API is used to reset the nERROR pin.
ESM Driver Object.
Definition: drivers/esm/v1/esm.h:156
uint32_t ESM_getErrPinStatus(uint32_t baseAddr)
This API is used to get the current status of nERROR pin.
uint32_t ESM_getCurrErrPinLowTimeCnt(uint32_t baseAddr)
This API is used to read the low time counter pre-load value.
int32_t ESM_setMode(uint32_t baseAddr, uint32_t mode)
This API is used to configure operation mode of ESM module.
#define ESM_MAX_NOTIFIERS
Maximum number of notify callbacks supported.
Definition: drivers/esm/v1/esm.h:72
Bool enableInfluenceOnErrPin
Definition: drivers/esm/v1/esm.h:120
void * hwiHandleLo
Definition: drivers/esm/v1/esm.h:167
ESM Hardware Atrributes.
Definition: drivers/esm/v1/esm.h:206
char mode[32]
Definition: tisci_pm_core.h:1
ESM_Object * object
Definition: drivers/esm/v1/esm.h:228
Opaque Hwi object used with the Hwi APIs.
Definition: HwiP.h:93
Parameters used to register the ESM notify function to handle errors. The function will the invoked f...
Definition: drivers/esm/v1/esm.h:115
void ESM_init(void)
The functions initializes the ESM module.
CSL_esmRegs * ptrESMRegs
Definition: drivers/esm/v1/esm.h:207
Structure to access the status of interrupts belonging to a High or Low priority interrupt.
Definition: drivers/esm/v1/esm.h:180
uint8_t intrHighPriority
Definition: drivers/esm/v1/esm.h:213
void * hwiHandleHi
Definition: drivers/esm/v1/esm.h:163
Bool bClearErrors
Definition: drivers/esm/v1/esm.h:140
const ESM_Attrs * hwAttrs
Definition: drivers/esm/v1/esm.h:226
static void ESM_Params_init(ESM_OpenParams *openPrms)
Definition: drivers/esm/v1/esm.h:389
HwiP_Object hwiHiObj
Definition: drivers/esm/v1/esm.h:165
HwiP_Object hwiLoObj
Definition: drivers/esm/v1/esm.h:169
ESM_Handle ESM_open(uint32_t index, ESM_OpenParams *params)
Opens a ESM object with the index and parameters specified, and returns a ESM_Handle.
uint32_t highestPendLvlIntNum
Definition: drivers/esm/v1/esm.h:185
void * ESM_Handle
A handle that is returned from a ESM_open() call.
Definition: drivers/esm/v1/esm.h:69