[Tinyos-2-commits]
CVS: tinyos-2.x/apps/tests/TestRadioPM/lib/radioPM/components/abstractions/DutyCycleTimes
DutyCycleTimesC.nc, NONE, 1.1.2.1 DutyCycleTimesTable.h, NONE,
1.1.2.1 DutyCycleTimesTable.nc, NONE,
1.1.2.1 DutyCycleTimesTableC.nc, NONE, 1.1.2.1
Kevin Klues
klueska at users.sourceforge.net
Mon May 15 12:36:10 PDT 2006
- Previous message: [Tinyos-2-commits]
CVS: tinyos-2.x/apps/tests/TestRadioPM/apps/TestUPMA/GatewayNode
Makefile, NONE, 1.1.2.1 MsgCountMsg.h, NONE,
1.1.2.1 PrintMsgCountMsgs.java, NONE,
1.1.2.1 RadioPmProtocolManagerC.nc, NONE,
1.1.2.1 TestGatewayNodeAppC.nc, NONE,
1.1.2.1 TestGatewayNodeC.nc, NONE, 1.1.2.1
- Next message: [Tinyos-2-commits]
CVS: tinyos-2.x/apps/tests/TestRadioPM/apps/TestUPMA/TestDutyCycling
Makefile, NONE, 1.1.2.1 TestSendingApp0C.nc, NONE,
1.1.2.1 TestSendingApp1C.nc, NONE, 1.1.2.1 TestSendingApp2C.nc,
NONE, 1.1.2.1 TestSendingApp3C.nc, NONE,
1.1.2.1 TestSendingApp4C.nc, NONE, 1.1.2.1 TestSendingApp5C.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/components/abstractions/DutyCycleTimes
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv9561/apps/tests/TestRadioPM/lib/radioPM/components/abstractions/DutyCycleTimes
Added Files:
Tag: tos-2-resource-pm-eval-cand
DutyCycleTimesC.nc DutyCycleTimesTable.h
DutyCycleTimesTable.nc DutyCycleTimesTableC.nc
Log Message:
Radio Power Management protocol architecture
--- NEW FILE: DutyCycleTimesC.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."
*/
/**
*
* @author Kevin Klues (klueska at cs.wustl.edu)
* @version $Revision: 1.1.2.1 $
* @date $Date: 2006/05/15 19:36:08 $
*/
#include "DutyCycling.h"
#define RADIO_PM_DUTY_CYCLE_TIMES "RadioPm.DutyCycleTimes"
generic configuration DutyCycleTimesC() {
provides {
interface DutyCycleTimes;
}
}
implementation {
components RadioPmC;
DutyCycleTimes = RadioPmC.DutyCycleTimes[unique(RADIO_PM_DUTY_CYCLE_TIMES)];
}
--- NEW FILE: DutyCycleTimesTable.h ---
/*
* "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."
*/
/**
* Constants and structures for use with the Radio Duty Cycling Table.
*
* @author Kevin Klues (klueska at cs.wustl.edu)
* @version $Revision: 1.1.2.1 $
* @date $Date: 2006/05/15 19:36:08 $
*/
#ifndef DUTY_CYCLE_TIMES_TABLE_H
#define DUTY_CYCLE_TIMES_TABLE_H
enum {
DUTY_CYCLE_TIMES_NUM_COLS = 2,
DUTY_CYCLE_TIMES_ON_TIME_MODE_INDEX = 0,
DUTY_CYCLE_TIMES_OFF_TIME_MODE_INDEX = 1,
};
#endif //DUTY_CYCLE_TIMES_TABLE_H
--- NEW FILE: DutyCycleTimesTable.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."
*/
/**
*
* @author Kevin Klues (klueska at cs.wustl.edu)
* @version $Revision: 1.1.2.1 $
* @date $Date: 2006/05/15 19:36:08 $
*/
interface DutyCycleTimesTable
{
command uint8_t* getOnTimeModes();
command uint8_t* getOffTimeModes();
command void signalReady(uint8_t i);
}
--- NEW FILE: DutyCycleTimesTableC.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."
*/
/**
*
* @author Kevin Klues (klueska at cs.wustl.edu)
* @version $Revision: 1.1.2.1 $
* @date $Date: 2006/05/15 19:36:08 $
*/
module DutyCycleTimesTableC {
provides {
interface DutyCycleTimesTable;
interface DutyCycleTimes[uint8_t];
}
}
implementation {
uint8_t table[DUTY_CYCLE_TIMES_NUM_COLS][uniqueCount(RADIO_PM_DUTY_CYCLE_TIMES)];
command uint8_t* DutyCycleTimesTable.getOnTimeModes() {
return table[DUTY_CYCLE_TIMES_ON_TIME_MODE_INDEX];
}
command uint8_t* DutyCycleTimesTable.getOffTimeModes() {
return table[DUTY_CYCLE_TIMES_OFF_TIME_MODE_INDEX];
}
command error_t DutyCycleTimes.turnOnFor[uint8_t n](DutyCycleModes onTime) {
table[DUTY_CYCLE_TIMES_ON_TIME_MODE_INDEX][n] = onMode;
return SUCCESS;
}
command error_t DutyCycleTimes.turnOffFor[uint8_t n](DutyCycleModes offMode) {
table[DUTY_CYCLE_TIMES_OFF_TIME_MODE_INDEX][n] = offMode;
return SUCCESS;
}
command void DutyCycleTimesTable.signalReady(uint8_t i) {
signal DutyCycleTimes.ready[i]();
}
default event void DutyCycleTimes.ready() {
}
}
- Previous message: [Tinyos-2-commits]
CVS: tinyos-2.x/apps/tests/TestRadioPM/apps/TestUPMA/GatewayNode
Makefile, NONE, 1.1.2.1 MsgCountMsg.h, NONE,
1.1.2.1 PrintMsgCountMsgs.java, NONE,
1.1.2.1 RadioPmProtocolManagerC.nc, NONE,
1.1.2.1 TestGatewayNodeAppC.nc, NONE,
1.1.2.1 TestGatewayNodeC.nc, NONE, 1.1.2.1
- Next message: [Tinyos-2-commits]
CVS: tinyos-2.x/apps/tests/TestRadioPM/apps/TestUPMA/TestDutyCycling
Makefile, NONE, 1.1.2.1 TestSendingApp0C.nc, NONE,
1.1.2.1 TestSendingApp1C.nc, NONE, 1.1.2.1 TestSendingApp2C.nc,
NONE, 1.1.2.1 TestSendingApp3C.nc, NONE,
1.1.2.1 TestSendingApp4C.nc, NONE, 1.1.2.1 TestSendingApp5C.nc,
NONE, 1.1.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list