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;
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;
event void Token.granted() { }
- async event void TokenTransferred.transferred() { call Token.release(); }
+ event void TokenTransferred.transferred() { call Token.release(); }
async event void TrackAlarm.fired() {}
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; }
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 ){}
}
interface WriteBeaconField as GtsInfoWrite;
interface WriteBeaconField as PendingAddrWrite;
interface FrameUtility;
- interface Get<bool> as IsTrackingBeacons;
+ interface GetNow<bool> as IsTrackingBeacons;
interface GetNow<uint32_t> as LastBeaconRxTime;
interface GetNow<ieee154_reftime_t*> as LastBeaconRxRefTime;
interface Ieee802154Debug as Debug;
interface FrameExtracted as FrameExtracted[uint8_t frameType];
interface FrameTxNow as BroadcastTx;
interface Notify<bool> as WasRxEnabled;
+ interface Notify<bool> as FindBeacon;
}
uses
{
interface GetNow<bool> as IsRxEnableActive;
interface GetNow<bool> as IsRxBroadcastPending;
interface Notify<bool> as RxEnableStateChange;
+ interface GetNow<bool> as IsTrackingBeacons;
interface FrameUtility;
interface RadioTx;
interface RadioRx;
return SUCCESS;
}
- async event void TokenTransferred.transferred()
+ event void TokenTransferred.transferred()
{
call TokenToCfp.transfer();
}
event void Token.granted(){}
command error_t WasRxEnabled.enable(){return FAIL;}
command error_t WasRxEnabled.disable(){return FAIL;}
+ command error_t FindBeacon.enable(){return FAIL;}
+ command error_t FindBeacon.disable(){return FAIL;}
}
return IEEE154_INVALID_HANDLE;
}
- async event void TokenTransferred.transferred()
+ event void TokenTransferred.transferred()
{
// the CFP has started, this component now owns the token -
// because GTS is not implemented we release the token
return IEEE154_INVALID_HANDLE;
}
- async event void TokenTransferred.transferred()
+ event void TokenTransferred.transferred()
{
// the CFP has started, this component now owns the token -
// because GTS is not implemented we release the token