Low Power Callbacks

group group_rtc_low_power_functions

Functions

cy_en_syspm_status_t Cy_RTC_DeepSleepCallback(const cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode)

This function checks the RTC_BUSY bit to avoid data corruption before enters the Deep Sleep mode.

note

The *base and *context elements are required to be present in the parameter structure because this function uses the SysPm driver callback type. The SysPm driver callback function type requires implementing the function with next parameters and return value:

cy_en_syspm_status_t (*Cy_SysPmCallback) (

cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode);
Return

The SysPm return status, see cy_en_syspm_status_t.

Parameters

cy_en_syspm_status_t Cy_RTC_HibernateCallback(const cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode)

This function checks the RTC_BUSY bit to avoid data corruption before enters the Hibernate mode.

note

The *base and *context elements are required to be present in the parameter structure because this function uses the SysPm driver callback type. The SysPm driver callback function type requires implementing the function with next parameters and return value:

cy_en_syspm_status_t (*Cy_SysPmCallback) (

cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode);
Return

The syspm return status, see cy_en_syspm_status_t

Parameters