Defines | Functions
pmm.h File Reference

Go to the source code of this file.

Defines

#define __MSP430_HAS_PMM__
#define PMM_CORE_LEVEL_0   PMMCOREV_0
#define PMM_CORE_LEVEL_1   PMMCOREV_1
#define PMM_CORE_LEVEL_2   PMMCOREV_2
#define PMM_CORE_LEVEL_3   PMMCOREV_3
#define PMM_SVSMLDLYIFG   SVSMLDLYIFG
#define PMM_SVMLIFG   SVMLIFG
#define PMM_SVMLVLRIFG   SVMLVLRIFG
#define PMM_SVSMHDLYIFG   SVSMHDLYIFG
#define PMM_SVMHIFG   SVMHIFG
#define PMM_SVMHVLRIFG   SVMHVLRIFG
#define PMM_PMMBORIFG   PMMBORIFG
#define PMM_PMMRSTIFG   PMMRSTIFG
#define PMM_PMMPORIFG   PMMPORIFG
#define PMM_SVSHIFG   SVSHIFG
#define PMM_SVSLIFG   SVSLIFG
#define PMM_PMMLPM5IFG   PMMLPM5IFG

Functions

void PMM_enableSvsL (unsigned int baseAddress)
void PMM_disableSvsL (unsigned int baseAddress)
void PMM_enableSvmL (unsigned int baseAddress)
void PMM_disableSvmL (unsigned int baseAddress)
void PMM_enableSvsH (unsigned int baseAddress)
void PMM_disableSvsH (unsigned int baseAddress)
void PMM_enableSvmH (unsigned int baseAddress)
void PMM_disableSvmH (unsigned int baseAddress)
void PMM_enableSvsL_SVML (unsigned int baseAddress)
void PMM_disableSvsL_SVML (unsigned int baseAddress)
void PMM_enableSvsH_SVMH (unsigned int baseAddress)
void PMM_disableSvsH_SVMH (unsigned int baseAddress)
void PMM_enableSvsLReset (unsigned int baseAddress)
void PMM_disableSvsLReset (unsigned int baseAddress)
void PMM_enableSvmLInterrupt (unsigned int baseAddress)
void PMM_disableSvmLInterrupt (unsigned int baseAddress)
void PMM_enableSvsHReset (unsigned int baseAddress)
void PMM_disableSvsHReset (unsigned int baseAddress)
void PMM_enableSvmHInterrupt (unsigned int baseAddress)
void PMM_disableSvmHInterrupt (unsigned int baseAddress)
void PMM_clearPMMIFGS (unsigned int baseAddress)
void PMM_SvsLEnabledInLPMFastWake (unsigned int baseAddress)
void PMM_SvsLEnabledInLPMSlowWake (unsigned int baseAddress)
void PMM_SvsLDisabledInLPMFastWake (unsigned int baseAddress)
void PMM_SvsLDisabledInLPMSlowWake (unsigned int baseAddress)
void PMM_SvsHEnabledInLPMNormPerf (unsigned int baseAddress)
void PMM_SvsHEnabledInLPMFullPerf (unsigned int baseAddress)
void PMM_SvsHDisabledInLPMNormPerf (unsigned int baseAddress)
void PMM_SvsHDisabledInLPMFullPerf (unsigned int baseAddress)
void PMM_SvsLOptimizedInLPMFastWake (unsigned int baseAddress)
void PMM_SvsHOptimizedInLPMFullPerf (unsigned int baseAddress)
unsigned short PMM_setVCore (unsigned int baseAddress, unsigned char level)
unsigned int PMM_getInterruptStatus (unsigned int baseAddress, unsigned int mask)

Define Documentation

#define __MSP430_HAS_PMM__
#define PMM_CORE_LEVEL_0   PMMCOREV_0

Referenced by PMM_setVCore().

#define PMM_CORE_LEVEL_1   PMMCOREV_1

Referenced by PMM_setVCore().

#define PMM_CORE_LEVEL_2   PMMCOREV_2

Referenced by PMM_setVCore().

#define PMM_CORE_LEVEL_3   PMMCOREV_3

Referenced by PMM_setVCore().

#define PMM_SVSMLDLYIFG   SVSMLDLYIFG
#define PMM_SVMLIFG   SVMLIFG
#define PMM_SVMLVLRIFG   SVMLVLRIFG
#define PMM_SVSMHDLYIFG   SVSMHDLYIFG
#define PMM_SVMHIFG   SVMHIFG
#define PMM_SVMHVLRIFG   SVMHVLRIFG
#define PMM_PMMBORIFG   PMMBORIFG
#define PMM_PMMRSTIFG   PMMRSTIFG
#define PMM_PMMPORIFG   PMMPORIFG
#define PMM_SVSHIFG   SVSHIFG
#define PMM_SVSLIFG   SVSLIFG
#define PMM_PMMLPM5IFG   PMMLPM5IFG

Function Documentation

void PMM_enableSvsL ( unsigned int  baseAddress)

Enables the low-side SVS circuitry

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMLCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_disableSvsL ( unsigned int  baseAddress)

Disables the low-side SVS circuitry

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMLCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_enableSvmL ( unsigned int  baseAddress)

Enables the low-side SVM circuitry

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMLCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_disableSvmL ( unsigned int  baseAddress)

Disables the low-side SVM circuitry

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMLCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_enableSvsH ( unsigned int  baseAddress)

Enables the high-side SVS circuitry

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMHCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_disableSvsH ( unsigned int  baseAddress)

Disables the high-side SVS circuitry

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMHCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_enableSvmH ( unsigned int  baseAddress)

