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