![]() |
Infineon MOTIX™ MCU TLE985x Device Family SDK
|
Go to the source code of this file.
Power Management Unit low level access library.
Macros | |
#define | PMU_RESET_STS_LOCKUP (0x0400u) |
PMU Reset Status Flag Mask, Lockup-Reset Flag. More... | |
#define | PMU_RESET_STS_PMU_SOFT (0x0200u) |
PMU Reset Status Flag Mask, Soft-Reset Flag. More... | |
#define | PMU_RESET_STS_IntWDT (0x0100u) |
PMU Reset Status Flag Mask, Internal Watchdog Reset Flag. More... | |
#define | PMU_RESET_STS_POR (0x0080u) |
PMU Reset Status Flag Mask, Power-On Reset Flag. More... | |
#define | PMU_RESET_STS_PIN (0x0040u) |
PMU Reset Status Flag Mask, PIN-Reset Flag. More... | |
#define | PMU_RESET_STS_WDT1 (0x0020u) |
PMU Reset Status Flag Mask, External Watchdog (WDT1) Reset Flag. More... | |
#define | PMU_RESET_STS_ClkWDT (0x0010u) |
PMU Reset Status Flag Mask, Clock Watchdog (CLKWDT) Reset Flag. More... | |
#define | PMU_RESET_STS_LPR (0x0008u) |
PMU Reset Status Flag Mask, Low Priority Resets. More... | |
#define | PMU_RESET_STS_SLEEP (0x0004u) |
PMU Reset Status Flag Mask, Flag which indicates a reset caused by Sleep-Exit. More... | |
#define | PMU_RESET_STS_WAKE (0x0002u) |
PMU Reset Status Flag Mask, Flag which indicates a reset caused by Stop-Exit. More... | |
#define | PMU_RESET_STS_SYS_FAIL (0x0001u) |
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_OT_SC (0x2000u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overtemperature Status clear. More... | |
#define | PMU_VDDEXT_UV_ISC (0x1000u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Undervoltage Interrupt Status clear. More... | |
#define | PMU_VDDEXT_OT_ISC (0x0800u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overtemperature Interrupt Status clear. More... | |
#define | PMU_VDDEXT_STABLE (0x0080u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Stable. More... | |
#define | PMU_VDDEXT_OVERTEMP (0x0040u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overtemperature. More... | |
#define | PMU_VDDEXT_OVERTEMPST (0x0020u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overtemperature Status. More... | |
#define | PMU_VDDEXT_UNDERVOLT (0x0010u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Undervoltage Interrupt Status. More... | |
#define | PMU_VDDEXT_OVERTEMPIN (0x0008u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply OverTemperature Interrupt Status. More... | |
#define | PMU_VDDEXT_IE (0x0004u) |
PMU VDDEXT Status Flag Mask, Enabling of VDDEXT Supply status information as interrupt source. More... | |
#define | PMU_VDDEXT_CYC_EN (0x0002u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply for Cyclic Sense Enable. More... | |
#define | PMU_VDDEXT_ENABLE (0x0001u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Enable. More... | |
#define | PMU_RESET_MASK (0x7FFu) |
PMU Reset Status Flag Mask. More... | |
Functions | |
void | PMU_Init (void) |
Initializes the PMU module. More... | |
bool | PMU_VDDEXT_On (void) |
Turns VDDEXT on. More... | |
INLINE void | PMU_VDDEXT_Int_En (void) |
Enables of VDDEXT Supply status information as interrupt source. More... | |
INLINE void | PMU_VDDEXT_Int_Dis (void) |
Disables of VDDEXT Supply status information as interrupt source. More... | |
INLINE void | PMU_VDDC_Int_En (void) |
Enables of VDDC status information as interrupt source. More... | |
INLINE void | PMU_VDDC_Int_Dis (void) |
Disables of VDDC status information as interrupt source. More... | |
INLINE void | PMU_VDDP_Int_En (void) |
Enables of VDDP status information as interrupt source. More... | |
INLINE void | PMU_VDDP_Int_Dis (void) |
Disables of VDDP status information as interrupt source. More... | |
INLINE void | PMU_OT_Int_En (void) |
Enables PMU Overtemperature Interrupt. More... | |
INLINE void | PMU_OT_Int_Dis (void) |
Disables PMU Overtemperature Interrupt. More... | |
INLINE void | PMU_VDDEXT_OT_Int_Clr (void) |
Clears VDDEXT Supply OverTemperature interrupt flag. More... | |
INLINE void | PMU_VDDEXT_UV_Int_Clr (void) |
Clears VDDEXT Supply Undervoltage interrupt flag. More... | |
INLINE void | PMU_VDDEXT_OT_Clr (void) |
Clears VDDEXT Supply Overvoltage Status. More... | |
INLINE void | PMU_VDDC_OV_Clr (void) |
Clears Overvoltage at VDDC regulator flag. More... | |
INLINE void | PMU_VDDC_OL_Clr (void) |
Clears Overload at VDDC regulator flag. More... | |
INLINE void | PMU_VDDP_OV_Clr (void) |
Clears Overvoltage at VDDP regulator flag. More... | |
INLINE void | PMU_VDDP_OL_Clr (void) |
Clears Overload at VDDP regulator flag. More... | |
INLINE void | PMU_PMU_OT_Clr (void) |
Clears Overtemperature Status flag. More... | |
INLINE void | WAKEUP_Int_En (void) |
Enables Wakeup Interrupt. More... | |
INLINE void | WAKEUP_Int_Dis (void) |
Disables Wakeup Interrupt. More... | |
INLINE void | WAKEUP_Int_Clr (void) |
Clears Wakeup Interrupt flag. More... | |
INLINE void | PCU_CLK_Loss_Rst_En (void) |
Enables Loss of Clock Reset. More... | |
INLINE void | PCU_CLK_Loss_Rst_Dis (void) |
Disables Loss of Clock Reset. More... | |
INLINE void | PCU_CLKWDT_Rst_En (void) |
Enables Clock Watchdog Reset. More... | |
INLINE void | PCU_CLKWDT_Rst_Dis (void) |
Disables Clock Watchdog Reset. More... | |
INLINE void | PCU_CLK_Loss_SD_En (void) |
Enables System Loss of Clock Shutdown. More... | |
INLINE void | PCU_CLK_Loss_SD_Dis (void) |
Disables System Loss of Clock Shutdown. More... | |
INLINE void | PCU_SYS_OTWARN_PS_En (void) |
Enables System Overtemperature Warning Power Switches Shutdown. More... | |
INLINE void | PCU_SYS_OTWARN_PS_Dis (void) |
Disables System Overtemperature Warning Power Switches Shutdown. More... | |
INLINE void | PCU_SYS_VS_OV_SLM_En (void) |
Enables VS Overvoltage Shutdown for peripherals. More... | |
INLINE void | PCU_SYS_VS_OV_SLM_Dis (void) |
Disables VS Overvoltage Shutdown for peripherals. More... | |
INLINE void | PCU_SYS_VS_UV_SLM_En (void) |
Enables VS Undervoltage Shutdown for peripherals. More... | |
INLINE void | PCU_SYS_VS_UV_SLM_Dis (void) |
Disables VS Undervoltage Shutdown for peripherals. More... | |
INLINE void | PCU_LIN_VS_UV_SD_En (void) |
Enables LIN Module VS Undervoltage Transmitter Shutdown. More... | |
INLINE void | PCU_LIN_VS_UV_SD_Dis (void) |
Disables LIN Module VS Undervoltage Transmitter Shutdown. More... | |
INLINE void | PCU_FAIL_PS_En (void) |
Enables LIN Tx and HS Switch off. More... | |
INLINE void | PCU_FAIL_PS_Dis (void) |
Disables LIN Tx and HS Switch off. More... | |
INLINE void | PCU_CLKWDT_SD_En (void) |
Enables Power Modules Clock Watchdog Shutdown. More... | |
INLINE void | PCU_CLKWDT_SD_Dis (void) |
Disables Power Modules Clock Watchdog Shutdown. More... | |
INLINE uint16 | PMU_Get_Reset_Status (void) |
Reads out the Reset Status register. More... | |
INLINE void | PMU_Clear_Reset_Status (void) |
Clears the Reset Status register. More... | |
INLINE uint8 | PMU_VDDEXT_Off (void) |
Switches VDDEXT off and reads the stability Status of VDDEXT. More... | |
INLINE void | PMU_VDDEXT_Error_Clear (uint16 ErrorFlagMask) |
Clears VDDEXT Error Flags. More... | |
INLINE void | PMU_VDDEXT_Set (uint16 FlagMask) |
Sets the given bits in the PMU->VDDEXT_CTRL register. More... | |
#define PMU_RESET_MASK (0x7FFu) |
PMU Reset Status Flag Mask.
#define PMU_RESET_STS_ClkWDT (0x0010u) |
PMU Reset Status Flag Mask, Clock Watchdog (CLKWDT) Reset Flag.
#define PMU_RESET_STS_IntWDT (0x0100u) |
PMU Reset Status Flag Mask, Internal Watchdog Reset Flag.
#define PMU_RESET_STS_LOCKUP (0x0400u) |
PMU Reset Status Flag Mask, Lockup-Reset Flag.
#define PMU_RESET_STS_LPR (0x0008u) |
PMU Reset Status Flag Mask, Low Priority Resets.
#define PMU_RESET_STS_PIN (0x0040u) |
PMU Reset Status Flag Mask, PIN-Reset Flag.
#define PMU_RESET_STS_PMU_SOFT (0x0200u) |
PMU Reset Status Flag Mask, Soft-Reset Flag.
#define PMU_RESET_STS_POR (0x0080u) |
PMU Reset Status Flag Mask, Power-On Reset Flag.
#define PMU_RESET_STS_SLEEP (0x0004u) |
PMU Reset Status Flag Mask, Flag which indicates a reset caused by Sleep-Exit.
#define PMU_RESET_STS_SYS_FAIL (0x0001u) |
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 (0x0002u) |
PMU Reset Status Flag Mask, Flag which indicates a reset caused by Stop-Exit.
#define PMU_RESET_STS_WDT1 (0x0020u) |
PMU Reset Status Flag Mask, External Watchdog (WDT1) Reset Flag.
#define PMU_VDDEXT_CYC_EN (0x0002u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply for Cyclic Sense Enable.
#define PMU_VDDEXT_ENABLE (0x0001u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Enable.
#define PMU_VDDEXT_IE (0x0004u) |
PMU VDDEXT Status Flag Mask, Enabling of VDDEXT Supply status information as interrupt source.
#define PMU_VDDEXT_OT_ISC (0x0800u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overtemperature Interrupt Status clear.
#define PMU_VDDEXT_OT_SC (0x2000u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overtemperature Status clear.
#define PMU_VDDEXT_OVERTEMP (0x0040u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overtemperature.
#define PMU_VDDEXT_OVERTEMPIN (0x0008u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply OverTemperature Interrupt Status.
#define PMU_VDDEXT_OVERTEMPST (0x0020u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Overtemperature Status.
#define PMU_VDDEXT_STABLE (0x0080u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Stable.
#define PMU_VDDEXT_UNDERVOLT (0x0010u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Undervoltage Interrupt Status.
#define PMU_VDDEXT_UV_ISC (0x1000u) |
PMU VDDEXT Status Flag Mask, VDDEXT Supply Undervoltage Interrupt Status clear.
INLINE void PCU_CLK_Loss_Rst_Dis | ( | void | ) |
Disables Loss of Clock Reset.
Example
This example disables Loss of Clock Reset.
INLINE void PCU_CLK_Loss_Rst_En | ( | void | ) |
Enables Loss of Clock Reset.
Example
This example enables Loss of Clock Reset.
INLINE void PCU_CLK_Loss_SD_Dis | ( | void | ) |
Disables System Loss of Clock Shutdown.
Example
This example disables System Loss of Clock Shutdown.
INLINE void PCU_CLK_Loss_SD_En | ( | void | ) |
Enables System Loss of Clock Shutdown.
Example
This example enables System Loss of Clock Shutdown.
INLINE void PCU_CLKWDT_Rst_Dis | ( | void | ) |
Disables Clock Watchdog Reset.
Example
This example disables Clock Watchdog Reset.
INLINE void PCU_CLKWDT_Rst_En | ( | void | ) |
Enables Clock Watchdog Reset.
Example
This example enables Clock Watchdog Reset.
INLINE void PCU_CLKWDT_SD_Dis | ( | void | ) |
Disables Power Modules Clock Watchdog Shutdown.
Example
This example disables Power Modules Clock Watchdog Shutdown.
INLINE void PCU_CLKWDT_SD_En | ( | void | ) |
Enables Power Modules Clock Watchdog Shutdown.
Example
This example enables Power Modules Clock Watchdog Shutdown.
INLINE void PCU_FAIL_PS_Dis | ( | void | ) |
Disables LIN Tx and HS Switch off.
Example
This example disables LIN Tx and HS Switch off.
INLINE void PCU_FAIL_PS_En | ( | void | ) |
Enables LIN Tx and HS Switch off.
Example
This example enables LIN Tx and HS Switch off.
INLINE void PCU_LIN_VS_UV_SD_Dis | ( | void | ) |
Disables LIN Module VS Undervoltage Transmitter Shutdown.
Example
This example disables LIN Module VS Undervoltage Transmitter Shutdown.
INLINE void PCU_LIN_VS_UV_SD_En | ( | void | ) |
Enables LIN Module VS Undervoltage Transmitter Shutdown.
Example
This example enables LIN Module VS Undervoltage Transmitter Shutdown.
INLINE void PCU_SYS_OTWARN_PS_Dis | ( | void | ) |
Disables System Overtemperature Warning Power Switches Shutdown.
Example
This example disables System Overtemperature Warning Power Switches Shutdown.
INLINE void PCU_SYS_OTWARN_PS_En | ( | void | ) |
Enables System Overtemperature Warning Power Switches Shutdown.
Example
This example enables System Overtemperature Warning Power Switches Shutdown.
INLINE void PCU_SYS_VS_OV_SLM_Dis | ( | void | ) |
Disables VS Overvoltage Shutdown for peripherals.
Example
This example disables VS Overvoltage Shutdown for peripherals.
INLINE void PCU_SYS_VS_OV_SLM_En | ( | void | ) |
Enables VS Overvoltage Shutdown for peripherals.
Example
This example enables VS Overvoltage Shutdown for peripherals.
INLINE void PCU_SYS_VS_UV_SLM_Dis | ( | void | ) |
Disables VS Undervoltage Shutdown for peripherals.
Example
This example disables VS Undervoltage Shutdown for peripherals.
INLINE void PCU_SYS_VS_UV_SLM_En | ( | void | ) |
Enables VS Undervoltage Shutdown for peripherals.
Example
This example enables VS Undervoltage Shutdown for peripherals.
INLINE void PMU_Clear_Reset_Status | ( | void | ) |
Clears the Reset Status register.
Example
This example checks and clears Reset Status.
Reads out the Reset Status register.
Example
This example checks and clears Reset Status.
void PMU_Init | ( | void | ) |
Initializes the PMU module.
INLINE void PMU_OT_Int_Dis | ( | void | ) |
Disables PMU Overtemperature Interrupt.
Example
This example treats the PMU Overtemperature Interrupt
INLINE void PMU_OT_Int_En | ( | void | ) |
Enables PMU Overtemperature Interrupt.
Example
This example treats the PMU Overtemperature Interrupt
INLINE void PMU_PMU_OT_Clr | ( | void | ) |
Clears Overtemperature Status flag.
Example
This example treats the PMU Overtemperature interrupt.
INLINE void PMU_VDDC_Int_Dis | ( | void | ) |
Disables of VDDC status information as interrupt source.
Example
This example treats the Overvoltage at VDDC regulator interrupt.
INLINE void PMU_VDDC_Int_En | ( | void | ) |
Enables of VDDC status information as interrupt source.
Example
This example treats the Overvoltage at VDDC regulator interrupt.
INLINE void PMU_VDDC_OL_Clr | ( | void | ) |
Clears Overload at VDDC regulator flag.
Example
This example treats the Overload at VDDC regulator interrupt.
INLINE void PMU_VDDC_OV_Clr | ( | void | ) |
Clears Overvoltage at VDDC regulator flag.
Example
This example treats the Overvoltage at VDDC regulator interrupt.
Clears VDDEXT Error Flags.
ErrorFlagMask | VDDEXT Error Flags Mask |
Example
This example clears VDDEXT Supply Undervoltage Interrupt flag.
INLINE void PMU_VDDEXT_Int_Dis | ( | void | ) |
Disables of VDDEXT Supply status information as interrupt source.
Example
This example treats the VDDEXT Supply OverTemperature interrupt.
INLINE void PMU_VDDEXT_Int_En | ( | void | ) |
Enables of VDDEXT Supply status information as interrupt source.
Example
This example treats the VDDEXT Supply OverTemperature interrupt.
Switches VDDEXT off and reads the stability Status of VDDEXT.
0 | VDDEXT not in stable condition |
1 | VDDEXT in stable condition |
Example
This example switches VDDEXT off and waits until VDDEXT is in stable condition.
bool PMU_VDDEXT_On | ( | void | ) |
Turns VDDEXT on.
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.
INLINE void PMU_VDDEXT_OT_Clr | ( | void | ) |
Clears VDDEXT Supply Overvoltage Status.
Example
This example clears the VDDEXT Supply Overvoltage Status.
INLINE void PMU_VDDEXT_OT_Int_Clr | ( | void | ) |
Clears VDDEXT Supply OverTemperature interrupt flag.
Example
This example treats the VDDEXT Supply OverTemperature interrupt.
Sets 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_UV_Int_Clr | ( | void | ) |
Clears VDDEXT Supply Undervoltage interrupt flag.
Example
This example treats the VDDEXT Supply Undervoltage interrupt.
INLINE void PMU_VDDP_Int_Dis | ( | void | ) |
Disables of VDDP status information as interrupt source.
Example
This example treats the Overvoltage at VDDP regulator interrupt.
INLINE void PMU_VDDP_Int_En | ( | void | ) |
Enables of VDDP status information as interrupt source.
Example
This example treats the Overvoltage at VDDP regulator interrupt.
INLINE void PMU_VDDP_OL_Clr | ( | void | ) |
Clears Overload at VDDP regulator flag.
Example
This example treats the Overload at VDDP regulator interrupt.
INLINE void PMU_VDDP_OV_Clr | ( | void | ) |
Clears Overvoltage at VDDP regulator flag.
Example
This example treats the Overvoltage at VDDP regulator interrupt.
INLINE void WAKEUP_Int_Clr | ( | void | ) |
Clears Wakeup Interrupt flag.
Example
This example treats the Wakeup Interrupt.
INLINE void WAKEUP_Int_Dis | ( | void | ) |
Disables Wakeup Interrupt.
Example
This example treats the Wakeup Interrupt.
INLINE void WAKEUP_Int_En | ( | void | ) |
Enables Wakeup Interrupt.
Example
This example treats the Wakeup Interrupt.