[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420 CC2420ActiveMessageP.nc, 1.5, 1.6

Phil Levis scipio at users.sourceforge.net
Wed Jun 20 16:49:04 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv21302/chips/cc2420

Modified Files:
	CC2420ActiveMessageP.nc 
Log Message:
Added AM group.


Index: CC2420ActiveMessageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** CC2420ActiveMessageP.nc	12 Apr 2007 17:11:11 -0000	1.5
--- CC2420ActiveMessageP.nc	20 Jun 2007 23:49:02 -0000	1.6
***************
*** 150,153 ****
--- 150,167 ----
    }
  
+   command void AMPacket.setGroup(message_t* msg, am_group_t group) {
+     cc2420_header_t* header = call CC2420Packet.getHeader(msg);
+     header->destpan = group;
+   }
+ 
+   command am_group_t AMPacket.group(message_t* msg) {
+     cc2420_header_t* header = call CC2420Packet.getHeader(msg);
+     return header->destpan;
+   }
+ 
+   command am_group_t AMPacket.localGroup() {
+     return TOS_AM_GROUP;
+   }
+   
    default event message_t* Receive.receive[am_id_t id](message_t* msg, void* payload, uint8_t len) {
      return msg;



More information about the Tinyos-2-commits mailing list