Interface: tos.chips.atm128.timer.HplAtm128Compare

interface HplAtm128Compare<typedef size_type>

HPL Interface to Atmega128 compare registers.

Parameters:
size_type - Integer type of compare register
Author:
Martin Turon <mturon@xbow.com>

Commands
command size_type get() Get the compare time to fire on.
command bool isOn() Is compare interrupt on?
command void reset() Clear the compare interrupt flag.
command void set(size_type t) Set the compare time to fire on.
command void start() Enable the compare interrupt.
command void stop() Turn off comparee interrupts.
command bool test() Did compare interrupt occur?

Events
event void fired() Signalled on interrupt.

Commands - Details

get

command size_type get()

Get the compare time to fire on.

Returns:
the compare time value

isOn

command bool isOn()

Is compare interrupt on?

Returns:
TRUE if compare enabled, FALSE otherwise

reset

command void reset()

Clear the compare interrupt flag. *

set

command void set(size_type t)

Set the compare time to fire on.

Parameters:
t - the compare time to set

start

command void start()

Enable the compare interrupt. *

stop

command void stop()

Turn off comparee interrupts. *

test

command bool test()

Did compare interrupt occur?

Returns:
TRUE if compare triggered, FALSE otherwise

Events - Details

fired

event void fired()

Signalled on interrupt. *