CAT2 Peripheral Driver Library

The driver supports SysPm callback for Deep Sleep transition. More...

Functions

cy_en_syspm_status_t Cy_LPComp_DeepSleepCallback (cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode)
 Checks the current Enable mode of LPComp and then disables the low-power comparator block if there is no wake-up source from the low-power comparator in Deep Sleep mode. More...
 

Detailed Description

The driver supports SysPm callback for Deep Sleep transition.

Function Documentation

◆ Cy_LPComp_DeepSleepCallback()

cy_en_syspm_status_t Cy_LPComp_DeepSleepCallback ( cy_stc_syspm_callback_params_t callbackParams,
cy_en_syspm_callback_mode_t  mode 
)

Checks the current Enable mode of LPComp and then disables the low-power comparator block if there is no wake-up source from the low-power comparator in Deep Sleep mode.

Stores the Enabled state of the low-power comparator and then disables the low-power comparator block before going to Low-power modes, and recovers the low-power comparator Enabled state after a wake-up using the stored value.

Parameters
*callbackParamsThe pointer to the cy_stc_syspm_callback_params_t structure.
modeCallback mode, see cy_en_syspm_callback_mode_t
Returns
cy_en_syspm_status_t