CC23x0r2DriverLibrary
pmctl.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "../inc/hw_types.h"
#include "../inc/hw_memmap.h"
#include "../inc/hw_pmctl.h"
#include "../cmsis/cc23x0r2.h"
#include "../cmsis/core/core_cm0plus.h"
Include dependency graph for pmctl.h:

Go to the source code of this file.

Macros

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...
 

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...