Interface: tos.chips.msp430.pins.HplMsp430Interrupt

interface HplMsp430Interrupt

Author:
Joe Polastre

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.

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.

Events - Details

fired

event void fired()

Signalled when an interrupt occurs on a port.