MSP430 DriverLib for MSP430i2xx Devices  2.91.13.01
pmm

Functions

void PMM_setupVoltageMonitor (uint8_t voltageMonitorLevel)
 Sets up the voltage monitor. More...
 
void PMM_calibrateReference (void)
 Setup the calibration. More...
 
void PMM_setRegulatorStatus (uint8_t status)
 Set the status of the PMM regulator. More...
 
void PMM_unlockIOConfiguration (void)
 Unlocks the IO. More...
 
void PMM_enableInterrupt (uint8_t mask)
 Enables interrupts. More...
 
void PMM_disableInterrupt (uint8_t mask)
 Disables interrupts. More...
 
uint8_t PMM_getInterruptStatus (uint8_t mask)
 Returns the interrupt status. More...
 
void PMM_clearInterrupt (uint8_t mask)
 Clears the masked interrupts. More...
 

Detailed Description

Function Documentation

§ PMM_calibrateReference()

void PMM_calibrateReference ( void  )

Setup the calibration.

Modified bits of REFCAL0 register and bits of REFCAL1 register.

Returns
None

§ PMM_clearInterrupt()

void PMM_clearInterrupt ( uint8_t  mask)

Clears the masked interrupts.

Parameters
maskMask value is the logical OR of any of the following:
  • PMM_LPM45_INTERRUPT - LPM 4.5 Interrupt
Returns
None

§ PMM_disableInterrupt()

void PMM_disableInterrupt ( uint8_t  mask)

Disables interrupts.

Parameters
maskMask value is the logical OR of any of the following:
  • PMM_VMON_INTERRUPT - Voltage Monitor Interrupt
Returns
None

§ PMM_enableInterrupt()

void PMM_enableInterrupt ( uint8_t  mask)

Enables interrupts.

Parameters
maskMask value is the logical OR of any of the following:
  • PMM_VMON_INTERRUPT - Voltage Monitor Interrupt
Returns
None

§ PMM_getInterruptStatus()

uint8_t PMM_getInterruptStatus ( uint8_t  mask)

Returns the interrupt status.

Parameters
maskMask value is the logical OR of any of the following:
  • PMM_VMON_INTERRUPT - Voltage Monitor Interrupt
  • PMM_LPM45_INTERRUPT - LPM 4.5 Interrupt
Returns
Logical OR of any of the following:
  • PMM_VMON_INTERRUPT Voltage Monitor Interrupt
  • PMM_LPM45_INTERRUPT LPM 4.5 Interrupt
    indicating the status of the masked interrupts

§ PMM_setRegulatorStatus()

void PMM_setRegulatorStatus ( uint8_t  status)

Set the status of the PMM regulator.

Parameters
statusValid values are:
  • PMM_REGULATOR_ON - Turn the PMM regulator off
  • PMM_REGULATOR_OFF - Turn the PMM regulator on
    Modified bits are REGOFF of LPM45CTL register.

Modified bits of LPM45CTL register.

Returns
None

§ PMM_setupVoltageMonitor()

void PMM_setupVoltageMonitor ( uint8_t  voltageMonitorLevel)

Sets up the voltage monitor.

Parameters
voltageMonitorLevelValid values are:
  • PMM_DISABLE_VMON - Disable the voltage monitor
  • PMM_DVCC_2350MV - Compare DVCC to 2350mV
  • PMM_DVCC_2650MV - Compare DVCC to 2650mV
  • PMM_DVCC_2850MV - Compare DVCC to 2850mV
  • PMM_VMONIN_1160MV - Compare VMONIN to 1160mV
    Modified bits are VMONLVLx of VMONCTL register.

Modified bits of VMONCTL register.

Returns
None

§ PMM_unlockIOConfiguration()

void PMM_unlockIOConfiguration ( void  )

Unlocks the IO.

Modified bits are LOCKLPM45 of LPM45CTL register.

Returns
None

Copyright 2020, Texas Instruments Incorporated