Enables the high-side SVM circuitry

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMHCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_disableSvmH ( unsigned int  baseAddress)

Disables the high-side SVM circuitry

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMHCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_enableSvsL_SVML ( unsigned int  baseAddress)
void PMM_disableSvsL_SVML ( unsigned int  baseAddress)
void PMM_enableSvsH_SVMH ( unsigned int  baseAddress)
void PMM_disableSvsH_SVMH ( unsigned int  baseAddress)
void PMM_enableSvsLReset ( unsigned int  baseAddress)

Enables the POR signal generation when a low-voltage event is registered by the low-side SVS

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, PMMRIE.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_disableSvsLReset ( unsigned int  baseAddress)

Disables the POR signal generation when a low-voltage event is registered by the low-side SVS

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, PMMRIE.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_enableSvmLInterrupt ( unsigned int  baseAddress)

Enables the interrupt generation when a low-voltage event is registered by the low-side SVM

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, PMMRIE.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_disableSvmLInterrupt ( unsigned int  baseAddress)

Disables the interrupt generation when a low-voltage event is registered by the low-side SVM

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, PMMRIE.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_enableSvsHReset ( unsigned int  baseAddress)

Enables the POR signal generation when a low-voltage event is registered by the high-side SVS

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, PMMRIE.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_disableSvsHReset ( unsigned int  baseAddress)

Disables the POR signal generation when a low-voltage event is registered by the high-side SVS

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, PMMRIE.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_enableSvmHInterrupt ( unsigned int  baseAddress)

Enables the interrupt generation when a low-voltage event is registered by the high-side SVM

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, PMMRIE.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_disableSvmHInterrupt ( unsigned int  baseAddress)

Disables the interrupt generation when a low-voltage event is registered by the high-side SVM

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, PMMRIE.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_clearPMMIFGS ( unsigned int  baseAddress)

Clear all interrupt flags for the PMM

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, PMMIFG.

Returns:
NONE

References HWREGB.

void PMM_SvsLEnabledInLPMFastWake ( unsigned int  baseAddress)

Enables supervisor low side in LPM with twake-up-fast from LPM2, LPM3, and LPM4

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMLCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_SvsLEnabledInLPMSlowWake ( unsigned int  baseAddress)

Enables supervisor low side in LPM with twake-up-slow from LPM2, LPM3, and LPM4

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMLCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_SvsLDisabledInLPMFastWake ( unsigned int  baseAddress)

Disables supervisor low side in LPM with twake-up-fast from LPM2, LPM3, and LPM4

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMLCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_SvsLDisabledInLPMSlowWake ( unsigned int  baseAddress)

Disables supervisor low side in LPM with twake-up-slow from LPM2, LPM3, and LPM4

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMLCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_SvsHEnabledInLPMNormPerf ( unsigned int  baseAddress)

Enables supervisor high side in LPM with tpd = 20 Ás(1)

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMHCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_SvsHEnabledInLPMFullPerf ( unsigned int  baseAddress)

Enables supervisor high side in LPM with tpd = 2.5 Ás(1)

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMHCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_SvsHDisabledInLPMNormPerf ( unsigned int  baseAddress)

Disables supervisor high side in LPM with tpd = 20 Ás(1)

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMHCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_SvsHDisabledInLPMFullPerf ( unsigned int  baseAddress)

Disables supervisor high side in LPM with tpd = 2.5 Ás(1)

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMHCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_SvsLOptimizedInLPMFastWake ( unsigned int  baseAddress)

Optimized to provide twake-up-fast from LPM2, LPM3, and LPM4 with least power

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMLCTL.

Returns:
NONE

References HWREG, and HWREGB.

void PMM_SvsHOptimizedInLPMFullPerf ( unsigned int  baseAddress)

Optimized to provide tpd = 2.5 Ás(1) in LPM with least power

Parameters:
baseAddressis the base address of the PMM module.

Modified registers are PMMCTL0, SVSMLCTL.

Returns:
NONE

References HWREG, and HWREGB.

unsigned short PMM_setVCore ( unsigned int  baseAddress,
unsigned char  level 
)

Set Vcore to expected level

Parameters:
baseAddressis the base address of the I2C module.
levellevel to which Vcore needs to be decreased/increased Valid values are PMM_CORE_LEVEL_0 [Default Value], PMM_CORE_LEVEL_1 PMM_CORE_LEVEL_2 PMM_CORE_LEVEL_3

Modified registers are PMMCTL0, PMMRIE, PMMIFG, SVSMLCTL, SVSMHCTL.

Returns:
STATUS_SUCCESS or STATUS_FAIL

References ASSERT, HWREGB, PMM_CORE_LEVEL_0, PMM_CORE_LEVEL_1, PMM_CORE_LEVEL_2, PMM_CORE_LEVEL_3, PMM_setVCoreDown(), PMM_setVCoreUp(), and STATUS_SUCCESS.

unsigned int PMM_getInterruptStatus ( unsigned int  baseAddress,
unsigned int  mask 
)

Returns interrupt status

Parameters:
baseAddressis the base address of the I2C module.
maskis the mask for specifying the required flag Valid values are PMM_SVSMLDLYIFG PMM_SVMLIFG, PMM_SVMLVLRIFG, PMM_SVSMHDLYIFG, PMM_SVMHIFG, PMM_SVMHVLRIFG, PMM_PMMBORIFG, PMM_PMMRSTIFG, PMM_PMMPORIFG, PMM_SVSHIFG, PMM_SVSLIFG, PMM_PMMLPM5IFG
Returns:
STATUS_SUCCESS or STATUS_FAIL

References HWREG.


Copyright 2012, Texas Instruments Incorporated