PSOC E8XXGP Device Support Library

| PSOC E8XXGP Device Support Library

Data Structures | Enumerations | Functions
NVM Deep Sleep Callback
SYSPM Callback API Reference

## General Description

Implementation of the NVM Deep Sleep callback.

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

## Enumerations
enum | mtb_syspm_nvm_type_t { MTB_SYSPM_NVM_TYPE_INVALID = 0U , MTB_SYSPM_NVM_TYPE_FLASH = 1U , MTB_SYSPM_NVM_TYPE_RRAM = 2U , MTB_SYSPM_NVM_TYPE_OTP = 3U }
| Enum of Non-volatile memory (NVM) types. More...

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

## Data Structure Documentation

## ◆ mtb_syspm_nvm_deepsleep_context_t

struct mtb_syspm_nvm_deepsleep_context_t

Data Fields
mtb_syspm_nvm_type_t | nvm_type | Type of NVM in use.

## Enumeration Type Documentation

## ◆ mtb_syspm_nvm_type_t

enum mtb_syspm_nvm_type_t

Enum of Non-volatile memory (NVM) types.

Enumerator
MTB_SYSPM_NVM_TYPE_INVALID | Invalid type of NVM.
MTB_SYSPM_NVM_TYPE_FLASH | Internal Flash.
MTB_SYSPM_NVM_TYPE_RRAM | RRAM.
MTB_SYSPM_NVM_TYPE_OTP | OTP.

## Function Documentation

## ◆ mtb_syspm_nvm_deepsleep_callback()

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

Deepsleep callback for NVM IP.

Parameters

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

Returns
  Returns CY_SYSPM_SUCCESS if successful, an error code otherwise