The driver supports SysPm callback for Deep Sleep and Hibernate transition.
Functions | |
cy_en_syspm_status_t | Cy_SMIF_DeepSleepCallback (cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode) |
This function handles the transition of the SMIF into and out of Deep Sleep mode. More... | |
cy_en_syspm_status_t | Cy_SMIF_HibernateCallback (cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode) |
This function handles the transition of the SMIF into Hibernate mode. More... | |
cy_en_syspm_status_t Cy_SMIF_DeepSleepCallback | ( | cy_stc_syspm_callback_params_t * | callbackParams, |
cy_en_syspm_callback_mode_t | mode | ||
) |
This function handles the transition of the SMIF into and out of Deep Sleep mode.
It prevents the device from entering DeepSleep if SMIF is actively communicating, or there is any data in the TX or RX FIFOs, or SMIF is in memory mode.
This function should be called while execution of Cy_SysPm_CpuEnterDeepSleep therefore must be registered as a callback before the call. To register it call Cy_SysPm_RegisterCallback and specify CY_SYSPM_DEEPSLEEP as the callback type.
callbackParams | The pointer to the structure with SMIF SysPm callback parameters (pointer to SMIF registers, context and call mode cy_stc_syspm_callback_params_t). |
mode | Callback mode, see cy_en_syspm_callback_mode_t |
Example setup of SysPM deep sleep and hibernate mode
cy_en_syspm_status_t Cy_SMIF_HibernateCallback | ( | cy_stc_syspm_callback_params_t * | callbackParams, |
cy_en_syspm_callback_mode_t | mode | ||
) |
This function handles the transition of the SMIF into Hibernate mode.
It prevents the device from entering Hibernate if the SMIF is actively communicating, or there is any data in the TX or RX FIFO, or SMIF is in memory mode.
This function should be called during execution of Cy_SysPm_SystemEnterHibernate therefore it must be registered as a callback before the call. To register it call Cy_SysPm_RegisterCallback and specify CY_SYSPM_HIBERNATE as the callback type.
callbackParams | The pointer to the structure with SMIF SysPm callback parameters (pointer to SMIF registers, context and call mode cy_stc_syspm_callback_params_t). |
mode | Callback mode, see cy_en_syspm_callback_mode_t |
Example setup of SysPM deep sleep and hibernate mode