]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/layers/ActiveMessageConfig.nc
reorganized packet header handling, added RF212Ieee154MessageC for BLIP
[tinyos-2.x.git] / tos / chips / rf2xx / layers / ActiveMessageConfig.nc
index e47f0e8bcc0f129514425d9349a932e969ac4824..d9665af2e717250de415cbf84eb502edddddd90b 100755 (executable)
  * Author: Miklos Maroti
  */
 
+#include <ActiveMessageLayer.h>
+
 interface ActiveMessageConfig
 {
        /**
         * This command is called when the message first enters the radio stack
-        * via the Send.send command. This should clear the packet if the user
-        * forgot to do so (or return EINVAL to be strict).
+        * via the Send.send command. This command should return TRUE if the
+        * packet is deffinitely not cleared, FALSE otherwise.
         */
-       command error_t checkPacket(message_t* msg);
+       command bool forgotToClear(message_t* msg);
+
+       /** Same as AMPacket.destination */
+       command am_addr_t destination(message_t* msg);
+
+       /** Same as AMPacket.setDestination */
+       command void setDestination(message_t* msg, am_addr_t addr);
+
+       /** Same as AMPacket.source */
+       command am_addr_t source(message_t* msg);
+
+       /** Same as AMPacket.setSource */
+       command void setSource(message_t* msg, am_addr_t addr);
+
+       /** Same as AMPacket.group */
+       command am_group_t group(message_t* msg);
+
+       /** Same as AMPacket.setGroup */
+       command void setGroup(message_t* msg, am_group_t grp);
 }