]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/layers/ActiveMessageConfig.nc
automaticaly call Packet.clear if user forgot to do so
[tinyos-2.x.git] / tos / chips / rf2xx / layers / ActiveMessageConfig.nc
index 1de4576bd668c07d83f0275b01241be20f431c29..d5ba7b8ebb989410c97f9a929a15ab6677eef04e 100755 (executable)
@@ -42,4 +42,12 @@ interface ActiveMessageConfig
 
        /** Same as AMPacket.setGroup */
        command void setGroup(message_t* msg, am_group_t grp);
+
+       /**
+        * Check if the packet is properly formatted, and if the user 
+        * forgot to call Packet.clear then format it properly.
+        * Return SUCCESS if the frame is now properly set up, 
+        * or FAIL of the send operation should be aborted.
+        */
+       command error_t checkFrame(message_t* msg);
 }