GenericTransmitter

Package: inet.physicallayer.wireless.generic

compound module GenericTransmitter

This transmitter is part of the generic radio architecture.

See also: GenericReceiver, GenericRadio

Inheritance diagram

Extends

Name

Type

Description

TransmitterBase

compound module

(no description)

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

signalAnalogRepresentation

string

“scalar”

Determines the analog domain signal representation of transmissions

preambleDuration

double

0s

Preamble added before the PHY header.

headerLength

int

96b

Number of bits in the PHY header.

bitrate

double

The bitrate of the transmitter is used to compute the duration of the PHY header and the data part.

Properties

Name

Value

Description

class

GenericTransmitter

display

i=block/wtx

Source code

//
// This transmitter is part of the generic radio architecture.
//
// @see ~GenericReceiver, ~GenericRadio
//
module GenericTransmitter extends TransmitterBase like ITransmitter
{
    parameters:
        double preambleDuration @unit(s) = default(0s); // Preamble added before the PHY header.
        int headerLength @unit(b) = default(96b); // Number of bits in the PHY header.
        double bitrate @unit(bps); // The bitrate of the transmitter is used to compute the duration of the PHY header and the data part.
        @class(GenericTransmitter);
        @display("i=block/wtx");
}

File: src/inet/physicallayer/wireless/generic/GenericTransmitter.ned