]> 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 40929940da21bab688e936a58b69c54ad15cedf2..57bbee8d5f1197f67ff12a57fa9753527fd6a755 100644 (file)
@@ -44,8 +44,9 @@ 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;
@@ -62,11 +63,11 @@ implementation
 
   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_timestamp_t *timestamp) { return frame; }
+  async event void PromiscuousRx.enableRxDone(){}
 
   command error_t PromiscuousMode.stop() { return FAIL; }
 
@@ -74,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);}
 }