![]() |
![]() |
|
CC23x0R5DriverLibrary
|
|
Functions | |
| __STATIC_INLINE uint32_t | PMCTLGetResetReason (void) |
| Get the reason for the system reset. More... | |
| __STATIC_INLINE void | PMCTLResetSystem (void) |
| Issue a system reset. More... | |
| __STATIC_INLINE void | PMCTLSetVoltageRegulator (uint32_t regulator) |
| Set the VDDR regulator. More... | |
| __STATIC_INLINE uint32_t | PMCTLGetVoltageRegulator (void) |
| Get the current VDDR regulator. More... | |
PMCTLSetVoltageRegulator() inputs and PMCTLGetVoltageRegulator() return values | |
| #define | PMCTL_VOLTAGE_REGULATOR_DCDC PMCTL_VDDRCTL_SELECT_DCDC |
| DCDC voltage regulator. More... | |
| #define | PMCTL_VOLTAGE_REGULATOR_GLDO PMCTL_VDDRCTL_SELECT_GLDO |
| GLDO voltage regulator. More... | |
| #define PMCTL_RESET_SHUTDOWN_IO (PMCTL_RSTSTA_SDDET | PMCTL_RSTSTA_IOWUSD) |
Device woke up from shutdown due to an IO event.
| #define PMCTL_RESET_SHUTDOWN_SWD PMCTL_RSTSTA_SDDET |
Device woke up from shutdown due to an SWD event.
| #define PMCTL_RESET_WATCHDOG (PMCTL_RSTSTA_SYSSRC_WDTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
Device reset because of a watchdog timeout.
| #define PMCTL_RESET_SYSTEM (PMCTL_RSTSTA_SYSSRC_SYSRSTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
Device reset trggered by software writing to RSTCTL.SYSRST.
| #define PMCTL_RESET_CPU (PMCTL_RSTSTA_SYSSRC_CPURSTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
Device reset triggered by CPU reset event.
| #define PMCTL_RESET_LOCKUP (PMCTL_RSTSTA_SYSSRC_LOCKUPEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
Device reset triggered by CPU lockup event.
| #define PMCTL_RESET_SWD (PMCTL_RSTSTA_SYSSRC_SWDRSTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
Device woke up due to Serial Wire Debug event.
| #define PMCTL_RESET_LFXT (PMCTL_RSTSTA_SYSSRC_LFLOSSEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
Device reset due to LFXT clock loss.
| #define PMCTL_RESET_TSD (PMCTL_RSTSTA_TSDEV | PMCTL_RSTSTA_RESETSRC_PINRESET) |
Device woke up from thermal shutdown after temperature drop.
| #define PMCTL_RESET_VDDR PMCTL_RSTSTA_RESETSRC_VDDRLOSS |
Device reset due to VDDR brownout event.
| #define PMCTL_RESET_VDDS PMCTL_RSTSTA_RESETSRC_VDDSLOSS |
Device reset due to VDDS brownout event.
| #define PMCTL_RESET_PIN PMCTL_RSTSTA_RESETSRC_PINRESET |
Device reset due to pin reset.
| #define PMCTL_RESET_POR PMCTL_RSTSTA_RESETSRC_PWRON |
Device booted due to power on reset.
| #define PMCTL_VOLTAGE_REGULATOR_DCDC PMCTL_VDDRCTL_SELECT_DCDC |
DCDC voltage regulator.
| #define PMCTL_VOLTAGE_REGULATOR_GLDO PMCTL_VDDRCTL_SELECT_GLDO |
GLDO voltage regulator.
| __STATIC_INLINE uint32_t PMCTLGetResetReason | ( | void | ) |
Get the reason for the system reset.
This function will return the reason the device reset.
References HWREG, PMCTL_BASE, and PMCTL_O_RSTSTA.
| __STATIC_INLINE void PMCTLResetSystem | ( | void | ) |
Issue a system reset.
This function issues a system reset. This will cause the device to reboot. After rebooting, PMCTLGetResetReason() will return PMCTL_RESET_SYSTEM.
References __disable_irq(), HWREG, PMCTL_BASE, PMCTL_O_RSTCTL, and PMCTL_RSTCTL_SYSRST_SET.
| __STATIC_INLINE void PMCTLSetVoltageRegulator | ( | uint32_t | regulator | ) |
Set the VDDR regulator.
This function sets the VDDR regulator to use in active, idle, and standby modes.
| regulator | The voltage regulator to switch to. |
References HWREG, PMCTL_BASE, PMCTL_O_VDDRCTL, and PMCTL_VDDRCTL_SELECT_M.
| __STATIC_INLINE uint32_t PMCTLGetVoltageRegulator | ( | void | ) |
Get the current VDDR regulator.
This function gets the VDDR regulator currently in use.
References HWREG, PMCTL_BASE, PMCTL_O_VDDRCTL, and PMCTL_VDDRCTL_SELECT_M.