Interface: tos.chips.atm128.pins.HplAtm128Interrupt

interface HplAtm128Interrupt

Interface to an Atmega128 external interrupt pin

Author:
Joe Polastre
Martin Turon

Commands
command void clear() Clears the ATmega128 Interrupt Pending Flag for a particular port
command void disable() Disables ATmega128 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 ATmega128 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 ATmega128 Interrupt Pending Flag for a particular port

disable

command void disable()

Disables ATmega128 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 ATmega128 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