]> 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 d9665af2e717250de415cbf84eb502edddddd90b..d5ba7b8ebb989410c97f9a929a15ab6677eef04e 100755 (executable)
 
 interface ActiveMessageConfig
 {
-       /**
-        * This command is called when the message first enters the radio stack
-        * via the Send.send command. This command should return TRUE if the
-        * packet is deffinitely not cleared, FALSE otherwise.
-        */
-       command bool forgotToClear(message_t* msg);
-
        /** Same as AMPacket.destination */
        command am_addr_t destination(message_t* msg);
 
@@ -49,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);
 }