CAT2 Peripheral Driver Library

Enumerations

enum  cy_en_syspm_status_t {
  CY_SYSPM_SUCCESS = 0x0U,
  CY_SYSPM_BAD_PARAM = CY_SYSPM_ID | CY_PDL_STATUS_ERROR | 0x01U,
  CY_SYSPM_TIMEOUT = CY_SYSPM_ID | CY_PDL_STATUS_ERROR | 0x02U,
  CY_SYSPM_INVALID_STATE = CY_SYSPM_ID | CY_PDL_STATUS_ERROR | 0x03U,
  CY_SYSPM_FAIL = CY_SYSPM_ID | CY_PDL_STATUS_ERROR | 0xFFU
}
 The SysPm function return value status definitions. More...
 
enum  cy_en_syspm_callback_type_t {
  CY_SYSPM_SLEEP = 0U,
  CY_SYSPM_DEEPSLEEP = 1U,
  CY_SYSPM_HIBERNATE = 2U
}
 This enumeration is used to select the low power mode for which the appropriate registered callback handler will be executed. More...
 
enum  cy_en_syspm_ovd_sel_t {
  CY_SYSPM_OVD_VDD = 0U,
  CY_SYSPM_OVD_VCC = 1U
}
 This enumerator is used to select on which line overvoltage will be detected. More...
 
enum  cy_en_syspm_supply_entity_select_t {
  CY_SYSPM_OVD_VDD_OK = 0U,
  CY_SYSPM_OVD_VCC_OK = 1U,
  CY_SYSPM_BOD_VDD_OK = 2U,
  CY_SYSPM_BOD_VCC_OK = 3U,
  CY_SYSPM_BOD_HV_OK = 4U
}
 This enumerator is used to select on which detector status will be checked. More...
 
enum  cy_en_syspm_callback_mode_t {
  CY_SYSPM_CHECK_READY = 0x01U,
  CY_SYSPM_CHECK_FAIL = 0x02U,
  CY_SYSPM_BEFORE_TRANSITION = 0x04U,
  CY_SYSPM_AFTER_TRANSITION = 0x08U
}
 This enumeration specifies the associated callback mode. More...
 

Detailed Description

Enumeration Type Documentation

◆ cy_en_syspm_status_t

The SysPm function return value status definitions.

Enumerator
CY_SYSPM_SUCCESS 

Successful.

CY_SYSPM_BAD_PARAM 

One or more invalid parameters.

CY_SYSPM_TIMEOUT 

A time-out occurred.

CY_SYSPM_INVALID_STATE 

The operation is not setup or is in an improper state.

CY_SYSPM_FAIL 

Unknown failure.

◆ cy_en_syspm_callback_type_t

This enumeration is used to select the low power mode for which the appropriate registered callback handler will be executed.

For example, the registered callback of the type CY_SYSPM_SLEEP will be executed while switching into the Sleep power mode.

Enumerator
CY_SYSPM_SLEEP 

The Sleep enum callback type.

CY_SYSPM_DEEPSLEEP 

The Deep Sleep enum callback type.

CY_SYSPM_HIBERNATE 

Currently not supported.

Reserved for Future.

◆ cy_en_syspm_ovd_sel_t

This enumerator is used to select on which line overvoltage will be detected.

Enumerator
CY_SYSPM_OVD_VDD 

Enable for OVD on vddd.

CY_SYSPM_OVD_VCC 

Enable for OVD on vccd.

◆ cy_en_syspm_supply_entity_select_t

This enumerator is used to select on which detector status will be checked.

Enumerator
CY_SYSPM_OVD_VDD_OK 

Indication status for OVD on vddd.

CY_SYSPM_OVD_VCC_OK 

Indication status for OVD on vccd.

CY_SYSPM_BOD_VDD_OK 

Indication status for BOD on vddd.

CY_SYSPM_BOD_VCC_OK 

Indication status for for BOD on vccd.

CY_SYSPM_BOD_HV_OK 

Indication status for for BOD on high voltage subsystem.

◆ cy_en_syspm_callback_mode_t

This enumeration specifies the associated callback mode.

This enum defines the callback mode.

Enumerator
CY_SYSPM_CHECK_READY 

Callbacks with this mode are executed before entering into the low power mode.

The purpose of his callback function is to check if the device is ready to enter the low power mode.

CY_SYSPM_CHECK_FAIL 

Callbacks with this mode are executed after the CY_SYSPM_CHECK_READY callbacks execution returns CY_SYSPM_FAIL.

The callback with the CY_SYSPM_CHECK_FAIL mode should roll back the actions performed in the previously executed callback with CY_SYSPM_CHECK_READY

CY_SYSPM_BEFORE_TRANSITION 

Callbacks with this mode are executed after the CY_SYSPM_CHECK_READY callbacks execution returns CY_SYSPM_SUCCESS.

Performs the actions to be done before entering into the low power mode.

CY_SYSPM_AFTER_TRANSITION 

Performs the actions to be done after exiting the low power mode if entered.