[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/xe1205
XE1205ActiveMessageP.nc, 1.3, 1.4
Phil Levis
scipio at users.sourceforge.net
Wed Jun 20 16:49:04 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/xe1205
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv21302/chips/xe1205
Modified Files:
XE1205ActiveMessageP.nc
Log Message:
Added AM group.
Index: XE1205ActiveMessageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/xe1205/XE1205ActiveMessageP.nc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** XE1205ActiveMessageP.nc 7 Nov 2006 19:31:16 -0000 1.3
--- XE1205ActiveMessageP.nc 20 Jun 2007 23:49:02 -0000 1.4
***************
*** 93,96 ****
--- 93,110 ----
}
+ command void AMPacket.setGroup(message_t* msg, am_group_t group) {
+ xe1205_header_t* header = getHeader(msg);
+ header->group = group;
+ }
+
+ command am_group_t AMPacket.group(message_t* msg) {
+ xe1205_header_t* header = getHeader(msg);
+ return header->group;
+ }
+
+ command am_group_t AMPacket.localGroup() {
+ return TOS_AM_GROUP;
+ }
+
command uint8_t AMSend.maxPayloadLength[am_id_t id]() {
return call Packet.maxPayloadLength();
More information about the Tinyos-2-commits
mailing list