X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=tos%2Flib%2Fmac%2Ftkn154%2Fdummies%2FNoBeaconTransmitP.nc;h=673adbb1d4726919311b466807d7a36fe16a60f3;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=69b02085a778071443b6d389139480634c2308ea;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400;p=tinyos-2.x.git diff --git a/tos/lib/mac/tkn154/dummies/NoBeaconTransmitP.nc b/tos/lib/mac/tkn154/dummies/NoBeaconTransmitP.nc index 69b02085..673adbb1 100644 --- a/tos/lib/mac/tkn154/dummies/NoBeaconTransmitP.nc +++ b/tos/lib/mac/tkn154/dummies/NoBeaconTransmitP.nc @@ -33,44 +33,30 @@ * ======================================================================== */ + /** Empty placeholder component for BeaconTransmitP. */ + #include "TKN154_MAC.h" #include "TKN154_PHY.h" module NoBeaconTransmitP { provides { - interface Init; + interface Init as Reset; interface MLME_START; - interface WriteBeaconField as SuperframeSpecWrite; - interface Get as IsSendingBeacons; - interface GetNow as CapStart; - interface GetNow as CapStartRefTime; - interface GetNow as CapLen; - interface GetNow as CapEnd; - interface GetNow as CfpEnd; - interface GetNow as CfpLen; - interface GetNow as IsBLEActive; - interface GetNow as BLELen; - interface GetNow as GtsField; - interface GetNow as SfSlotDuration; - interface GetNow as BeaconInterval; - interface GetNow as FinalCapSlot; - interface GetNow as NumGtsSlots; - interface GetNow as BeaconFramePendingBit; interface IEEE154TxBeaconPayload; + interface SuperframeStructure as OutgoingSF; + interface GetNow as IsSendingBeacons; } uses { interface Notify as GtsSpecUpdated; interface Notify as PendingAddrSpecUpdated; interface Notify as PIBUpdate[uint8_t attributeID]; - interface Alarm as BeaconTxAlarm; + interface Alarm as BeaconSendAlarm; interface Timer as BeaconPayloadUpdateTimer; interface RadioOff; - interface Get as IsBeaconEnabledPAN; interface RadioTx as BeaconTx; interface MLME_GET; interface MLME_SET; - interface Resource as Token; - interface ResourceTransfer as TokenToBroadcast; + interface TransferableResource as RadioToken; interface FrameTx as RealignmentBeaconEnabledTx; interface FrameTx as RealignmentNonBeaconEnabledTx; interface FrameRx as BeaconRequestRx; @@ -78,24 +64,21 @@ module NoBeaconTransmitP interface WriteBeaconField as PendingAddrWrite; interface FrameUtility; interface GetNow as IsTrackingBeacons; - interface GetNow as LastBeaconRxTime; - interface GetNow as LastBeaconRxRefTime; - interface Ieee802154Debug as Debug; + interface SuperframeStructure as IncomingSF; interface Set as SetMacSuperframeOrder; interface Set as SetMacBeaconTxTime; interface Set as SetMacPanCoordinator; interface GetSet as GetSetRealignmentFrame; interface GetNow as IsBroadcastReady; interface TimeCalc; + interface Random; interface Leds; } } implementation { - command error_t Init.init() - { - return SUCCESS; - } + command error_t Reset.init() { return SUCCESS; } + command ieee154_status_t MLME_START.request ( uint16_t panID, uint8_t logicalChannel, @@ -112,16 +95,15 @@ implementation return IEEE154_TRANSACTION_OVERFLOW; } - event void Token.granted() { } + event void RadioToken.granted() { } - async event void RadioOff.offDone() { } + async event void RadioToken.transferredFrom(uint8_t from) { call RadioToken.transferTo(RADIO_CLIENT_BEACONSYNCHRONIZE); } - async event void BeaconTxAlarm.fired() {} + async event void RadioOff.offDone() { } - async event void BeaconTx.loadDone() {} + async event void BeaconSendAlarm.fired() {} - async event void BeaconTx.transmitDone(ieee154_txframe_t *frame, - ieee154_reftime_t *referenceTime, bool pendingFlag, error_t error) { } + async event void BeaconTx.transmitDone(ieee154_txframe_t *frame, const ieee154_timestamp_t *timestamp, error_t result){} command error_t IEEE154TxBeaconPayload.setBeaconPayload(void *beaconPayload, uint8_t length) { return ESIZE; } @@ -150,16 +132,6 @@ implementation { } - command uint8_t SuperframeSpecWrite.write(uint8_t *superframeSpecField, uint8_t maxlen) - { - return 0; - } - - command uint8_t SuperframeSpecWrite.getLength() - { - return 0; - } - event void RealignmentBeaconEnabledTx.transmitDone(ieee154_txframe_t *frame, ieee154_status_t status) { } @@ -173,43 +145,23 @@ implementation return frame; } - command bool IsSendingBeacons.get(){ return FALSE;} + async command uint32_t OutgoingSF.sfStartTime() {return 0;} - async command uint32_t CapStart.getNow() { return 0; } - async command ieee154_reftime_t* CapStartRefTime.getNow() { return NULL; } - async command uint32_t CapLen.getNow() { return 0;} - async command uint32_t CapEnd.getNow() - { - return 0; - } - async command uint32_t CfpEnd.getNow() - { - return 0; - } - async command uint32_t CfpLen.getNow() - { - return 0; - } - async command bool IsBLEActive.getNow(){ return FALSE;} - async command uint16_t BLELen.getNow(){ return 0;} - async command bool BeaconFramePendingBit.getNow(){ return FALSE;} + async command uint16_t OutgoingSF.sfSlotDuration() {return 0;} + + async command uint8_t OutgoingSF.numCapSlots() {return 0;} - async command uint8_t* GtsField.getNow() { return NULL; } - async command uint32_t SfSlotDuration.getNow() { return 0; } - async command uint32_t BeaconInterval.getNow() { return 0; } - async command uint8_t FinalCapSlot.getNow() { return 0; } - async command uint8_t NumGtsSlots.getNow() { return 0; } + async command uint8_t OutgoingSF.numGtsSlots() {return 0;} - default event void MLME_START.confirm ( - ieee154_status_t status - ){} + async command uint16_t OutgoingSF.battLifeExtDuration() {return 0;} - default event void IEEE154TxBeaconPayload.setBeaconPayloadDone(void *beaconPayload, uint8_t length){} + async command const uint8_t* OutgoingSF.gtsFields() {return NULL;} - default event void IEEE154TxBeaconPayload.modifyBeaconPayloadDone(uint8_t offset, void *buffer, uint8_t bufferLength){} + async command uint16_t OutgoingSF.guardTime() {return 0;} - default event void IEEE154TxBeaconPayload.aboutToTransmit(){} + async command const ieee154_timestamp_t* OutgoingSF.sfStartTimeRef() {return NULL;} - default event void IEEE154TxBeaconPayload.beaconTransmitted(){} + async command bool OutgoingSF.isBroadcastPending() {return FALSE;} + async command bool IsSendingBeacons.getNow() {return FALSE;} }