![]() |
![]() |
|
CC23x0r2DriverLibrary
|
|
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... | |
PMCTLGetResetReason() return values | |
| #define | PMCTL_RESET_SHUTDOWN_IO (PMCTL_RSTSTA_SDDET | PMCTL_RSTSTA_IOWUSD) |
| Device woke up from shutdown due to an IO event. More... | |
| #define | PMCTL_RESET_SHUTDOWN_SWD PMCTL_RSTSTA_SDDET |
| Device woke up from shutdown due to an SWD event. More... | |
| #define | PMCTL_RESET_WATCHDOG (PMCTL_RSTSTA_SYSSRC_WDTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
| Device reset because of a watchdog timeout. More... | |
| #define | PMCTL_RESET_SYSTEM (PMCTL_RSTSTA_SYSSRC_SYSRSTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
| Device reset triggered by software writing to RSTCTL.SYSRST. More... | |
| #define | PMCTL_RESET_CPU (PMCTL_RSTSTA_SYSSRC_CPURSTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
| Device reset triggered by CPU reset event. More... | |
| #define | PMCTL_RESET_LOCKUP (PMCTL_RSTSTA_SYSSRC_LOCKUPEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
| Device reset triggered by CPU lockup event. More... | |
| #define | PMCTL_RESET_ANALOG_FSM_TIMEOUT (PMCTL_RSTSTA_SYSSRC_AFSMEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
| Device reset triggered by Analog FSM timeout event. More... | |
| #define | PMCTL_RESET_ANALOG_ERROR (PMCTL_RSTSTA_SYSSRC_AERREV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
| Device reset triggered by Analog Error reset event. More... | |
| #define | PMCTL_RESET_DIGITAL_ERROR (PMCTL_RSTSTA_SYSSRC_DERREV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
| Device reset triggered by Digital Error reset event. More... | |
| #define | PMCTL_RESET_SWD (PMCTL_RSTSTA_SYSSRC_SWDRSTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
| Device reset triggered by Serial Wire Debug reset event. More... | |
| #define | PMCTL_RESET_LFXT (PMCTL_RSTSTA_SYSSRC_LFLOSSEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
| Device reset due to LFXT clock loss. More... | |
| #define | PMCTL_RESET_TSD (PMCTL_RSTSTA_TSDEV | PMCTL_RSTSTA_RESETSRC_PINRESET) |
| Device woke up from thermal shutdown after temperature drop. More... | |
| #define | PMCTL_RESET_VDDR PMCTL_RSTSTA_RESETSRC_VDDRLOSS |
| Device reset due to VDDR brownout event. More... | |
| #define | PMCTL_RESET_VDDS PMCTL_RSTSTA_RESETSRC_VDDSLOSS |
| Device reset due to VDDS brownout event. More... | |
| #define | PMCTL_RESET_PIN PMCTL_RSTSTA_RESETSRC_PINRESET |
| Device reset due to pin reset. More... | |
| #define | PMCTL_RESET_POR PMCTL_RSTSTA_RESETSRC_PWRON |
| Device booted due to power on reset. 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 triggered 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_ANALOG_FSM_TIMEOUT (PMCTL_RSTSTA_SYSSRC_AFSMEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
Device reset triggered by Analog FSM timeout event.
| #define PMCTL_RESET_ANALOG_ERROR (PMCTL_RSTSTA_SYSSRC_AERREV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
Device reset triggered by Analog Error reset event.
| #define PMCTL_RESET_DIGITAL_ERROR (PMCTL_RSTSTA_SYSSRC_DERREV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
Device reset triggered by Digital Error reset event.
| #define PMCTL_RESET_SWD (PMCTL_RSTSTA_SYSSRC_SWDRSTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) |
Device reset triggered by Serial Wire Debug reset 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.
| __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().
| __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. |
| __STATIC_INLINE uint32_t PMCTLGetVoltageRegulator | ( | void | ) |
Get the current VDDR regulator.
This function gets the VDDR regulator currently in use.