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
451 #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:114
void PMM_clearInterrupt(uint16_t mask)
Clears interrupt flags for the PMM.
Definition: pmm.c:77
uint16_t PMM_isBandgapActive(void)
Returns the active status of the bandgap in the PMM module.
Definition: pmm.c:99
uint16_t PMM_getInterruptStatus(uint16_t mask)
Returns interrupt status.
Definition: pmm.c:84
uint16_t PMM_isRefGenActive(void)
Returns the active status of the reference generator in the PMM module.
Definition: pmm.c:104
void PMM_enableInternalReference(void)
Enables the internal reference output.
Definition: pmm.c:164
void PMM_disableSVSH(void)
Disables the high-side SVS circuitry.
Definition: pmm.c:42
void PMM_disableTempSensor(void)
Disables the internal temperature sensor to save power consumption.
Definition: pmm.c:119
void PMM_disableInternalReference(void)
Disables the internal reference output.
Definition: pmm.c:155
void PMM_enableTempSensor(void)
Enables the internal temperature sensor.
Definition: pmm.c:128
void PMM_enableSVSH(void)
Enables the high-side SVS circuitry.
Definition: pmm.c:35
void PMM_turnOnRegulator(void)
Makes the low-dropout voltage regulator (LDO) remain ON when going into LPM 3/4.
Definition: pmm.c:49
void PMM_trigBOR(void)
Calling this function will trigger a software Brown Out Rest (BOR).
Definition: pmm.c:70
uint16_t PMM_getBufferedBandgapVoltageStatus(void)
Returns the active status of the reference generator in the PMM module.
Definition: pmm.c:109
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:56
void PMM_trigPOR(void)
Calling this function will trigger a software Power On Reset (POR).
Definition: pmm.c:63
uint16_t PMM_getBandgapMode(void)
Returns the bandgap mode of the PMM module.
Definition: pmm.c:94
void PMM_unlockLPM5(void)
Unlock LPM5.
Definition: pmm.c:89
void PMM_enableExternalReference(void)
Enables the external reference output.
Definition: pmm.c:146
void PMM_disableExternalReference(void)
Disables the external reference output.
Definition: pmm.c:137
void PMM_enableLowPowerReset(void)
Enables the low power reset. SVSH does not reset device, but triggers a system NMI.
Definition: pmm.c:21
void PMM_disableLowPowerReset(void)
Disables the low power reset. SVSH resets device.
Definition: pmm.c:28