Syspm-Callbacks

| Syspm-Callbacks

Data Structures | Functions
TCPWM Deep Sleep Callback

## General Description

Implementation of the TCPWM Deep Sleep callback.

## Data Structures
struct | mtb_syspm_tcpwm_deepsleep_context_t
| Context Reference Structure for TCPWM peripheral in case of DeepSleep. More...

## Functions
cy_en_syspm_status_t | mtb_syspm_tcpwm_deepsleep_callback (cy_stc_syspm_callback_params_t *params, cy_en_syspm_callback_mode_t mode)
| Deepsleep callback for TCPWM IP. More...

## Data Structure Documentation

## ◆ mtb_syspm_tcpwm_deepsleep_context_t

struct mtb_syspm_tcpwm_deepsleep_context_t

Data Fields
uint32_t | channelNum | Number of the tcpwm channel.
bool | preSleepState | Enable State of the channel pre-sleep.
bool | preSleepRunning | Running State of the channel pre-sleep.

## Function Documentation

## ◆ mtb_syspm_tcpwm_deepsleep_callback()

cy_en_syspm_status_t mtb_syspm_tcpwm_deepsleep_callback | ( | cy_stc_syspm_callback_params_t * | params,
|  | cy_en_syspm_callback_mode_t | mode
| ) |  |

Deepsleep callback for TCPWM IP.

Note
  DeepSleep entry is not prevented if the TCPWM is running. If it is required to prevent DeepSleep entry when the TCPWM is running, the application should register its own callback or lock DeepSleep.

Parameters

  [in] | params | The param structure for the callback for which the context element should be of type mtb_syspm_tcpwm_deepsleep_context_t
  [in] | mode | The callback mode

Returns
  Returns CY_SYSPM_SUCCESS if successful, an error code otherwise