Interface: tos.lib.CC2420Radio.HPLCC2420Interrupt

interface HPLCC2420Interrupt

Author:
Joe Polastre

Commands
command result_t disable() Diables an edge interrupt or capture interrupt
command result_t startWait(bool low_to_high) Enable an edge based interrupt

Events
event result_t fired() Fired when an edge interrupt occurs.

Commands - Details

disable

command result_t disable()

Diables an edge interrupt or capture interrupt

Returns:
SUCCESS if the interrupt has been disabled

startWait

command result_t startWait(bool low_to_high)

Enable an edge based interrupt

Parameters:
low_to_high - TRUE if the edge interrupt should occur on a low to high transition, FALSE for high to low.
Returns:
SUCCESS if the interrupt has been enabled

Events - Details

fired

event result_t fired()

Fired when an edge interrupt occurs.

Returns:
SUCCESS to keep the interrupt enabled (equivalent to calling startWait again), FAIL to disable the interrupt