Interface: tos.lib.CC2420Radio.HPLCC2420Capture
interface HPLCC2420Capture
- Author:
-
Joe Polastre
Commands
command result_t disable()
command result_t enableCapture(bool low_to_high)
Events
event result_t captured(uint16_t val)
Commands - Details
disable
command result_t disable()
- Returns:
-
SUCCESS if the interrupt has been disabled
enableCapture
command result_t enableCapture(bool low_to_high)
- Parameters:
-
low_to_high
- TRUE if the edge capture should occur on
a low to high transition, FALSE for high to low.
- Returns:
-
SUCCESS if the timer capture has been enabled
Events - Details
captured
event result_t captured(uint16_t val)
- Parameters:
-
val
- the raw value of the timer captured
- Returns:
-
SUCCESS to keep the interrupt enabled, FAIL to disable
the interrupt