Data Structures | Macros | Enumerations | Functions
PowerCC26X2.h File Reference

Detailed Description

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.

Implementation

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)>
Include dependency graph for PowerCC26X2.h:
This graph shows which files directly or indirectly include this file:

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

Macro Definition Documentation

§ PowerCC26X2_RESUMETIMESTANDBY

#define PowerCC26X2_RESUMETIMESTANDBY   750

The latency to reserve for resume from STANDBY (usec).

§ PowerCC26X2_TOTALTIMESTANDBY

#define PowerCC26X2_TOTALTIMESTANDBY   1000

The total latency to reserve for entry to and exit from STANDBY (usec).

§ PowerCC26X2_WAKEDELAYSTANDBY

#define PowerCC26X2_WAKEDELAYSTANDBY   240

The initial delay when waking from STANDBY (usec).

§ PowerCC26X2_INITIALWAITRCOSC_LF

#define PowerCC26X2_INITIALWAITRCOSC_LF   1000

The initial wait time (usec) before checking if RCOSC_LF is stable.

§ PowerCC26X2_RETRYWAITRCOSC_LF

#define PowerCC26X2_RETRYWAITRCOSC_LF   1000

The retry wait time (usec) when checking to see if RCOSC_LF is stable.

§ PowerCC26X2_INITIALWAITXOSC_HF

#define PowerCC26X2_INITIALWAITXOSC_HF   50

The initial wait time (usec) before checking if XOSC_HF is stable.

§ PowerCC26X2_RETRYWAITXOSC_HF

#define PowerCC26X2_RETRYWAITXOSC_HF   50

The retry wait time (usec) when checking to see if XOSC_HF is stable.

§ PowerCC26X2_INITIALWAITXOSC_LF

#define PowerCC26X2_INITIALWAITXOSC_LF   10000

The initial wait time (usec) before checking if XOSC_LF is stable.

§ PowerCC26X2_RETRYWAITXOSC_LF

#define PowerCC26X2_RETRYWAITXOSC_LF   5000

The retry wait time (usec) when checking to see if XOSC_LF is stable.

§ PowerCC26X2_PERIPH_PKA

#define PowerCC26X2_PERIPH_PKA   PowerCC26XX_PERIPH_PKA

< Resource ID: PKA Module Resource ID: UART1

§ PowerCC26X2_PERIPH_UART1

#define PowerCC26X2_PERIPH_UART1   PowerCC26XX_PERIPH_UART1

Resource ID: SSI1

§ PowerCC26X2_PERIPH_SSI1

#define PowerCC26X2_PERIPH_SSI1   PowerCC26XX_PERIPH_SSI1

§ PowerCC26X2_PERIPH_UART2

#define PowerCC26X2_PERIPH_UART2   PowerCC26XX_PERIPH_UART2

< Resource ID: UART2 Resource ID: UART3

§ PowerCC26X2_PERIPH_UART3

#define PowerCC26X2_PERIPH_UART3   PowerCC26XX_PERIPH_UART3

Resource ID: SSI2

§ PowerCC26X2_PERIPH_SSI2

#define PowerCC26X2_PERIPH_SSI2   PowerCC26XX_PERIPH_SSI2

Resource ID: SSI3

§ PowerCC26X2_PERIPH_SSI3

#define PowerCC26X2_PERIPH_SSI3   PowerCC26XX_PERIPH_SSI3

Resource ID: I2C1

§ PowerCC26X2_PERIPH_I2C1

#define PowerCC26X2_PERIPH_I2C1   PowerCC26XX_PERIPH_I2C1

§ PowerCC26X2_HPOSC_RTC_COMPENSATION_DELTA

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

Enumeration Type Documentation

§ PowerCC26X2_ResetReason

Reasons the device has booted or rebooted.

Enumerator
PowerCC26X2_RESET_SHUTDOWN_IO 

Device woke up from shutdown due to an IO event

PowerCC26X2_RESET_TCK_NOISE 

Device woke up from noise on the JTAG TCK line

PowerCC26X2_RESET_SYSTEM 

Device reset trggered by software or watchdog timeout

PowerCC26X2_RESET_WARM_RESET 

Device woke up due to warm reset event. Usually debugger related.

PowerCC26X2_RESET_CLK 

Device reset due to clock loss

PowerCC26X2_RESET_VDDR 

Device reset due to VDDR brownout event

PowerCC26X2_RESET_VDDS 

Device reset due to VDDS brownout event

PowerCC26X2_RESET_PIN 

Device reset due to pin reset

PowerCC26X2_RESET_POR 

Device booted due to power on reset

Function Documentation

§ PowerCC26X2_enableHposcRtcCompensation()

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_getResetReason()

PowerCC26X2_ResetReason PowerCC26X2_getResetReason ( void  )

Returns the reason for the most recent reset.

Precondition
Power_init()
Postcondition
PowerCC26X2_releaseLatches()
Returns
PowerCC26X2_ResetReason

§ PowerCC26X2_releaseLatches()

static void PowerCC26X2_releaseLatches ( void  )
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.

Note
Calling this function will clear the reset reason register if it was PowerCC26X2_RESET_SHUTDOWN_IO and cause PowerCC26X2_getResetReason not to return the true reset reason.
Precondition
Power_shutdown()
PowerCC26X2_getResetReason()
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale