X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Flayers%2FActiveMessageConfig.nc;h=d9665af2e717250de415cbf84eb502edddddd90b;hb=97e9cb5f12a8fcdd7537ddd0eec19ffe364af663;hp=d3dadd427c8861de48132f766418884282926dfc;hpb=51b365b6cb1df293dac98e285ae4856c2dccba2b;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/layers/ActiveMessageConfig.nc b/tos/chips/rf2xx/layers/ActiveMessageConfig.nc index d3dadd42..d9665af2 100755 --- a/tos/chips/rf2xx/layers/ActiveMessageConfig.nc +++ b/tos/chips/rf2xx/layers/ActiveMessageConfig.nc @@ -27,15 +27,10 @@ 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); - - /** - * Returns a pointer to the ActiveMessage header field in the message - */ - command activemessage_header_t* getHeader(message_t* msg); + command bool forgotToClear(message_t* msg); /** Same as AMPacket.destination */ command am_addr_t destination(message_t* msg);