Global configuration structure. More...
#include <PowerCC26X2.h>
Data Fields | |
Power_PolicyInitFxn | policyInitFxn |
The Power Policy's initialization function. More... | |
Power_PolicyFxn | policyFxn |
The Power Policy function. More... | |
bool(* | calibrateFxn )(unsigned int calibrationStage) |
The function to be used for activating RC Oscillator (RCOSC) calibration. More... | |
bool | enablePolicy |
Boolean specifying if the Power Policy function is enabled. More... | |
bool | calibrateRCOSC_LF |
Boolean specifying whether the low frequency RC oscillator (RCOSC_LF) should be calibrated. More... | |
bool | calibrateRCOSC_HF |
Boolean specifying whether the high frequency RC oscillator (RCOSC_HF) should be calibrated. More... | |
void(* | enableTCXOFxn )(bool arg) |
The function to be used for enabling or disabling the TCXO. More... | |
Global configuration structure.
Power_PolicyInitFxn PowerCC26X2_Config::policyInitFxn |
The Power Policy's initialization function.
If the policy does not have an initialization function, 'NULL' should be specified.
Power_PolicyFxn PowerCC26X2_Config::policyFxn |
The Power Policy function.
When enabled, this function is invoked in the idle loop, to opportunistically select and activate sleep states.
Two reference policies are provided:
PowerCC26X2_doWFI() - a simple policy that invokes CPU wait for interrupt (WFI)
PowerCC26X2_standbyPolicy() - an agressive policy that considers constraints, time until next scheduled work, and sleep state latencies, and optionally puts the device into the STANDBY state, the IDLE state, or as a minimum, WFI.
Custom policies can be written, and specified via this function pointer.
In addition to this static selection, the Power Policy can be dynamically changed at runtime, via the Power_setPolicy() API.
bool(* PowerCC26X2_Config::calibrateFxn) (unsigned int calibrationStage) |
The function to be used for activating RC Oscillator (RCOSC) calibration.
Calibration is normally enabled, via specification of the function PowerCC26X2_calibrate(). This enables high accuracy operation, and faster high frequency crystal oscillator (XOSC_HF) startups.
To disable RCOSC calibration, the function PowerCC26X2_noCalibrate() should be specified.
bool PowerCC26X2_Config::enablePolicy |
Boolean specifying if the Power Policy function is enabled.
If 'true', the policy function will be invoked once for each pass of the idle loop.
If 'false', the policy will not be invoked.
In addition to this static setting, the power policy can be dynamically enabled and disabled at runtime, via the Power_enablePolicy() and Power_disablePolicy() functions, respectively.
bool PowerCC26X2_Config::calibrateRCOSC_LF |
Boolean specifying whether the low frequency RC oscillator (RCOSC_LF) should be calibrated.
If RCOSC calibration is enabled (above, via specification of an appropriate calibrateFxn), this Boolean specifies whether RCOSC_LF should be calibrated.
bool PowerCC26X2_Config::calibrateRCOSC_HF |
Boolean specifying whether the high frequency RC oscillator (RCOSC_HF) should be calibrated.
If RCOSC calibration is enabled (above, via specification of an appropriate calibrateFxn), this Boolean specifies whether RCOSC_HF should be calibrated.
void(* PowerCC26X2_Config::enableTCXOFxn) (bool arg) |
The function to be used for enabling or disabling the TCXO.
If TCXO is configured to be enabled in CCFG this function will enable or disable the TCXO by asserting or deasserting power to it.