]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/xe1205/XE1205ActiveMessageP.nc
Added AM group.
[tinyos-2.x.git] / tos / chips / xe1205 / XE1205ActiveMessageP.nc
index 5281280c2e4d05e1f6ca939a5d3430b3ca0ffdee..09039d76ea512d23185ff166412b9d8ba4fccd84 100644 (file)
@@ -92,6 +92,20 @@ implementation {
     header->type = type;
   }
 
+  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();
   }