Interface: tos.chips.cc2420.interfaces.PowerCycle

interface PowerCycle

Manage the CC2420's duty cycle and power management

Author:
David Moss

Commands
command uint16_t getSleepInterval()
command void setSleepInterval(uint16_t sleepIntervalMs) Set the sleep interval, in binary milliseconds

Events
event void detected()

Commands - Details

getSleepInterval

command uint16_t getSleepInterval()

Returns:
the sleep interval in [ms]

setSleepInterval

command void setSleepInterval(uint16_t sleepIntervalMs)

Set the sleep interval, in binary milliseconds

Parameters:
sleepIntervalMs - the sleep interval in [ms]

Events - Details

detected

event void detected()

Deprecated:
Should be removed in the future when the PowerCycle component does packet-level detects and is in full control of radio power.