[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/rf2xx/util MetadataFlagC.nc, NONE, 1.1 PacketFlag.nc, NONE, 1.1 PacketData.nc, 1.1, 1.2 IEEE154Packet2.h, 1.1, NONE IEEE154Packet2.nc, 1.1, NONE IEEE154Packet2C.nc, 1.1, NONE IEEE154Packet2P.nc, 1.1, NONE

Miklos Maroti mmaroti at users.sourceforge.net
Thu Apr 2 15:10:09 PDT 2009


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/rf2xx/util
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv8351/util

Modified Files:
	PacketData.nc 
Added Files:
	MetadataFlagC.nc PacketFlag.nc 
Removed Files:
	IEEE154Packet2.h IEEE154Packet2.nc IEEE154Packet2C.nc 
	IEEE154Packet2P.nc 
Log Message:
change metadata handling, 
remove the RF2xxPacket component, move functionality to RF2xxActiveMessage,
prepare blip support (RF2xxMessageC)


--- NEW FILE: MetadataFlagC.nc ---
/*
 * Copyright (c) 2009, Vanderbilt University
 * 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 VANDERBILT UNIVERSITY 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 VANDERBILT
 * UNIVERSITY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * 
 * THE VANDERBILT UNIVERSITY 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 VANDERBILT UNIVERSITY HAS NO OBLIGATION TO
 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 *
 * Author: Miklos Maroti
 */

generic configuration MetadataFlagC()
{
	provides
	{
		interface PacketFlag;
	}
}

implementation
{
	components MetadataFlagsLayerC;

	PacketFlag = MetadataFlagsLayerC.PacketFlag[unique("PacketFlags")];
}

--- NEW FILE: PacketFlag.nc ---
/*
 * Copyright (c) 2007, Vanderbilt University
 * 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 VANDERBILT UNIVERSITY 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 VANDERBILT
 * UNIVERSITY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * 
 * THE VANDERBILT UNIVERSITY 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 VANDERBILT UNIVERSITY HAS NO OBLIGATION TO
 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 *
 * Author: Miklos Maroti
 */

interface PacketFlag
{
	/**
	 * Returns if the flag is set for this message. 
	 */
	async command bool get(message_t* msg);

	/**
	 * Sets the flag in this message to the specified value.
	 */
	async command void setValue(message_t* msg, bool value);

	/**
	 * Sets the flag in this message to TRUE
	 */
	async command void set(message_t* msg);

	/**
	 * Sets the flag in this message to FALSE
	 */
	async command void clear(message_t* msg);
}

Index: PacketData.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/rf2xx/util/PacketData.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PacketData.nc	30 Mar 2009 22:29:48 -0000	1.1
--- PacketData.nc	2 Apr 2009 22:10:07 -0000	1.2
***************
*** 28,32 ****
  	 * or metadata) with the given data type.
  	 */
! 	async command data_t* getData(message_t* msg);
  
  	/**
--- 28,32 ----
  	 * or metadata) with the given data type.
  	 */
! 	async command data_t* get(message_t* msg);
  
  	/**
***************
*** 34,37 ****
  	 * value (usually called from Packet.clear)
  	 */
! 	async event void clear(data_t* data);
  }
--- 34,37 ----
  	 * value (usually called from Packet.clear)
  	 */
! 	async event void clear(message_t* msg);
  }

--- IEEE154Packet2.h DELETED ---

--- IEEE154Packet2.nc DELETED ---

--- IEEE154Packet2C.nc DELETED ---

--- IEEE154Packet2P.nc DELETED ---



More information about the Tinyos-2-commits mailing list