* @author Jan Hauer <hauer@tkn.tu-berlin.de>
* ========================================================================
*/
-
+
/**
* The contention free period (CFP) in beacon mode, a.k.a. GTS, is not yet
* implemented - this is only an empty placeholder. In contrast to the CAP
interface ResourceTransferred as TokenTransferred;
interface ResourceTransfer as TokenToBeaconTransmit;
interface ResourceRequested as TokenRequested;
- interface GetNow<bool> as IsTokenRequested;
- interface GetNow<bool> as IsTrackingBeacons;
- interface GetNow<uint32_t> as CfpEnd;
- interface GetNow<ieee154_reftime_t*> as CapStartRefTime;
- interface GetNow<uint8_t*> as GtsField;
- interface GetNow<uint32_t> as SfSlotDuration;
- interface GetNow<uint8_t> as FinalCapSlot;
interface Alarm<TSymbolIEEE802154,uint32_t> as CfpSlotAlarm;
interface Alarm<TSymbolIEEE802154,uint32_t> as CfpEndAlarm;
+ interface SuperframeStructure as OutgoingSF;
interface RadioTx;
interface RadioRx;
interface RadioOff;
// the CFP has started, this component now owns the token -
// because GTS is not implemented we pass it back to the
// BeaconTransmitP component
- // Note: this component must not use the Resource
- // interface to release the token!
call TokenToBeaconTransmit.transfer();
}
return 1;
}
- async event void RadioTx.loadDone(){}
- async event void RadioTx.transmitDone(ieee154_txframe_t *frame,
- ieee154_reftime_t *referenceTime, bool ackPendingFlag, error_t error){}
+ async event void RadioTx.transmitDone(ieee154_txframe_t *frame, const ieee154_timestamp_t *timestamp, error_t result){}
- async event void RadioRx.prepareDone(){}
- event message_t* RadioRx.received(message_t *frame, ieee154_reftime_t *timestamp){return frame;}
+ async event void RadioRx.enableRxDone(){}
+ event message_t* RadioRx.received(message_t *frame, const ieee154_timestamp_t *timestamp){return frame;}
async event void TokenRequested.requested()
{