interface AMSend[am_id_t id];
interface Receive[am_id_t id];
interface Receive as Snoop[am_id_t id];
+ interface SendNotifier[am_id_t id];
}
uses
call AMPacket.setType(msg, id);
call AMPacket.setDestination(msg, addr);
+ signal SendNotifier.aboutToSend[id](addr, msg);
+
return call SubSend.send(msg, len);
}
return call SubSend.getPayload(msg, len);
}
+ default event void SendNotifier.aboutToSend[am_id_t id](am_addr_t addr, message_t* msg)
+ {
+ }
+
/*----------------- Receive -----------------*/
event message_t* SubReceive.receive(message_t* msg, void* payload, uint8_t len)