]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Add group.
authorscipio <scipio>
Thu, 21 Jun 2007 16:00:04 +0000 (16:00 +0000)
committerscipio <scipio>
Thu, 21 Jun 2007 16:00:04 +0000 (16:00 +0000)
tos/lib/serial/SerialActiveMessageP.nc

index 5344b2dc21c2a9fd27a367935edc807738a8962b..793899bf1083b060da307bb1de6050bde7c16211 100644 (file)
@@ -171,7 +171,22 @@ implementation {
   async command error_t PacketAcknowledgements.noAck( message_t* msg ) {
     return SUCCESS;
   }
-   
+  
+  command void AMPacket.setGroup(message_t* msg, am_group_t group) {
+    serial_header_t* header = getHeader(msg);
+    header->group = group;
+  }
+
+  command am_group_t AMPacket.group(message_t* msg) {
+    serial_header_t* header = getHeader(msg);
+    return header->group;
+  }
+
+  command am_group_t AMPacket.localGroup() {
+    return TOS_AM_GROUP;
+  }
+
   async command bool PacketAcknowledgements.wasAcked(message_t* msg) {
     return FALSE;
   }