Functions | |
__STATIC_INLINE void | Cy_SysClk_RegisterCallback (cy_cb_sysclk_t callback, cy_stc_sysclk_context_t *context) |
Registers a callback function that notifies that the timeout occurred in the Cy_SysClk_DeepSleepCallback. 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. More... | |
__STATIC_INLINE void Cy_SysClk_RegisterCallback | ( | cy_cb_sysclk_t | callback, |
cy_stc_sysclk_context_t * | context | ||
) |
Registers a callback function that notifies that the timeout occurred in the Cy_SysClk_DeepSleepCallback.
callback | The pointer to a callback function. See cy_cb_sysclk_t for the function prototype. |
context | The pointer to context structure cy_stc_sysclk_context_t allocated by the user. The user should not modify anything in this structure. |
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 needed if PLL and/or ECO are enabled and used as a source for HFCLK.
This function performs the following:
The function prevents entry into Deep Sleep mode if the ILO measurement is currently performing; see Cy_SysClk_IloStartMeasurement.
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 |