Functions | |
| cy_en_syspm_status_t | Cy_SysClk_DeepSleepCallback (cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode) |
| Callback function to be used when entering system Deep Sleep mode. More... | |
| cy_en_syspm_status_t Cy_SysClk_DeepSleepCallback | ( | cy_stc_syspm_callback_params_t * | callbackParams, |
| cy_en_syspm_callback_mode_t | mode | ||
| ) |
Callback function to be used when entering system Deep Sleep mode.
This function is applicable if:
This function performs the following:
The function prevents entry into Deep Sleep mode if the measurement counters are currently counting; see Cy_SysClk_StartClkMeasurementCounters.
This function can be called during execution of Cy_SysPm_CpuEnterDeepSleep. To do so, register this function as a callback before calling Cy_SysPm_CpuEnterDeepSleep - specify CY_SYSPM_DEEPSLEEP as the callback type and call Cy_SysPm_RegisterCallback.
| callbackParams | structure with the syspm callback parameters, see cy_stc_syspm_callback_params_t. |
| mode | Callback mode, see cy_en_syspm_callback_mode_t |