PSoC 6 Peripheral Driver Library

General Description

Functions

__STATIC_INLINE bool Cy_SysPm_Cm4IsActive (void)
 Checks if CM4 is in CPU Active mode. More...
 
__STATIC_INLINE bool Cy_SysPm_Cm4IsSleep (void)
 Checks if the CM4 is in CPU Sleep mode. More...
 
__STATIC_INLINE bool Cy_SysPm_Cm4IsDeepSleep (void)
 Checks if the CM4 is in the CPU Deep Sleep mode. More...
 
__STATIC_INLINE bool Cy_SysPm_Cm0IsActive (void)
 Checks if the CM0+ is in CPU Active mode. More...
 
__STATIC_INLINE bool Cy_SysPm_Cm0IsSleep (void)
 Checks if the CM0+ is in CPU Sleep mode. More...
 
__STATIC_INLINE bool Cy_SysPm_Cm0IsDeepSleep (void)
 Checks if the CM0+ is in CPU Deep Sleep mode. More...
 
__STATIC_INLINE bool Cy_SysPm_IsSystemLp (void)
 Checks if the system is in LP mode. More...
 
__STATIC_INLINE bool Cy_SysPm_IsSystemUlp (void)
 Checks if the system is in ULP mode. More...
 
uint32_t Cy_SysPm_ReadStatus (void)
 Reads the power modes status of the system and CPU(s). More...
 

Function Documentation

◆ Cy_SysPm_Cm4IsActive()

__STATIC_INLINE bool Cy_SysPm_Cm4IsActive ( void  )

Checks if CM4 is in CPU Active mode.

Returns
  • True if CM4 is in CPU Active mode.
  • False if the CM4 is not in CPU Active mode.
Function Usage
/* Scenario: There is a need to check if CM4 is in CPU Active mode */
{
/* CM4 is in CPU Active mode */
}

◆ Cy_SysPm_Cm4IsSleep()

__STATIC_INLINE bool Cy_SysPm_Cm4IsSleep ( void  )

Checks if the CM4 is in CPU Sleep mode.

Returns
  • True if the CM4 is in CPU Sleep mode.
  • False if the CM4 is not in CPU Sleep mode.
Function Usage
/* Scenario: There is a need to check if CM4 is in CPU Sleep mode */
{
/* CM4 is in CPU Sleep mode */
}

◆ Cy_SysPm_Cm4IsDeepSleep()

__STATIC_INLINE bool Cy_SysPm_Cm4IsDeepSleep ( void  )

Checks if the CM4 is in the CPU Deep Sleep mode.

Returns
  • True if CM4 is in CPU Deep Sleep mode.
  • False if the CM4 is not CPU in Deep Sleep mode.
Function Usage
/* Scenario: There is a need to check if CM4 is in CPU Deep Sleep mode */
{
/* CM4 is in CPU Deep Sleep mode */
}

◆ Cy_SysPm_Cm0IsActive()

__STATIC_INLINE bool Cy_SysPm_Cm0IsActive ( void  )

Checks if the CM0+ is in CPU Active mode.

Returns
  • True if the CM0+ is in CPU Sleep mode.
  • False if the CM0+ is not in CPU Sleep mode.
Function Usage
/* Scenario: There is a need to check if CM0+ is in CPU Active mode */
{
/* CM0+ is in CPU Active mode */
}

◆ Cy_SysPm_Cm0IsSleep()

__STATIC_INLINE bool Cy_SysPm_Cm0IsSleep ( void  )

Checks if the CM0+ is in CPU Sleep mode.

Returns
  • True if the CM0+ is in CPU Sleep mode.
  • False if the CM0+ is not in CPU Sleep mode.
Function Usage
/* Scenario: There is a need to check if CM0+ is in CPU Sleep mode */
{
/* CM0+ is in CPU Sleep mode */
}

◆ Cy_SysPm_Cm0IsDeepSleep()

__STATIC_INLINE bool Cy_SysPm_Cm0IsDeepSleep ( void  )

Checks if the CM0+ is in CPU Deep Sleep mode.

Returns
  • True if the CM0+ is in CPU Deep Sleep mode
  • False if the CM0+ is not in CPU Deep Sleep mode
Function Usage
/* Scenario: There is a need to check if CM0+ is in CPU Deep Sleep mode */
{
/* CM0+ is in CPU Deep Sleep mode */
}

◆ Cy_SysPm_IsSystemLp()

__STATIC_INLINE bool Cy_SysPm_IsSystemLp ( void  )

Checks if the system is in LP mode.

Returns
  • True the system is in LP mode.
  • False the system is not in LP mode.
Function Usage
/* Scenario: There is a need to check if the system is in Low Power
* mode
*/
{
/* The system is in LP mode */
}

◆ Cy_SysPm_IsSystemUlp()

__STATIC_INLINE bool Cy_SysPm_IsSystemUlp ( void  )

Checks if the system is in ULP mode.

Returns
  • True the system is in ULP mode.
  • False the system is is not ULP mode.
Function Usage
/* Scenario: There is a need to check if the system is in Ultra Low Power
* mode
*/
{
/* The system is in ULP */
}

◆ Cy_SysPm_ReadStatus()

uint32_t Cy_SysPm_ReadStatus ( void  )

Reads the power modes status of the system and CPU(s).

Returns
The current power mode. See The Power Mode Status Defines.
Function Usage
/* Scenario: There is a need to check the system current power mode and CPU
* power mode
*/
{
/* The system is currently in ULP mode */
}