75 #define PMIC_ESM_MODE_MCU (bool)false 76 #define PMIC_ESM_MODE_SOC (bool)true 85 #define PMIC_ESM_STOP (bool)false 86 #define PMIC_ESM_START (bool)true 95 #define PMIC_ESM_DISABLE (bool)false 96 #define PMIC_ESM_ENABLE (bool)true 105 #define PMIC_ESM_LEVEL_MODE (bool)false 106 #define PMIC_ESM_PWM_MODE (bool)true 115 #define PMIC_ESM_ERR_EN_DRV_CLEAR_DISABLE (bool)false 116 #define PMIC_ESM_ERR_EN_DRV_CLEAR_ENABLE (bool)true 125 #define PMIC_ESM_INTERRUPT_DISABLE (bool)false 126 #define PMIC_ESM_INTERRUPT_ENABLE (bool)true 136 #define PMIC_ESM_CFG_DELAY1_VALID (0x00U) 138 #define PMIC_ESM_CFG_DELAY2_VALID (0x01U) 140 #define PMIC_ESM_CFG_ERR_CNT_THR_VALID (0x02U) 143 #define PMIC_ESM_CFG_HMAX_VALID (0x03U) 146 #define PMIC_ESM_CFG_HMIN_VALID (0x04U) 149 #define PMIC_ESM_CFG_LMAX_VALID (0x05U) 152 #define PMIC_ESM_CFG_LMIN_VALID (0x06U) 155 #define PMIC_ESM_CFG_EN_DRV_VALID (0x07U) 157 #define PMIC_ESM_CFG_MODE_VALID (0x08U) 169 #define PMIC_ESM_CFG_DELAY1_VALID_SHIFT \ 170 (0x01U << PMIC_ESM_CFG_DELAY1_VALID) 171 #define PMIC_ESM_CFG_DELAY2_VALID_SHIFT \ 172 (0x01U << PMIC_ESM_CFG_DELAY2_VALID) 173 #define PMIC_ESM_CFG_ERR_CNT_THR_VALID_SHIFT \ 174 (0x01U << PMIC_ESM_CFG_ERR_CNT_THR_VALID) 175 #define PMIC_ESM_CFG_HMAX_VALID_SHIFT \ 176 (0x01U << PMIC_ESM_CFG_HMAX_VALID) 177 #define PMIC_ESM_CFG_HMIN_VALID_SHIFT \ 178 (0x01U << PMIC_ESM_CFG_HMIN_VALID) 179 #define PMIC_ESM_CFG_LMAX_VALID_SHIFT \ 180 (0x01U << PMIC_ESM_CFG_LMAX_VALID) 181 #define PMIC_ESM_CFG_LMIN_VALID_SHIFT \ 182 (0x01U << PMIC_ESM_CFG_LMIN_VALID) 183 #define PMIC_ESM_CFG_EN_DRV_VALID_SHIFT \ 184 (0x01U << PMIC_ESM_CFG_EN_DRV_VALID) 185 #define PMIC_ESM_CFG_MODE_VALID_SHIFT \ 186 (0x01U << PMIC_ESM_CFG_MODE_VALID) 261 typedef struct Pmic_EsmCfg_s
285 typedef struct Pmic_EsmIntrCfg_s
322 const bool esmState);
373 const bool esmToggle);
493 uint8_t *pEsmErrCnt);
uint32_t validParams
Definition: pmic_esm.h:263
uint32_t esmDelay2_us
Definition: pmic_esm.h:265
int32_t Pmic_esmStart(Pmic_CoreHandle_t *pPmicCoreHandle, const bool esmType, const bool esmState)
API to start PMIC ESM.
int32_t Pmic_esmGetErrCnt(Pmic_CoreHandle_t *pPmicCoreHandle, const bool esmType, uint8_t *pEsmErrCnt)
API to Get the current ESM Error Count.
int32_t Pmic_esmGetConfiguration(Pmic_CoreHandle_t *pPmicCoreHandle, const bool esmType, Pmic_EsmCfg_t *pEsmCfg)
API to Get the PMIC ESM Configuration.
bool esmMode
Definition: pmic_esm.h:272
int32_t Pmic_esmSetInterrupt(Pmic_CoreHandle_t *pPmicCoreHandle, const bool esmType, const Pmic_EsmIntrCfg_t esmIntrCfg)
API to Set PMIC ESM Interrupts.
uint16_t esmHmin_us
Definition: pmic_esm.h:267
uint16_t esmLmin_us
Definition: pmic_esm.h:269
PMIC ESM Interrupt Configuration Structure.
Definition: pmic_esm.h:285
bool esmPinIntr
Definition: pmic_esm.h:287
int32_t Pmic_esmEnable(Pmic_CoreHandle_t *pPmicCoreHandle, const bool esmType, const bool esmToggle)
API to Enable/Disable PMIC ESM.
uint32_t esmDelay1_us
Definition: pmic_esm.h:264
PMIC Interface Handle. Contains various PMIC driver instance specific information....
Definition: pmic_types.h:148
PMIC ESM Configuration structure Note: validParams is input param for all Set and Get APIs....
Definition: pmic_esm.h:261
int32_t Pmic_esmGetEnableState(Pmic_CoreHandle_t *pPmicCoreHandle, const bool esmType, bool *pEsmState)
API to Read PMIC ESM Enable/Disable state.
uint8_t esmErrCntThr
Definition: pmic_esm.h:270
PMIC Driver Common API/interface file.
uint16_t esmLmax_us
Definition: pmic_esm.h:268
bool esmRstIntr
Definition: pmic_esm.h:289
uint16_t esmHmax_us
Definition: pmic_esm.h:266
int32_t Pmic_esmGetStatus(Pmic_CoreHandle_t *pPmicCoreHandle, const bool esmType, bool *pEsmState)
API to read status of PMIC ESM is started or not.
int32_t Pmic_esmSetConfiguration(Pmic_CoreHandle_t *pPmicCoreHandle, const bool esmType, const Pmic_EsmCfg_t esmCfg)
API to Set PMIC ESM Configuration.
bool esmFailIntr
Definition: pmic_esm.h:288
bool esmEnDrv
Definition: pmic_esm.h:271