]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/mac/tkn154/dummies/NoBeaconSynchronizeP.nc
Fixed a bug with the resource transfer
[tinyos-2.x.git] / tos / lib / mac / tkn154 / dummies / NoBeaconSynchronizeP.nc
index 418c0a9d890c0d59113a49407c90979a953ee2cd..5d49ff360d423d69574401bd2459f46a5c63de67 100644 (file)
@@ -44,7 +44,7 @@ module NoBeaconSynchronizeP
     interface MLME_SYNC;
     interface MLME_BEACON_NOTIFY;
     interface MLME_SYNC_LOSS;
-    interface Get<bool> as IsTrackingBeacons;
+    interface GetNow<bool> as IsTrackingBeacons;
     interface Get<uint32_t> as GetLastBeaconRxTime;
     interface GetNow<uint32_t> as CapStart;
     interface GetNow<ieee154_reftime_t*> as CapStartRefTime; 
@@ -66,14 +66,16 @@ module NoBeaconSynchronizeP
     interface MLME_GET;
     interface MLME_SET;
     interface FrameUtility;
+    interface Notify<bool> as FindBeacon;
     interface IEEE154BeaconFrame as BeaconFrame;
     interface Alarm<TSymbolIEEE802154,uint32_t> as TrackAlarm;
     interface RadioRx as BeaconRx;
     interface RadioOff;
-    interface Get<bool> as IsBeaconEnabledPAN;
+    interface GetNow<bool> as IsBeaconEnabledPAN;
     interface DataRequest;
     interface FrameRx as CoordRealignmentRx;
     interface Resource as Token;
+    interface GetNow<bool> as IsTokenRequested;
     interface ResourceTransfer as TokenToCap;
     interface ResourceTransferred as TokenTransferred;
     interface GetNow<bool> as IsSendingBeacons;
@@ -109,7 +111,7 @@ implementation
 
   async event void RadioOff.offDone() {}
 
-  command bool IsTrackingBeacons.get(){ return FALSE;}
+  async command bool IsTrackingBeacons.getNow(){ return FALSE;}
   command uint32_t GetLastBeaconRxTime.get(){ return 0;}
   async command uint8_t* GtsField.getNow() { return 0; }
   async command uint32_t SfSlotDuration.getNow() { return 0; }
@@ -128,4 +130,5 @@ implementation
   async command uint8_t NumGtsSlots.getNow() { return 0; }
   async command bool IsRxBroadcastPending.getNow() { return FALSE; }
   event message_t* CoordRealignmentRx.received(message_t* frame) {return frame;}
+  event void FindBeacon.notify( bool val ){}
 }