Power manager interface for CC26X2.
============================================================================
The Power header file should be included in an application as follows:
Refer to Power.h for a complete description of APIs.
This header file defines the power resources, constraints, events, sleep states and transition latencies for CC26X2.
#include <ti/drivers/dpl/HwiP.h>
#include <ti/drivers/dpl/ClockP.h>
#include <ti/drivers/Power.h>
#include <ti/drivers/power/PowerCC26XX.h>
#include <ti/drivers/Temperature.h>
#include <ti/devices/DeviceFamily.h>
#include <DeviceFamily_constructPath(driverlib/sys_ctrl.h)>
Go to the source code of this file.
Data Structures | |
struct | PowerCC26X2_Config |
Global configuration structure. More... | |
struct | PowerCC26X2_ModuleState |
PowerCC26X2_ModuleState. More... | |
Macros | |
#define | PowerCC26X2_RESUMETIMESTANDBY 750 |
#define | PowerCC26X2_TOTALTIMESTANDBY 1000 |
#define | PowerCC26X2_WAKEDELAYSTANDBY 240 |
#define | PowerCC26X2_INITIALWAITRCOSC_LF 1000 |
#define | PowerCC26X2_RETRYWAITRCOSC_LF 1000 |
#define | PowerCC26X2_INITIALWAITXOSC_HF 50 |
#define | PowerCC26X2_RETRYWAITXOSC_HF 50 |
#define | PowerCC26X2_INITIALWAITXOSC_LF 10000 |
#define | PowerCC26X2_RETRYWAITXOSC_LF 5000 |
#define | PowerCC26X2_PERIPH_PKA PowerCC26XX_PERIPH_PKA |
#define | PowerCC26X2_PERIPH_UART1 PowerCC26XX_PERIPH_UART1 |
#define | PowerCC26X2_PERIPH_SSI1 PowerCC26XX_PERIPH_SSI1 |
#define | PowerCC26X2_PERIPH_UART2 PowerCC26XX_PERIPH_UART2 |
#define | PowerCC26X2_PERIPH_UART3 PowerCC26XX_PERIPH_UART3 |
#define | PowerCC26X2_PERIPH_SSI2 PowerCC26XX_PERIPH_SSI2 |
#define | PowerCC26X2_PERIPH_SSI3 PowerCC26XX_PERIPH_SSI3 |
#define | PowerCC26X2_PERIPH_I2C1 PowerCC26XX_PERIPH_I2C1 |
#define | PowerCC26X2_HPOSC_RTC_COMPENSATION_DELTA 3 |
Enumerations | |
enum | PowerCC26X2_ResetReason { PowerCC26X2_RESET_SHUTDOWN_IO = RSTSRC_WAKEUP_FROM_SHUTDOWN, PowerCC26X2_RESET_TCK_NOISE = RSTSRC_WAKEUP_FROM_TCK_NOISE, PowerCC26X2_RESET_SYSTEM = RSTSRC_SYSRESET, PowerCC26X2_RESET_WARM_RESET = RSTSRC_WARMRESET, PowerCC26X2_RESET_CLK = RSTSRC_CLK_LOSS, PowerCC26X2_RESET_VDDR = RSTSRC_VDDR_LOSS, PowerCC26X2_RESET_VDDS = RSTSRC_VDDS_LOSS, PowerCC26X2_RESET_PIN = RSTSRC_PIN_RESET, PowerCC26X2_RESET_POR = RSTSRC_PWR_ON } |
Reasons the device has booted or rebooted. More... | |
Functions | |
void | PowerCC26X2_enableHposcRtcCompensation (void) |
Enable RTC compensation when SCLK_LF is derived from HPOSC. More... | |
PowerCC26X2_ResetReason | PowerCC26X2_getResetReason (void) |
Returns the reason for the most recent reset. More... | |
static void | PowerCC26X2_releaseLatches (void) |
Unlatch all IOs. More... | |
#define PowerCC26X2_RESUMETIMESTANDBY 750 |
The latency to reserve for resume from STANDBY (usec).
#define PowerCC26X2_TOTALTIMESTANDBY 1000 |
The total latency to reserve for entry to and exit from STANDBY (usec).
#define PowerCC26X2_WAKEDELAYSTANDBY 240 |
The initial delay when waking from STANDBY (usec).
#define PowerCC26X2_INITIALWAITRCOSC_LF 1000 |
The initial wait time (usec) before checking if RCOSC_LF is stable.
#define PowerCC26X2_RETRYWAITRCOSC_LF 1000 |
The retry wait time (usec) when checking to see if RCOSC_LF is stable.
#define PowerCC26X2_INITIALWAITXOSC_HF 50 |
The initial wait time (usec) before checking if XOSC_HF is stable.
#define PowerCC26X2_RETRYWAITXOSC_HF 50 |
The retry wait time (usec) when checking to see if XOSC_HF is stable.
#define PowerCC26X2_INITIALWAITXOSC_LF 10000 |
The initial wait time (usec) before checking if XOSC_LF is stable.
#define PowerCC26X2_RETRYWAITXOSC_LF 5000 |
The retry wait time (usec) when checking to see if XOSC_LF is stable.
#define PowerCC26X2_PERIPH_PKA PowerCC26XX_PERIPH_PKA |
< Resource ID: PKA Module Resource ID: UART1
#define PowerCC26X2_PERIPH_UART1 PowerCC26XX_PERIPH_UART1 |
Resource ID: SSI1
#define PowerCC26X2_PERIPH_SSI1 PowerCC26XX_PERIPH_SSI1 |
#define PowerCC26X2_PERIPH_UART2 PowerCC26XX_PERIPH_UART2 |
< Resource ID: UART2 Resource ID: UART3
#define PowerCC26X2_PERIPH_UART3 PowerCC26XX_PERIPH_UART3 |
Resource ID: SSI2
#define PowerCC26X2_PERIPH_SSI2 PowerCC26XX_PERIPH_SSI2 |
Resource ID: SSI3
#define PowerCC26X2_PERIPH_SSI3 PowerCC26XX_PERIPH_SSI3 |
Resource ID: I2C1
#define PowerCC26X2_PERIPH_I2C1 PowerCC26XX_PERIPH_I2C1 |
#define PowerCC26X2_HPOSC_RTC_COMPENSATION_DELTA 3 |
The temperature delta in degrees C before the RTC is re-compensated when SCLK_LF is derived from SCLK_HF and SCLK_HF is supplied by HPOSC.
Reasons the device has booted or rebooted.
void PowerCC26X2_enableHposcRtcCompensation | ( | void | ) |
Enable RTC compensation when SCLK_LF is derived from HPOSC.
Enables automatic compensation for temperature based clock drift of the RTC when SCLK_LF is derived from HPOSC.
It only needs to be called once after the system boots.
This function should only be called when SCLK_LF is configured to be drived from HPOSC.
PowerCC26X2_ResetReason PowerCC26X2_getResetReason | ( | void | ) |
Returns the reason for the most recent reset.
|
inlinestatic |
Unlatch all IOs.
This function releases the latches on all frozen IOs. This function should be called after waking up from shutdown and reconfiguring the IO state so as not to cause glitches.