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()
command bool isOn()
command void reset()
command void set(size_type t)
command void start()
command void stop()
command bool test()
Events
event void fired()
Commands - Details
get
command size_type get()
- Returns:
-
the compare time value
isOn
command bool isOn()
- Returns:
-
TRUE if compare enabled, FALSE otherwise
reset
command void reset()
set
command void set(size_type t)
- Parameters:
-
t - the compare time to set
start
command void start()
stop
command void stop()
test
command bool test()
- Returns:
-
TRUE if compare triggered, FALSE otherwise
Events - Details
fired
event void fired()