Macros | Functions
pcm.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <ti/devices/msp432p4xx/inc/msp.h>

Go to the source code of this file.

Macros

#define PCM_KEY   0x695A0000
 
#define PCM_AM_LDO_VCORE0   0x00
 
#define PCM_AM_LDO_VCORE1   0x01
 
#define PCM_AM_DCDC_VCORE0   0x04
 
#define PCM_AM_DCDC_VCORE1   0x05
 
#define PCM_AM_LF_VCORE0   0x08
 
#define PCM_AM_LF_VCORE1   0x09
 
#define PCM_LPM0_LDO_VCORE0   0x10
 
#define PCM_LPM0_LDO_VCORE1   0x11
 
#define PCM_LPM0_DCDC_VCORE0   0x14
 
#define PCM_LPM0_DCDC_VCORE1   0x15
 
#define PCM_LPM0_LF_VCORE0   0x18
 
#define PCM_LPM0_LF_VCORE1   0x19
 
#define PCM_LPM3   0x20
 
#define PCM_LPM4   0x21
 
#define PCM_LPM35_VCORE0   0xC0
 
#define PCM_LPM45   0xA0
 
#define PCM_VCORE0   0x00
 
#define PCM_VCORE1   0x01
 
#define PCM_VCORELPM3   0x02
 
#define PCM_LDO_MODE   0x00
 
#define PCM_DCDC_MODE   0x01
 
#define PCM_LF_MODE   0x02
 
#define PCM_SHUTDOWN_PARTIAL   PCM_LPM35_VCORE0
 
#define PCM_SHUTDOWN_COMPLETE   PCM_LPM45
 
#define PCM_DCDCERROR   PCM_IE_DCDC_ERROR_IE
 
#define PCM_AM_INVALIDTRANSITION   PCM_IE_AM_INVALID_TR_IE
 
#define PCM_SM_INVALIDCLOCK   PCM_IE_LPM_INVALID_CLK_IE
 
#define PCM_SM_INVALIDTRANSITION   PCM_IE_LPM_INVALID_TR_IE
 

Functions

bool PCM_setCoreVoltageLevel (uint_fast8_t voltageLevel)
 
uint8_t PCM_getCoreVoltageLevel (void)
 
bool PCM_setCoreVoltageLevelWithTimeout (uint_fast8_t voltageLevel, uint32_t timeOut)
 
bool PCM_setCoreVoltageLevelNonBlocking (uint_fast8_t voltageLevel)
 
bool PCM_setPowerMode (uint_fast8_t powerMode)
 
bool PCM_setPowerModeWithTimeout (uint_fast8_t powerMode, uint32_t timeOut)
 
bool PCM_setPowerModeNonBlocking (uint_fast8_t powerMode)
 
uint8_t PCM_getPowerMode (void)
 
bool PCM_setPowerState (uint_fast8_t powerState)
 
bool PCM_setPowerStateWithTimeout (uint_fast8_t powerState, uint32_t timeout)
 
uint8_t PCM_getPowerState (void)
 
bool PCM_setPowerStateNonBlocking (uint_fast8_t powerState)
 
bool PCM_shutdownDevice (uint32_t shutdownMode)
 
bool PCM_gotoLPM0 (void)
 
bool PCM_gotoLPM3 (void)
 
bool PCM_gotoLPM0InterruptSafe (void)
 
bool PCM_gotoLPM3InterruptSafe (void)
 
bool PCM_gotoLPM4 (void)
 
bool PCM_gotoLPM4InterruptSafe (void)
 
void PCM_enableRudeMode (void)
 
void PCM_disableRudeMode (void)
 
void PCM_enableInterrupt (uint32_t flags)
 
void PCM_disableInterrupt (uint32_t flags)
 
uint32_t PCM_getInterruptStatus (void)
 
uint32_t PCM_getEnabledInterruptStatus (void)
 
void PCM_clearInterruptFlag (uint32_t flags)
 
void PCM_registerInterrupt (void(*intHandler)(void))
 
void PCM_unregisterInterrupt (void)
 

Copyright 2018, Texas Instruments Incorporated