Interface: tos.interfaces.GpioCapture

interface GpioCapture

Author:
Phil Levis
David Gay Revision: $Revision: 1.11 $ Defines global error codes for error_t in TinyOS.

Commands
command error_t captureFallingEdge()
command error_t captureRisingEdge() Enable an edge based timer capture event.
command void disable() Disable further captures.

Events
event void captured(uint16_t time) Fired when an edge interrupt occurs.

Commands - Details

captureFallingEdge

command error_t captureFallingEdge()

captureRisingEdge

command error_t captureRisingEdge()

Enable an edge based timer capture event.

Returns:
Whether the timer capture has been enabled.

disable

command void disable()

Disable further captures.

Events - Details

captured

event void captured(uint16_t time)

Fired when an edge interrupt occurs.

Parameters:
val - The value of the 32kHz timer.