The driver supports SysPm callback for Deep Sleep transition.
Functions | |
cy_en_syspm_status_t | Cy_I2S_DeepSleepCallback (cy_stc_syspm_callback_params_t const *callbackParams, cy_en_syspm_callback_mode_t mode) |
This is a callback function to be used at the application layer to manage an I2S operation during the Deep Sleep cycle. More... | |
cy_en_syspm_status_t Cy_I2S_DeepSleepCallback | ( | cy_stc_syspm_callback_params_t const * | callbackParams, |
cy_en_syspm_callback_mode_t | mode | ||
) |
This is a callback function to be used at the application layer to manage an I2S operation during the Deep Sleep cycle.
It stores the I2S state (Tx/Rx enabled/disabled/paused) into the context structure and stops the communication before entering into Deep Sleep power mode and restores the I2S state after waking up.
callbackParams | - The pointer to the callback parameters structure, see cy_stc_syspm_callback_params_t. |
mode | Callback mode, see cy_en_syspm_callback_mode_t |