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);
/** 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);
}