]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/mac/tkn154/dummies/NoPromiscuousModeP.nc
- bugfix: empty data frame sent in response to a datarequest (somtimes) had wrong...
[tinyos-2.x.git] / tos / lib / mac / tkn154 / dummies / NoPromiscuousModeP.nc
index 4ac6c850f39cabd1e645914c24d6a007fd8f03fe..57bbee8d5f1197f67ff12a57fa9753527fd6a755 100644 (file)
@@ -33,6 +33,8 @@
  * ========================================================================
  */
 
+ /** Empty placeholder component for PromiscuousModeP. */
+
 #include "TKN154_PHY.h"
 #include "TKN154_MAC.h"
 module NoPromiscuousModeP 
@@ -42,12 +44,12 @@ module NoPromiscuousModeP
     interface SplitControl as PromiscuousMode;
     interface Get<bool> as PromiscuousModeGet;
     interface FrameRx;
+    interface GetNow<token_requested_t> as IsRadioTokenRequested;
   } uses {
-    interface Resource as Token;
+    interface TransferableResource as RadioToken;
     interface RadioRx as PromiscuousRx;
     interface RadioOff;
     interface Set<bool> as RadioPromiscuousMode;
-    interface Ieee802154Debug as Debug;
   }
 }
 implementation
@@ -55,17 +57,17 @@ implementation
 
   command error_t Init.init() { return SUCCESS; }
 
-/* ----------------------- Promiscuous Mode ----------------------- */
+  /* ----------------------- Promiscuous Mode ----------------------- */
 
   command bool PromiscuousModeGet.get() { return FALSE; }
 
   command error_t PromiscuousMode.start() { return FAIL; }
 
-  event void Token.granted() { call Token.release(); }
+  event void RadioToken.granted() { ASSERT(0);}
 
-  async event void PromiscuousRx.prepareDone() { }
+  event message_t* PromiscuousRx.received(message_t *frame, const ieee154_timestamp_t *timestamp) { return frame; }
 
-  event message_t* PromiscuousRx.received(message_t *frame, ieee154_reftime_t *timestamp) { return frame; }
+  async event void PromiscuousRx.enableRxDone(){}
 
   command error_t PromiscuousMode.stop() { return FAIL; }
 
@@ -73,4 +75,6 @@ implementation
 
   default event void PromiscuousMode.startDone(error_t error){}
   default event void PromiscuousMode.stopDone(error_t error){}
+  async command token_requested_t IsRadioTokenRequested.getNow(){ return FALSE;}
+  async event void RadioToken.transferredFrom(uint8_t clientFrom){ASSERT(0);}
 }