![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
Power manager interface for the MSP432.
============================================================================
The Power header file should be included in an application as follows:
Refer to Power.h for a complete description of APIs.
#include <stdint.h>
#include <ti/drivers/utils/List.h>
#include <ti/drivers/Power.h>
#include <pcm.h>
#include <cs.h>
Go to the source code of this file.
Data Structures | |
struct | PowerMSP432_Freqs |
Structure holding device frequencies (in Hz) More... | |
struct | PowerMSP432_ConfigV1 |
Power global configuration (MSP432-specific) More... | |
Typedefs | |
typedef struct PowerMSP432_Freqs | PowerMSP432_Freqs |
Structure holding device frequencies (in Hz) More... | |
typedef struct PowerMSP432_ConfigV1 | PowerMSP432_ConfigV1 |
Power global configuration (MSP432-specific) More... | |
Functions | |
void | PowerMSP432_initPolicy (void) |
void | PowerMSP432_sleepPolicy (void) |
void | PowerMSP432_deepSleepPolicy (void) |
void | PowerMSP432_updateFreqs (PowerMSP432_Freqs *freqs) |
void | PowerMSP432_schedulerDisable (void) |
void | PowerMSP432_schedulerRestore (void) |
unsigned int | PowerMSP432_getNumPerfLevels (void) |
void | PowerMSP432_getFreqs (unsigned int level, PowerMSP432_Freqs *freqs) |
#define PowerMSP432_RESUMETIMESLEEP 32 |
#define PowerMSP432_TOTALTIMESLEEP 40 |
#define PowerMSP432_RESUMETIMEDEEPSLEEP_0 16 |
#define PowerMSP432_TOTALTIMEDEEPSLEEP_0 40 |
#define PowerMSP432_RESUMETIMEDEEPSLEEP_1 16 |
#define PowerMSP432_TOTALTIMEDEEPSLEEP_1 40 |
#define PowerMSP432_PERIPH_ADC14 0 |
#define PowerMSP432_PERIPH_DMA 1 |
#define PowerMSP432_PERIPH_EUSCI_A0 2 |
#define PowerMSP432_PERIPH_EUSCI_A1 3 |
#define PowerMSP432_PERIPH_EUSCI_A2 4 |
#define PowerMSP432_PERIPH_EUSCI_A3 5 |
#define PowerMSP432_PERIPH_EUSCI_B0 6 |
#define PowerMSP432_PERIPH_EUSCI_B1 7 |
#define PowerMSP432_PERIPH_EUSCI_B2 8 |
#define PowerMSP432_PERIPH_EUSCI_B3 9 |
#define PowerMSP432_PERIPH_TIMER_A0 10 |
#define PowerMSP432_PERIPH_TIMER_A1 11 |
#define PowerMSP432_PERIPH_TIMER_A2 12 |
#define PowerMSP432_PERIPH_TIMER_A3 13 |
#define PowerMSP432_PERIPH_TIMER_T32 14 |
#define PowerMSP432_DISALLOW_SLEEP 0 |
#define PowerMSP432_DISALLOW_DEEPSLEEP_0 1 |
#define PowerMSP432_DISALLOW_DEEPSLEEP_1 2 |
#define PowerMSP432_DISALLOW_SHUTDOWN_0 3 |
#define PowerMSP432_DISALLOW_SHUTDOWN_1 4 |
#define PowerMSP432_DISALLOW_PERFLEVEL_0 5 |
#define PowerMSP432_DISALLOW_PERFLEVEL_1 6 |
#define PowerMSP432_DISALLOW_PERFLEVEL_2 7 |
#define PowerMSP432_DISALLOW_PERFLEVEL_3 8 |
#define PowerMSP432_DISALLOW_PERFLEVEL_4 9 |
#define PowerMSP432_DISALLOW_PERF_CHANGES 10 |
#define PowerMSP432_NUMCONSTRAINTS 11 |
#define PowerMSP432_ENTERING_SLEEP 0x1 |
#define PowerMSP432_ENTERING_DEEPSLEEP 0x2 |
#define PowerMSP432_ENTERING_SHUTDOWN 0x4 |
#define PowerMSP432_AWAKE_SLEEP 0x8 |
#define PowerMSP432_AWAKE_DEEPSLEEP 0x10 |
#define PowerMSP432_START_CHANGE_PERF_LEVEL 0x20 |
#define PowerMSP432_DONE_CHANGE_PERF_LEVEL 0x40 |
#define PowerMSP432_NUMEVENTS 7 |
#define PowerMSP432_SLEEP 0x1 |
#define PowerMSP432_DEEPSLEEP_0 0x2 |
#define PowerMSP432_DEEPSLEEP_1 0x4 |
#define PowerMSP432_SHUTDOWN_0 0x0 |
#define PowerMSP432_SHUTDOWN_1 0x1 |
#define Power_getDependencyCount | ( | resourceId | ) | 0 |
#define Power_releaseDependency | ( | resourceId | ) |
#define Power_setDependency | ( | resourceId | ) |
typedef struct PowerMSP432_Freqs PowerMSP432_Freqs |
Structure holding device frequencies (in Hz)
typedef struct PowerMSP432_ConfigV1 PowerMSP432_ConfigV1 |
Power global configuration (MSP432-specific)
void PowerMSP432_initPolicy | ( | void | ) |
void PowerMSP432_sleepPolicy | ( | void | ) |
void PowerMSP432_deepSleepPolicy | ( | void | ) |
void PowerMSP432_updateFreqs | ( | PowerMSP432_Freqs * | freqs | ) |
void PowerMSP432_schedulerDisable | ( | void | ) |
void PowerMSP432_schedulerRestore | ( | void | ) |
unsigned int PowerMSP432_getNumPerfLevels | ( | void | ) |
void PowerMSP432_getFreqs | ( | unsigned int | level, |
PowerMSP432_Freqs * | freqs | ||
) |