Interface: moteiv.tos.platform.msp430.MSP430Interrupt

interface MSP430Interrupt

Interface for directly controlling interrupts on the MSP430 microcontroller.

Author:
Joe Polastre, Moteiv Corporation <info@moteiv.com>

Commands
command void clear() Clears the MSP430 Interrupt Pending Flag for a particular port
command void disable() Disables MSP430 hardware interrupt on a particular port
command void edge(bool low_to_high) Sets whether the edge should be high to low or low to high.
command void enable() Enables MSP430 hardware interrupt on a particular port
command bool getValue() Gets the current value of the input voltage of a port
command void makeInput() Set the particular port to digital input.

Events
event void fired() Signalled when an interrupt occurs on a port

Commands - Details

clear

command void clear()

Clears the MSP430 Interrupt Pending Flag for a particular port

disable

command void disable()

Disables MSP430 hardware interrupt on a particular port

edge

command void edge(bool low_to_high)

Sets whether the edge should be high to low or low to high.

Parameters:
TRUE - if the interrupt should be triggered on a low to high edge transition, false for interrupts on a high to low transition

enable

command void enable()

Enables MSP430 hardware interrupt on a particular port

getValue

command bool getValue()

Gets the current value of the input voltage of a port

Returns:
TRUE if the pin is set high, FALSE if it is set low

makeInput

command void makeInput()

Set the particular port to digital input. This should be exactly the same as MSP430GeneralIO.makeInput.

Events - Details

fired

event void fired()

Signalled when an interrupt occurs on a port