X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fchips%2Fcc2420%2Flpl%2FDummyLplP.nc;h=36a79ffaa9b632611b7ea19878109b891f182da6;hp=dbc6bb53932c0d15c7ce618eacb086c44ae781e4;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/chips/cc2420/lpl/DummyLplP.nc b/tos/chips/cc2420/lpl/DummyLplP.nc index dbc6bb53..36a79ffa 100644 --- a/tos/chips/cc2420/lpl/DummyLplP.nc +++ b/tos/chips/cc2420/lpl/DummyLplP.nc @@ -32,7 +32,7 @@ /** * Dummy low power listening interface used when LowPowerListening is not * compiled in with the application. - * Sleep interval is always 0, and duty cycle is always 100% + * Wakeup interval is always 0 (always on) * @author David Moss */ @@ -44,41 +44,19 @@ module DummyLplP { implementation { - command void LowPowerListening.setLocalSleepInterval(uint16_t sleepIntervalMs) { + command void LowPowerListening.setLocalWakeupInterval(uint16_t intervalMs) { } - command uint16_t LowPowerListening.getLocalSleepInterval() { + command uint16_t LowPowerListening.getLocalWakeupInterval() { return 0; } - command void LowPowerListening.setLocalDutyCycle(uint16_t dutyCycle) { + command void LowPowerListening.setRemoteWakeupInterval(message_t *msg, uint16_t intervalMs) { } - command uint16_t LowPowerListening.getLocalDutyCycle() { - return 10000; - } - - command void LowPowerListening.setRxSleepInterval(message_t *msg, uint16_t sleepIntervalMs) { - } - - command uint16_t LowPowerListening.getRxSleepInterval(message_t *msg) { + command uint16_t LowPowerListening.getRemoteWakeupInterval(message_t *msg) { return 0; } - command void LowPowerListening.setRxDutyCycle(message_t *msg, uint16_t dutyCycle) { - } - - command uint16_t LowPowerListening.getRxDutyCycle(message_t *msg) { - return 10000; - } - - command uint16_t LowPowerListening.dutyCycleToSleepInterval(uint16_t dutyCycle) { - return 0; - } - - command uint16_t LowPowerListening.sleepIntervalToDutyCycle(uint16_t sleepInterval) { - return 10000; - } - }