Apps     Components     Interfaces     All Files     Source Tree     source: tos.platform.mica.Snooze.nc

Interface: Snooze

Snooze interface for putting a mote to sleep for a given period of time.
Author: Joe Polastre

Components providing this interface:
tos.platform.mica.SnoozeC

Components requiring this interface:
apps.TestSnooze.TestSnoozeM

Commands

Events

Commands - Details

snooze

result_t snooze(uint16_t length)

Triggers the mote to put itself in a low power sleep state for a specified amount of time.

Parameters:

length - Length of the low power sleep in units of 1/32 of a second.

Returns: SUCCESS if the mote is about to enter the sleep state

Events - Details

wakeup

result_t wakeup(void)

Event fired when a mote wakes up out of the low power sleep state.
Returns: Always return SUCCESS.