This set of functions is for Deep Sleep entry and exit.
Functions | |
cy_en_syspm_status_t | Cy_SAR_DeepSleepCallback (const cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode) |
Callback to prepare the SAR before entering Deep Sleep and to re-enable the SAR after exiting Deep Sleep. More... | |
void | Cy_SAR_DeepSleep (SAR_Type *base) |
This is the preferred routine to prepare the hardware for Deep Sleep. More... | |
void | Cy_SAR_Wakeup (SAR_Type *base) |
This is the preferred routine to restore the hardware to the state after calling Cy_SAR_DeepSleep. More... | |
cy_en_syspm_status_t Cy_SAR_DeepSleepCallback | ( | const cy_stc_syspm_callback_params_t * | callbackParams, |
cy_en_syspm_callback_mode_t | mode | ||
) |
Callback to prepare the SAR before entering Deep Sleep and to re-enable the SAR after exiting Deep Sleep.
callbackParams | Pointer to structure of type cy_stc_syspm_callback_params_t |
mode | Callback mode, see cy_en_syspm_callback_mode_t |
void Cy_SAR_DeepSleep | ( | SAR_Type * | base | ) |
This is the preferred routine to prepare the hardware for Deep Sleep.
It will call Cy_SAR_StopConvert to disable continuous conversions and wait for SAR conversions to stop before entering Deep Sleep. If the SARMUX is not configured for Deep Sleep operation, the entire SAR hardware block will be turned off.
base | Pointer to structure describing registers |
This function is used in the Cy_SAR_DeepSleepCallback. There is no need to call this function directly.
void Cy_SAR_Wakeup | ( | SAR_Type * | base | ) |
This is the preferred routine to restore the hardware to the state after calling Cy_SAR_DeepSleep.
Restoring the hardware involves re-enabling the hardware, the reference buffer, and continuous scanning if it was previously enabled before entering sleep.
base | Pointer to structure describing registers |
This function is used in the Cy_SAR_DeepSleepCallback. There is no need to call this function directly.