Functions | |
__STATIC_INLINE void | Cy_SysPm_PmicEnable (void) |
Enable the external PMIC controller that supplies Vddd (if present). More... | |
__STATIC_INLINE void | Cy_SysPm_PmicDisable (cy_en_syspm_pmic_wakeup_polarity_t polarity) |
Disable the external PMIC controller that supplies Vddd (if present). More... | |
__STATIC_INLINE bool | Cy_SysPm_PmicIsEnabled (void) |
This function returns the status of the PMIC controller. More... | |
__STATIC_INLINE void | Cy_SysPm_PmicAlwaysEnable (void) |
Enable the external PMIC controller that supplies Vddd (if present) and force active. More... | |
__STATIC_INLINE void | Cy_SysPm_PmicEnableOutput (void) |
Enables the PMIC controller output pin. More... | |
__STATIC_INLINE void | Cy_SysPm_PmicDisableOutput (void) |
Disables the PMIC controller output pin. More... | |
__STATIC_INLINE bool | Cy_SysPm_PmicIsOutputEnabled (void) |
This function returns the status of the PMIC controller output. More... | |
__STATIC_INLINE void | Cy_SysPm_PmicLock (void) |
Locks the PMIC control controller register so that no changes can be made. More... | |
__STATIC_INLINE void | Cy_SysPm_PmicUnlock (void) |
Unlocks the PMIC control register so that changes can be made. More... | |
__STATIC_INLINE bool | Cy_SysPm_PmicIsLocked (void) |
Returns the PMIC controller lock status. More... | |
__STATIC_INLINE void Cy_SysPm_PmicEnable | ( | void | ) |
Enable the external PMIC controller that supplies Vddd (if present).
For information about the PMIC controller input and output pins and their assignment in specific devices, refer to the appropriate device TRM.
This function is not effective when the PMIC controller is locked. Call Cy_SysPm_PmicUnlock() before enabling the PMIC.
__STATIC_INLINE void Cy_SysPm_PmicDisable | ( | cy_en_syspm_pmic_wakeup_polarity_t | polarity | ) |
Disable the external PMIC controller that supplies Vddd (if present).
This function does not affect the PMIC controller output pin. The PMIC controller input pin has programmable polarity to enable the external PMIC using different input polarities. The PMIC controller is automatically enabled when the input pin polarity and configured polarity match. This function is not effective when the active level of PMIC controller input pin is equal to the configured PMIC controller polarity.
The function is not effective when the PMIC controller is locked. Call Cy_SysPm_PmicUnlock() before enabling the PMIC controller.
polarity | Configures the PMIC controller wakeup input pin to be active low or active high. The PMIC will be automatically enabled when the set polarity and the active level of PMIC input pin match. See cy_en_syspm_pmic_wakeup_polarity_t. |
The PMIC controller will be enabled automatically by any of RTC alarm or PMIC wakeup events, regardless of the PMIC controller lock state.
For information about the PMIC controller input and output pins and their assignment in the specific devices, refer to the appropriate device TRM.
__STATIC_INLINE bool Cy_SysPm_PmicIsEnabled | ( | void | ) |
This function returns the status of the PMIC controller.
__STATIC_INLINE void Cy_SysPm_PmicAlwaysEnable | ( | void | ) |
Enable the external PMIC controller that supplies Vddd (if present) and force active.
This is a Write once API. It ensures that the PMIC controller cannot be disabled or polarity changed until a next device reset.
For information about the PMIC controller input and output pins and their assignment in the specific devices, refer to the appropriate device TRM.
__STATIC_INLINE void Cy_SysPm_PmicEnableOutput | ( | void | ) |
Enables the PMIC controller output pin.
The function is not effective when the PMIC controller is locked. Call Cy_SysPm_PmicUnlock() before enabling the PMIC controller.
For information about the PMIC controller output pin and its assignment in specific devices, refer to the appropriate device TRM.
__STATIC_INLINE void Cy_SysPm_PmicDisableOutput | ( | void | ) |
Disables the PMIC controller output pin.
When the PMIC controller output pin is disabled and is unlocked, the PMIC controller output pin can be used for the another purpose.
The function has no effect when the PMIC is locked. Call Cy_SysPm_PmicUnlock() before enabling the PMIC.
For information about the PMIC controller output pin and its assignment in specific devices, refer to the appropriate device TRM.
__STATIC_INLINE bool Cy_SysPm_PmicIsOutputEnabled | ( | void | ) |
This function returns the status of the PMIC controller output.
__STATIC_INLINE void Cy_SysPm_PmicLock | ( | void | ) |
Locks the PMIC control controller register so that no changes can be made.
The changes are related to PMIC enabling/disabling and PMIC output pin enabling/disabling.
__STATIC_INLINE void Cy_SysPm_PmicUnlock | ( | void | ) |
Unlocks the PMIC control register so that changes can be made.
The changes are related to the PMIC controller enabling/disabling and PMIC output pin enabling/disabling.
__STATIC_INLINE bool Cy_SysPm_PmicIsLocked | ( | void | ) |
Returns the PMIC controller lock status.