![]() |
Infineon MOTIX™ MCU TLE987x Device Family SDK
|
Go to the source code of this file.
Power Management Unit low level access library.
Macros | |
#define | PMU_RESET_STS_POR (0x80u) |
PMU Reset Status Flag Mask, Power-On Reset Flag. More... | |
#define | PMU_RESET_STS_PIN (0x40u) |
PMU Reset Status Flag Mask, PIN-Reset Flag. More... | |
#define | PMU_RESET_STS_WDT1 (0x20u) |
PMU Reset Status Flag Mask, External Watchdog (WDT1) Reset Flag. More... | |
#define | PMU_RESET_STS_ClkWDT (0x10u) |
PMU Reset Status Flag Mask, Clock Watchdog (CLKWDT) Reset Flag. More... | |
#define | PMU_RESET_STS_LPR (0x08u) |
PMU Reset Status Flag Mask, Low Priority Resets. More... | |
#define | PMU_RESET_STS_SLEEP (0x04u) |
PMU Reset Status Flag Mask, Flag which indicates a reset caused by Sleep-Exit. More... | |
#define | PMU_RESET_STS_WAKE (0x02u) |
PMU Reset Status Flag Mask, Flag which indicates a reset caused by Stop-Exit. More... | |
#define | PMU_RESET_STS_SYS_FAIL (0x01u) |
PMU Reset Status Flag Mask, Flag which indicates a reset caused by a System Fail reported in the corresponding Fail Register. More... | |
#define | PMU_VDDEXT_STABLE (0x80u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply works inside its specified range 1. More... | |
#define | PMU_VDDEXT_OK (0x40u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply works inside its specified range 2. More... | |
#define | PMU_VDDEXT_OVERLOAD (0x20u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overload. More... | |
#define | PMU_VDDEXT_OVERVOLT (0x10u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overvoltage. More... | |
#define | PMU_VDDEXT_SHORT (0x08u) |
PMU VDDEXT Status Flag Mask, VDDEXT Shorted Output. More... | |
#define | PMU_VDDEXT_IE (0x04u) |
PMU VDDEXT Status Flag Mask, Enabling of VDDEXT Supply status information as interrupt source. More... | |
#define | PMU_VDDEXT_CYC_EN (0x02u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply for Cyclic Sense Enable. More... | |
#define | PMU_VDDEXT_ENABLE (0x01u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Enable. More... | |
Functions | |
INLINE void | PMU_VDDEXT_Int_En (void) |
enables VDDEXT Supply status information as interrupt source (enable Fail Interrupt). More... | |
INLINE void | PMU_VDDEXT_Int_Dis (void) |
disables VDDEXT Supply status information as interrupt source (disable Fail Interrupt). More... | |
INLINE void | PMU_VDDC_Int_En (void) |
enables VDDC status information as interrupt source. More... | |
INLINE void | PMU_VDDC_Int_Dis (void) |
disables VDDC status information as interrupt source. More... | |
INLINE void | PMU_VDDP_Int_En (void) |
enables VDDP status information as interrupt source. More... | |
INLINE void | PMU_VDDP_Int_Dis (void) |
disables VDDP status information as interrupt source. More... | |
void | PMU_Init (void) |
Initializes the ADC1 based on the Config Wizard for MOTIX MCU configuration. More... | |
bool | PMU_VDDEXT_On (void) |
Turns VDDEXT on. More... | |
INLINE uint8 | PMU_Get_Reset_Status (void) |
Reads out the Reset Status Hard Register (PMU->PMU_RESET_STS1) More... | |
INLINE void | PMU_Clear_Reset_Status (void) |
Clears the Reset Status Hard Register (PMU->PMU_RESET_STS1) More... | |
INLINE uint8 | PMU_VDDEXT_Off (void) |
Switches off (disables) VDDEXT and returns the stable state of VDDEXT (VDDEXT Supply works inside its specified range) More... | |
INLINE void | PMU_VDDEXT_Short_Clr (void) |
Clear VDDEXT Short Error Flag. More... | |
INLINE void | PMU_VDDEXT_Set (uint8 FlagMask) |
Set the given bits in the PMU->VDDEXT_CTRL register. More... | |
#define PMU_RESET_STS_ClkWDT (0x10u) |
PMU Reset Status Flag Mask, Clock Watchdog (CLKWDT) Reset Flag.
#define PMU_RESET_STS_LPR (0x08u) |
PMU Reset Status Flag Mask, Low Priority Resets.
#define PMU_RESET_STS_PIN (0x40u) |
PMU Reset Status Flag Mask, PIN-Reset Flag.
#define PMU_RESET_STS_POR (0x80u) |
PMU Reset Status Flag Mask, Power-On Reset Flag.
#define PMU_RESET_STS_SLEEP (0x04u) |
PMU Reset Status Flag Mask, Flag which indicates a reset caused by Sleep-Exit.
#define PMU_RESET_STS_SYS_FAIL (0x01u) |
PMU Reset Status Flag Mask, Flag which indicates a reset caused by a System Fail reported in the corresponding Fail Register.
#define PMU_RESET_STS_WAKE (0x02u) |
PMU Reset Status Flag Mask, Flag which indicates a reset caused by Stop-Exit.
#define PMU_RESET_STS_WDT1 (0x20u) |
PMU Reset Status Flag Mask, External Watchdog (WDT1) Reset Flag.
#define PMU_VDDEXT_CYC_EN (0x02u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply for Cyclic Sense Enable.
#define PMU_VDDEXT_ENABLE (0x01u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Enable.
#define PMU_VDDEXT_IE (0x04u) |
PMU VDDEXT Status Flag Mask, Enabling of VDDEXT Supply status information as interrupt source.
#define PMU_VDDEXT_OK (0x40u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply works inside its specified range 2.
#define PMU_VDDEXT_OVERLOAD (0x20u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overload.
#define PMU_VDDEXT_OVERVOLT (0x10u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overvoltage.
#define PMU_VDDEXT_SHORT (0x08u) |
PMU VDDEXT Status Flag Mask, VDDEXT Shorted Output.
#define PMU_VDDEXT_STABLE (0x80u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply works inside its specified range 1.
INLINE void PMU_Clear_Reset_Status | ( | void | ) |
Clears the Reset Status Hard Register (PMU->PMU_RESET_STS1)
Example
This example checks and clears Reset Status.
Reads out the Reset Status Hard Register (PMU->PMU_RESET_STS1)
Example
This example checks and clears Reset Status.
void PMU_Init | ( | void | ) |
Initializes the ADC1 based on the Config Wizard for MOTIX MCU configuration.
INLINE void PMU_VDDC_Int_Dis | ( | void | ) |
disables VDDC status information as interrupt source.
Example
This example treats the Overvoltage at VDDC regulator interrupt.
INLINE void PMU_VDDC_Int_En | ( | void | ) |
enables VDDC status information as interrupt source.
Example
This example treats the Overvoltage at VDDC regulator interrupt.
INLINE void PMU_VDDEXT_Int_Dis | ( | void | ) |
disables VDDEXT Supply status information as interrupt source (disable Fail Interrupt).
Example
This example treats the VDDEXT Supply OverLoad interrupt.
INLINE void PMU_VDDEXT_Int_En | ( | void | ) |
enables VDDEXT Supply status information as interrupt source (enable Fail Interrupt).
Example
This example treats the VDDEXT Supply OverLoad interrupt.
Switches off (disables) VDDEXT and returns the stable state of VDDEXT (VDDEXT Supply works inside its specified range)
Example
This example switches VDDEXT off and waits until VDDEXT is in stable condition.
bool PMU_VDDEXT_On | ( | void | ) |
Turns VDDEXT on.
Different implementations for BE/BF-Step
true | VDDEXT was turned on |
false | VDDEXT is off, was not turned on |
Example
This example switches VDDEXT on and waits until VDDEXT is in stable condition.
Set the given bits in the PMU->VDDEXT_CTRL register.
FlagMask | VDDEXT Flags Mask |
Example
This example enables VVDDEXT Supply status information as interrupt source.
INLINE void PMU_VDDEXT_Short_Clr | ( | void | ) |
Clear VDDEXT Short Error Flag.
Example
This example clears VDDEXT Supply Shorted Output flag.
INLINE void PMU_VDDP_Int_Dis | ( | void | ) |
disables VDDP status information as interrupt source.
Example
This example treats the Overvoltage at VDDP regulator interrupt.
INLINE void PMU_VDDP_Int_En | ( | void | ) |
enables VDDP status information as interrupt source.
Example
This example treats the Overvoltage at VDDP regulator interrupt.