7 #ifndef __MSP430WARE_PMM_H__ 8 #define __MSP430WARE_PMM_H__ 10 #include "inc/hw_memmap.h" 12 #ifdef __MSP430_HAS_PMM_FRAM__ 32 #define PMM_BOR_INTERRUPT PMMBORIFG 33 #define PMM_RST_INTERRUPT PMMRSTIFG 34 #define PMM_POR_INTERRUPT PMMPORIFG 35 #define PMM_SVSH_INTERRUPT SVSHIFG 36 #define PMM_LPM5_INTERRUPT PMMLPM5IFG 37 #define PMM_ALL (0xA7) 45 #define PMM_STATICMODE (0x0) 46 #define PMM_SAMPLEMODE BGMODE 54 #define PMM_REFBG_INACTIVE (0x0) 55 #define PMM_REFBG_ACTIVE REFBGACT 63 #define PMM_REFGEN_INACTIVE (0x0) 64 #define PMM_REFGEN_ACTIVE REFGENACT 72 #define PMM_REFBG_NOTREADY (0x0) 73 #define PMM_REFBG_READY REFBGRDY 81 #define PMM_REFGEN_NOTREADY (0x0) 82 #define PMM_REFGEN_READY REFGENRDY 90 #define PMM_REFVSEL_1_5V REFVSEL_0 91 #define PMM_REFVSEL_2_0V REFVSEL_1 92 #define PMM_REFVSEL_2_5V REFVSEL_2 471 #endif // __MSP430WARE_PMM_H__ uint16_t PMM_getVariableReferenceVoltageStatus(void)
Returns the busy status of the variable reference voltage in the PMM module.
Definition: pmm.c:106
void PMM_clearInterrupt(uint16_t mask)
Clears interrupt flags for the PMM.
Definition: pmm.c:63
uint16_t PMM_isBandgapActive(void)
Returns the active status of the bandgap in the PMM module.
Definition: pmm.c:91
uint16_t PMM_getInterruptStatus(uint16_t mask)
Returns interrupt status.
Definition: pmm.c:70
uint16_t PMM_isRefGenActive(void)
Returns the active status of the reference generator in the PMM module.
Definition: pmm.c:96
void PMM_enableInternalReference(void)
Enables the internal reference output.
Definition: pmm.c:156
void PMM_disableSVSH(void)
Disables the high-side SVS circuitry.
Definition: pmm.c:28
void PMM_disableTempSensor(void)
Disables the internal temperature sensor to save power consumption.
Definition: pmm.c:111
void PMM_disableInternalReference(void)
Disables the internal reference output.
Definition: pmm.c:147
void PMM_enableTempSensor(void)
Enables the internal temperature sensor.
Definition: pmm.c:120
void PMM_enableSVSH(void)
Enables the high-side SVS circuitry.
Definition: pmm.c:21
void PMM_turnOnRegulator(void)
Makes the low-dropout voltage regulator (LDO) remain ON when going into LPM 3/4.
Definition: pmm.c:35
void PMM_setPowerMode(uint8_t mode)
Selects power supply in multi-power supply systems.
Definition: pmm.c:172
void PMM_trigBOR(void)
Calling this function will trigger a software Brown Out Rest (BOR).
Definition: pmm.c:56
uint16_t PMM_getBufferedBandgapVoltageStatus(void)
Returns the active status of the reference generator in the PMM module.
Definition: pmm.c:101
void PMM_turnOffRegulator(void)
Turns OFF the low-dropout voltage regulator (LDO) when going into LPM3/4, thus the system will enter ...
Definition: pmm.c:42
void PMM_trigPOR(void)
Calling this function will trigger a software Power On Reset (POR).
Definition: pmm.c:49
uint16_t PMM_getBandgapMode(void)
Returns the bandgap mode of the PMM module.
Definition: pmm.c:86
void PMM_unlockLPM5(void)
Unlock LPM5.
Definition: pmm.c:75
void PMM_enableExternalReference(void)
Enables the external reference output.
Definition: pmm.c:138
void PMM_disableExternalReference(void)
Disables the external reference output.
Definition: pmm.c:129
void PMM_selectVoltageReference(uint16_t refV)
Selects reference voltage level.
Definition: pmm.c:165