![Logo](ti_logo.svg) |
xWRL6432 MMWAVE-L-SDK
05.04.00.01
|
|
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_ERRNO_BASE (-3000)
80 #define ESM_EINVAL (ESM_ERRNO_BASE-1)
82 #define ESM_ENOINIT (ESM_ERRNO_BASE-2)
84 #define ESM_EREINIT (ESM_ERRNO_BASE-3)
86 #define ESM_ENOMEM (ESM_ERRNO_BASE-4)
90 #define ESM_MAX_NOTIFIERS (4U)
92 #define ESM_MAX_ISR_COUNT (4U)
94 #define CSL_APP_ESM_ESMEKR_EKEY_NORMAL_MODE (0x0U)
95 #define CSL_APP_ESM_ESMEKR_EKEY_ERROR_PIN_RESET (0x5U)
96 #define CSL_APP_ESM_ESMEKR_EKEY_ERROR_FORCE_MODE (0xAU)
417 if (openPrms != NULL)
void * arg
Definition: esm/v0/esm.h:158
uint32_t ESM_getIntrStatus(uint32_t baseAddr, uint32_t intrSrc)
This API is used to get the interrupt status.
uint32_t highPrioIntNum
Definition: esm/v0/esm.h:203
ESM_OperationMode
Enum to select the ESM Operation Mode.
Definition: esm/v0/esm.h:113
uint32_t gEsmConfigNum
Externally defined driver configuration array size.
uint32_t esmBaseAddr
Definition: esm/v0/esm.h:224
uint32_t errorNumber
Definition: esm/v0/esm.h:152
ESM_Handle esmHandle
Definition: esm/v0/esm.h:222
CSL_app_ctrlRegs * ptrCtrlRegs
Definition: esm/v0/esm.h:199
void(* ESM_CallBack)(void *arg)
Callback function which is invoked by the ESM module if a notify function is registered using the ESM...
Definition: esm/v0/esm.h:133
ESM Open Parameters.
Definition: esm/v0/esm.h:175
uint32_t setIntrPriorityLvl
Definition: esm/v0/esm.h:154
#define CSL_APP_ESM_ESMEKR_EKEY_ERROR_FORCE_MODE
Definition: esm/v0/esm.h:96
@ ESM_INTR_PRIORITY_LEVEL_LOW
Definition: esm/v0/esm.h:105
#define ESM_MAX_ISR_COUNT
Maximum ISR supported.
Definition: esm/v0/esm.h:92
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: esm/v0/esm.h:160
ESM_OpenParams params
Definition: esm/v0/esm.h:226
ESM_IntrPriorityLvl
Enum to select level for interrupt.
Definition: esm/v0/esm.h:104
ESM Instance configuration.
Definition: esm/v0/esm.h:250
int32_t ESM_setErrPinLowTimePreload(uint32_t baseAddr, uint32_t lowTime)
This API is used to configure the low time counter pre-load value.
CSL_app_esmRegs * ptrESMRegs
Definition: esm/v0/esm.h:197
@ ESM_OPERATION_MODE_ERROR_FORCE
Definition: esm/v0/esm.h:116
void ESM_setMode(uint32_t baseAddr, uint32_t mode)
This API is used to configure operation mode of ESM module.
uint32_t numGroup1Err
Definition: esm/v0/esm.h:238
ESM_Config gEsmConfig[]
Externally defined driver configuration array.
uint8_t intrLowPriority
Definition: esm/v0/esm.h:209
uint32_t lowPrioIntNum
Definition: esm/v0/esm.h:205
#define CSL_APP_ESM_ESMEKR_EKEY_NORMAL_MODE
Definition: esm/v0/esm.h:94
void ESM_resetErrPin(uint32_t baseAddr)
This API is used to reset the nERROR pin. This will set the nERROR pin to high.
ESM Driver Object.
Definition: esm/v0/esm.h:221
@ ESM_OPERATION_MODE_NORMAL
Definition: esm/v0/esm.h:114
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 get the current value of low time counter.
int32_t ESM_registerNotifier(ESM_Handle handle, ESM_NotifyParams *params, int32_t *errCode)
Register the notifers. The ESM module will call back if error interrupt is detected.
#define ESM_MAX_NOTIFIERS
Maximum number of notify callbacks supported.
Definition: esm/v0/esm.h:90
Bool enableInfluenceOnErrPin
Definition: esm/v0/esm.h:156
void * hwiHandleLo
Definition: esm/v0/esm.h:232
ESM Hardware Atrributes.
Definition: esm/v0/esm.h:196
uint32_t groupNumber
Definition: esm/v0/esm.h:150
int32_t ESM_getGroupIntrStatus(uint32_t baseAddr, uint32_t grpNum, ESM_GroupIntrStatus *intrstatus)
This API is used to get the interrupt/error status for a group.
@ ESM_INTR_PRIORITY_LEVEL_HIGH
Definition: esm/v0/esm.h:107
ESM_Object * object
Definition: esm/v0/esm.h:253
int32_t ESM_deregisterNotifier(ESM_Handle handle, int32_t notifyIndex, int32_t *errCode)
Deregister the ESM notifers.
uint32_t numGroup1Err
Definition: esm/v0/esm.h:201
Opaque Hwi object used with the Hwi APIs.
Definition: HwiP.h:91
Parameters used to register the ESM notify function to handle Group1 and Group2 errors....
Definition: esm/v0/esm.h:149
void ESM_init(void)
The functions initializes the ESM module.
Structure to access the status of interrupts belonging to a group.
Definition: esm/v0/esm.h:137
#define ESM_NUM_INTR_PER_GROUP
Definition: cslr_soc_defines.h:113
uint8_t intrHighPriority
Definition: esm/v0/esm.h:207
void * hwiHandleHi
Definition: esm/v0/esm.h:228
Bool bClearErrors
Definition: esm/v0/esm.h:176
const ESM_Attrs * hwAttrs
Definition: esm/v0/esm.h:251
static void ESM_Params_init(ESM_OpenParams *openPrms)
Definition: esm/v0/esm.h:415
HwiP_Object hwiHiObj
Definition: esm/v0/esm.h:230
HwiP_Object hwiLoObj
Definition: esm/v0/esm.h:234
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.
void * ESM_Handle
A handle that is returned from a ESM_open() call.
Definition: esm/v0/esm.h:69