NED File src/inet/linklayer/ieee802154/Ieee802154UwbIrInterface.ned
Name | Type | Description |
---|---|---|
Ieee802154UwbIrInterface | compound module | (no description) |
Source code
// // Copyright (C) 2006 Andras Varga // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program; if not, see <http://www.gnu.org/licenses/>. // package inet.linklayer.ieee802154; import inet.queueing.contract.IPacketQueue; import inet.linklayer.acking.AckingMac; import inet.linklayer.contract.IWirelessInterface; import inet.networklayer.common.InterfaceEntry; import inet.physicallayer.contract.packetlevel.IRadio; module Ieee802154UwbIrInterface extends InterfaceEntry like IWirelessInterface { parameters: @class(InterfaceEntry); string interfaceTableModule; *.interfaceTableModule = default(absPath(interfaceTableModule)); @display("i=block/ifcard"); gates: input upperLayerIn; output upperLayerOut; input radioIn @labels(ISignal); submodules: mac: AckingMac { parameters: @display("p=250,200"); } radio: <default("Ieee802154UwbIrRadio")> like IRadio { parameters: @display("p=250,350"); } connections: upperLayerIn --> { @display("m=n"); } --> mac.upperLayerIn; mac.lowerLayerOut --> radio.upperLayerIn; mac.upperLayerOut --> { @display("m=n"); } --> upperLayerOut; radioIn --> { @display("m=s"); } --> radio.radioIn; radio.upperLayerOut --> mac.lowerLayerIn; }