[Tinyos-2-commits]
CVS: tinyos-2.x/apps/tests/TestRadioPM/lib/radioPM/interfaces
DutyCycleTimes.nc, NONE, 1.1.2.1 LowPowerListening.nc, NONE,
1.1.2.1 RadioDutyCycling.nc, NONE, 1.1.2.1
Kevin Klues
klueska at users.sourceforge.net
Mon May 15 12:36:11 PDT 2006
- Previous message: [Tinyos-2-commits]
CVS: tinyos-2.x/apps/tests/TestRadioPM/lib/radioPM/components/sleepSchedulers/lpl
LowPowerListeningC.nc, NONE, 1.1.2.1 LowPowerListeningP.nc,
NONE, 1.1.2.1
- Next message: [Tinyos-2-commits]
CVS: tinyos-2.x/apps/tests/TestRadioPM/lib/radioPM/components/sleepSchedulers/sss
RadioDutyCyclingC.nc, NONE,
1.1.2.1 SimpleSynchronousSchedulerC.nc, NONE,
1.1.2.1 SimpleSynchronousSchedulerP.nc, NONE, 1.1.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/TestRadioPM/lib/radioPM/interfaces
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv9561/apps/tests/TestRadioPM/lib/radioPM/interfaces
Added Files:
Tag: tos-2-resource-pm-eval-cand
DutyCycleTimes.nc LowPowerListening.nc RadioDutyCycling.nc
Log Message:
Radio Power Management protocol architecture
--- NEW FILE: DutyCycleTimes.nc ---
/*
* "Copyright (c) 2005 Washington University in St. Louis.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL WASHINGTON UNIVERSITY IN ST. LOUIS BE LIABLE TO ANY PARTY
* FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
* OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF WASHINGTON
* UNIVERSITY IN ST. LOUIS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* WASHINGTON UNIVERSITY IN ST. LOUIS SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND WASHINGTON UNIVERSITY IN ST. LOUIS HAS NO
* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
* MODIFICATIONS."
*/
/*
* Authors: Kevin Klues
* Date last modified: $Revision: 1.1.2.1 $
*
* Duty Cycling
*/
#include "DutyCycling.h"
/**
* Duty Cycle Times control interface
*/
interface DutyCycleTimes
{
command error_t turnOnFor(DutyCycleModes onMode);
command error_t turnOffFor(DutyCycleModes offMode);
event void ready();
}
--- NEW FILE: LowPowerListening.nc ---
/* tab:4
*
*
* "Copyright (c) 2000-2002 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
*
*/
/*
* Authors: Joe Polastre
* Date last modified: $Revision: 1.1.2.1 $
*
* Low Power Listening
*/
/**
* Low Power Listening control interface
*/
interface LowPowerListening
{
/**
* Set the current Low Power Listening mode.
* Setting the LPL mode sets both the check interval and preamble length.
*
* Modes include:
* 0 = Radio full on
* 1 = 10ms check interval
* 2 = 25ms check interval
* 3 = 50ms check interval
* 4 = 100ms check interval (recommended)
* 5 = 200ms check interval
* 6 = 400ms check interval
* 7 = 800ms check interval
* 8 = 1600ms check interval
*
* @param mode the mode number
* @return SUCCESS if the mode was successfully changed
*/
async command error_t setListeningMode(uint8_t mode);
/**
* Get the current Low Power Listening mode
* @return mode number (see SetListeningMode)
*/
async command uint8_t getListeningMode();
/**
* Set the transmit mode. This allows for hybrid schemes where
* the transmit mode is different than the receive mode.
* Use SetListeningMode first, then change the mode with SetTransmitMode.
*
* @param mode mode number (see SetListeningMode)
* @return SUCCESS if the mode was successfully changed
*/
async command error_t setTransmitMode(uint8_t mode);
/**
* Get the current Low Power Listening transmit mode
* @return mode number (see SetListeningMode)
*/
async command uint8_t getTransmitMode();
/**
* Set the preamble length of outgoing packets
*
* @param bytes length of the preamble in bytes
* @return SUCCESS if the preamble length was successfully changed
*/
async command error_t setPreambleLength(uint16_t bytes);
/**
* Get the preamble length of outgoing packets
*
* @return length of the preamble in bytes
*/
async command uint16_t getPreambleLength();
/**
* Set the check interval (time between waking up and sampling
* the radio for activity in low power listening)
*
* @param ms check interval in milliseconds
* @return SUCCESS if the check interval was successfully changed
*/
async command error_t setCheckInterval(uint16_t ms);
/**
* Get the check interval currently used by low power listening
*
* @return length of the check interval in milliseconds
*/
async command uint16_t getCheckInterval();
}
--- NEW FILE: RadioDutyCycling.nc ---
/*
* "Copyright (c) 2005 Washington University in St. Louis.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL WASHINGTON UNIVERSITY IN ST. LOUIS BE LIABLE TO ANY PARTY
* FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
* OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF WASHINGTON
* UNIVERSITY IN ST. LOUIS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* WASHINGTON UNIVERSITY IN ST. LOUIS SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND WASHINGTON UNIVERSITY IN ST. LOUIS HAS NO
* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
* MODIFICATIONS."
*/
/*
* Authors: Kevin Klues
* Date last modified: $Revision: 1.1.2.1 $
*
* Duty Cycling
*/
#include "DutyCycling.h"
/**
* Duty Cycling control interface
*/
interface RadioDutyCycling
{
command error_t setModes(DutyCycleModes onMode, DutyCycleModes offMode);
command error_t setOnTimeMode(DutyCycleModes onMode);
command error_t setOffTimeMode(DutyCycleModes offMode);
event void beginOnTime();
event void beginOffTime();
}
- Previous message: [Tinyos-2-commits]
CVS: tinyos-2.x/apps/tests/TestRadioPM/lib/radioPM/components/sleepSchedulers/lpl
LowPowerListeningC.nc, NONE, 1.1.2.1 LowPowerListeningP.nc,
NONE, 1.1.2.1
- Next message: [Tinyos-2-commits]
CVS: tinyos-2.x/apps/tests/TestRadioPM/lib/radioPM/components/sleepSchedulers/sss
RadioDutyCyclingC.nc, NONE,
1.1.2.1 SimpleSynchronousSchedulerC.nc, NONE,
1.1.2.1 SimpleSynchronousSchedulerP.nc, NONE, 1.1.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list