MSP430 DriverLib for MSP430i2xx Devices  2.91.13.01
sfr

Functions

void SFR_enableInterrupt (uint8_t interruptMask)
 Enables selected SFR interrupt sources. More...
 
void SFR_disableInterrupt (uint8_t interruptMask)
 Disables selected SFR interrupt sources. More...
 
uint8_t SFR_getInterruptStatus (uint8_t interruptFlagMask)
 Returns the status of the selected SFR interrupt flags. More...
 
void SFR_clearInterrupt (uint8_t interruptFlagMask)
 Clears the selected SFR interrupt flags. More...
 

Detailed Description

Function Documentation

§ SFR_clearInterrupt()

void SFR_clearInterrupt ( uint8_t  interruptFlagMask)

Clears the selected SFR interrupt flags.

This function clears the status of the selected SFR interrupt flags.

Parameters
interruptFlagMaskis the bit mask of interrupt flags that will be cleared. Mask value is the logical OR of any of the following:
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt, if NMI function is chosen
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt
  • SFR_WATCHDOG_INTERRUPT - Watchdog interrupt
  • SFR_EXTERNAL_RESET_INTERRUPT - External reset interrupt
  • SFR_BROWN_OUT_RESET_INTERRUPT - Brown out reset interrupt
Returns
None

§ SFR_disableInterrupt()

void SFR_disableInterrupt ( uint8_t  interruptMask)

Disables selected SFR interrupt sources.

This function disables the selected SFR interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor.

Parameters
interruptMaskis the bit mask of interrupts that will be disabled. Mask value is the logical OR of any of the following:
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt, if NMI function is chosen
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt
  • SFR_WATCHDOG_INTERRUPT - Watchdog interrupt
  • SFR_FLASH_ACCESS_VIOLATION_INTERRUPT - Flash access violation interrupt
Returns
None

§ SFR_enableInterrupt()

void SFR_enableInterrupt ( uint8_t  interruptMask)

Enables selected SFR interrupt sources.

This function enables the selected SFR interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor. Does not clear interrupt flags.

Parameters
interruptMaskis the bit mask of interrupts that will be enabled. Mask value is the logical OR of any of the following:
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt, if NMI function is chosen
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt
  • SFR_WATCHDOG_INTERRUPT - Watchdog interrupt
  • SFR_FLASH_ACCESS_VIOLATION_INTERRUPT - Flash access violation interrupt
Returns
None

§ SFR_getInterruptStatus()

uint8_t SFR_getInterruptStatus ( uint8_t  interruptFlagMask)

Returns the status of the selected SFR interrupt flags.

This function returns the status of the selected SFR interrupt flags in a bit mask format matching that passed into the interruptFlagMask parameter.

Parameters
interruptFlagMaskis the bit mask of interrupt flags that the status of should be returned. Mask value is the logical OR of any of the following:
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt, if NMI function is chosen
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt
  • SFR_WATCHDOG_INTERRUPT - Watchdog interrupt
  • SFR_EXTERNAL_RESET_INTERRUPT - External reset interrupt
  • SFR_BROWN_OUT_RESET_INTERRUPT - Brown out reset interrupt
Returns
A bit mask of the status of the selected interrupt flags.
  • SFR_NMI_PIN_INTERRUPT NMI pin interrupt, if NMI function is chosen
  • SFR_OSCILLATOR_FAULT_INTERRUPT Oscillator fault interrupt
  • SFR_WATCHDOG_INTERRUPT Watchdog interrupt
  • SFR_EXTERNAL_RESET_INTERRUPT External reset interrupt
  • SFR_BROWN_OUT_RESET_INTERRUPT Brown out reset interrupt
    indicating the status of the masked interrupts

Copyright 2020, Texas Instruments Incorporated