MSP430 DriverLib for MSP430FR5xx_6xx Devices  2.21.00.08
 All Data Structures Functions Variables Modules Pages
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...
 
void SFR_setResetPinPullResistor (uint16_t pullResistorSetup)
 Sets the pull-up/down resistor on the ~RST/NMI pin. More...
 
void SFR_setNMIEdge (uint16_t edgeDirection)
 Sets the edge direction that will assert an NMI from a signal on the ~RST/NMI pin if NMI function is active. More...
 
void SFR_setResetNMIPinFunction (uint8_t resetPinFunction)
 Sets the function of the ~RST/NMI pin. More...
 

Detailed Description

Function Documentation

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_JTAG_OUTBOX_INTERRUPT - JTAG outbox interrupt
  • SFR_JTAG_INBOX_INTERRUPT - JTAG inbox interrupt
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt, if NMI function is chosen
  • SFR_VACANT_MEMORY_ACCESS_INTERRUPT - Vacant memory access interrupt
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt
  • SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT - Watchdog interval timer interrupt
Returns
None
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_JTAG_OUTBOX_INTERRUPT - JTAG outbox interrupt
  • SFR_JTAG_INBOX_INTERRUPT - JTAG inbox interrupt
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt, if NMI function is chosen
  • SFR_VACANT_MEMORY_ACCESS_INTERRUPT - Vacant memory access interrupt
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt
  • SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT - Watchdog interval timer interrupt
Returns
None
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_JTAG_OUTBOX_INTERRUPT - JTAG outbox interrupt
  • SFR_JTAG_INBOX_INTERRUPT - JTAG inbox interrupt
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt, if NMI function is chosen
  • SFR_VACANT_MEMORY_ACCESS_INTERRUPT - Vacant memory access interrupt
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt
  • SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT - Watchdog interval timer interrupt
Returns
None
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_JTAG_OUTBOX_INTERRUPT - JTAG outbox interrupt
  • SFR_JTAG_INBOX_INTERRUPT - JTAG inbox interrupt
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt, if NMI function is chosen
  • SFR_VACANT_MEMORY_ACCESS_INTERRUPT - Vacant memory access interrupt
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt
  • SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT - Watchdog interval timer interrupt
Returns
A bit mask of the status of the selected interrupt flags. Return Logical OR of any of the following:
  • SFR_JTAG_OUTBOX_INTERRUPT JTAG outbox interrupt
  • SFR_JTAG_INBOX_INTERRUPT JTAG inbox interrupt
  • SFR_NMI_PIN_INTERRUPT NMI pin interrupt, if NMI function is chosen
  • SFR_VACANT_MEMORY_ACCESS_INTERRUPT Vacant memory access interrupt
  • SFR_OSCILLATOR_FAULT_INTERRUPT Oscillator fault interrupt
  • SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT Watchdog interval timer interrupt
    indicating the status of the masked interrupts
void SFR_setNMIEdge ( uint16_t  edgeDirection)

Sets the edge direction that will assert an NMI from a signal on the ~RST/NMI pin if NMI function is active.

This function sets the edge direction that will assert an NMI from a signal on the ~RST/NMI pin if the NMI function is active. To activate the NMI function of the ~RST/NMI use the SFR_setResetNMIPinFunction() passing SFR_RESETPINFUNC_NMI into the resetPinFunction parameter.

Parameters
edgeDirectionis the direction that the signal on the ~RST/NMI pin should go to signal an interrupt, if enabled. Valid values are:
  • SFR_NMI_RISINGEDGE [Default]
  • SFR_NMI_FALLINGEDGE
    Modified bits are SYSNMIIES of SFRRPCR register.
Returns
None
void SFR_setResetNMIPinFunction ( uint8_t  resetPinFunction)

Sets the function of the ~RST/NMI pin.

This function sets the functionality of the ~RST/NMI pin, whether in reset mode which will assert a reset if a low signal is observed on that pin, or an NMI which will assert an interrupt from an edge of the signal dependent on the setting of the edgeDirection parameter in SFR_setNMIEdge().

Parameters
resetPinFunctionis the function that the ~RST/NMI pin should take on. Valid values are:
  • SFR_RESETPINFUNC_RESET [Default]
  • SFR_RESETPINFUNC_NMI
    Modified bits are SYSNMI of SFRRPCR register.
Returns
None
void SFR_setResetPinPullResistor ( uint16_t  pullResistorSetup)

Sets the pull-up/down resistor on the ~RST/NMI pin.

This function sets the pull-up/down resistors on the ~RST/NMI pin to the settings from the pullResistorSetup parameter.

Parameters
pullResistorSetupis the selection of how the pull-up/down resistor on the ~RST/NMI pin should be setup or disabled. Valid values are:
  • SFR_RESISTORDISABLE
  • SFR_RESISTORENABLE_PULLUP [Default]
  • SFR_RESISTORENABLE_PULLDOWN
    Modified bits are SYSRSTUP and SYSRSTRE of SFRRPCR register.
Returns
None

Copyright 2015, Texas Instruments Incorporated