]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/layers/LowPowerListeningConfig.nc
automatically request acks for non-broadcast messages in LPL mode
[tinyos-2.x.git] / tos / chips / rf2xx / layers / LowPowerListeningConfig.nc
index c0f2157ac2eca4d8d44c8d1191b361350299e191..57c99d8202d9de6713ef12779c9eba1983da7bde 100644 (file)
  * Author: Miklos Maroti
  */
 
-#include <LowPowerListeningLayer.h>
-
 interface LowPowerListeningConfig
 {
        /**
-        * Returns a pointer to the low power listening metadata fields in 
-        * the message
-        */
-       async command lpl_metadata_t* metadata(message_t* msg);
-
-       /**
-        * Clears the low power listening metadata fields in order to disable 
-        * low power listening for the message
+        * Returns TRUE if an acknowledgement should be requested
+        * for the message automatically by the LPL code (this should 
+        * normally happen for all non-broadcast messages).
         */
-       async event void clear(message_t* msg);
+       command bool needsAutoAckRequest(message_t* msg);
 
        /**
-        * Returns TRUE if an acknowledgement is requested for this message.
+        * Returns TRUE if an acknowledgement has been requested for 
+        * this message via the PacketAcknowledgements interface.
         */
-       async command bool getAckRequired(message_t* msg);
+       command bool ackRequested(message_t* msg);
 }