CC26xx Driver Library
[pwr_ctrl] Power Controller

Functions

void PowerCtrlSourceSet (uint32_t ui32PowerConfig)
 Set (Request) the main power source. More...
 
static uint32_t PowerCtrlSourceGet (void)
 Get the main power source. More...
 
static uint32_t PowerCtrlResetSourceGet (void)
 OBSOLETE: Get the last known reset source of the system. More...
 
static void PowerCtrlIOFreezeEnable (void)
 Close the latches in the AON IOC interface and in padring. More...
 
static void PowerCtrlIOFreezeDisable (void)
 

Detailed Description

Function Documentation

static void PowerCtrlIOFreezeDisable ( void  )
inlinestatic

Open the latches in the AON IOC interface and in padring.

Use this function to unfreeze the latches that retained on the IOs driven by the device. This function should not be called before the application has reinitialized the IO configuration that will drive the IOs to the desired level.

Returns
None
See also
PowerCtrlIOFreezeEnable()

Definition at line 271 of file pwr_ctrl.h.

Here is the call graph for this function:

static void PowerCtrlIOFreezeEnable ( void  )
inlinestatic

Close the latches in the AON IOC interface and in padring.

Use this function to unfreeze the current value retained on the IOs driven by the device. This is required if it is desired to maintain the level of any IO driven when going through a shutdown/powerdown cycle.

Returns
None
See also
PowerCtrlIOFreezeDisable()

Definition at line 246 of file pwr_ctrl.h.

Here is the call graph for this function:

static uint32_t PowerCtrlResetSourceGet ( void  )
inlinestatic

OBSOLETE: Get the last known reset source of the system.

Recommend using function SysCtrlResetSourceGet() instead of this one. This function returns reset source but does not cover if waking up from shutdown. This function can be seen as a subset of function SysCtrlResetSourceGet() and will be removed in a future release.

Returns
Returns one of the known reset values. The possible reset sources are:
See also
SysCtrlResetSourceGet()

Definition at line 222 of file pwr_ctrl.h.

static uint32_t PowerCtrlSourceGet ( void  )
inlinestatic

Get the main power source.

Use this function to retrieve the current active power source.

When the System CPU is active it can never be powered by uLDO as this is too weak a power source.

Note
Using the DCDC power supply requires an external inductor.
Returns
Returns the main power source.

Definition at line 180 of file pwr_ctrl.h.

void PowerCtrlSourceSet ( uint32_t  ui32PowerConfig)

Set (Request) the main power source.

Note
The system will never allow a switch to the PWRCTRL_PWRSRC_ULDO when in active mode. This is only allowed when the system is in lower power mode where no code is executing and no peripherals are active. Assuming that there is an external capacitor available for the PWRCTRL_PWRSRC_DCDC the system can dynamically switch back and forth between the two when in active mode.
The system will automatically switch to the GLDO / DCDC when waking up from a low power mode.
Parameters
ui32PowerConfigis a bitmask indicating the target power source.
Returns
None

Definition at line 59 of file pwr_ctrl.c.

Here is the call graph for this function:

Macro Definition Documentation

#define PWRCTRL_ACTIVE   0x00000001

Definition at line 101 of file pwr_ctrl.h.

#define PWRCTRL_IOSEG2_DISABLE   0x00000100

Definition at line 114 of file pwr_ctrl.h.

#define PWRCTRL_IOSEG2_ENABLE   0x00000400

Definition at line 112 of file pwr_ctrl.h.

#define PWRCTRL_IOSEG3_DISABLE   0x00000200

Definition at line 113 of file pwr_ctrl.h.

#define PWRCTRL_IOSEG3_ENABLE   0x00000800

Definition at line 111 of file pwr_ctrl.h.

#define PWRCTRL_POWER_DOWN   0x00000004

Definition at line 103 of file pwr_ctrl.h.

#define PWRCTRL_PWRSRC_DCDC   0x00000001

Definition at line 115 of file pwr_ctrl.h.

Referenced by PowerCtrlSourceGet(), and PowerCtrlSourceSet().

#define PWRCTRL_PWRSRC_GLDO   0x00000000

Definition at line 116 of file pwr_ctrl.h.

Referenced by PowerCtrlSourceGet(), and PowerCtrlSourceSet().

#define PWRCTRL_PWRSRC_ULDO   0x00000002

Definition at line 117 of file pwr_ctrl.h.

Referenced by PowerCtrlSourceSet().

#define PWRCTRL_RST_CLK_LOSS   0x00000005

Definition at line 129 of file pwr_ctrl.h.

#define PWRCTRL_RST_PIN   0x00000001

Definition at line 125 of file pwr_ctrl.h.

#define PWRCTRL_RST_POWER_ON   0x00000000

Definition at line 124 of file pwr_ctrl.h.

#define PWRCTRL_RST_SW_PIN   0x00000006

Definition at line 130 of file pwr_ctrl.h.

#define PWRCTRL_RST_VDD_BOD   0x00000003

Definition at line 127 of file pwr_ctrl.h.

#define PWRCTRL_RST_VDDR_BOD   0x00000004

Definition at line 128 of file pwr_ctrl.h.

#define PWRCTRL_RST_VDDS_BOD   0x00000002

Definition at line 126 of file pwr_ctrl.h.

#define PWRCTRL_RST_WARM   0x00000007

Definition at line 131 of file pwr_ctrl.h.

#define PWRCTRL_SHUTDOWN   0x00000008

Definition at line 104 of file pwr_ctrl.h.

#define PWRCTRL_STANDBY   0x00000002

Definition at line 102 of file pwr_ctrl.h.