|
DESERT 4.0.0
|
#include <uw-phy-WakeUp.h>


Public Member Functions | |
| MPhy_WakeUp () | |
| virtual | ~MPhy_WakeUp () |
| virtual int | getModulationType (Packet *) |
| virtual double | getTxDuration (Packet *p) |
| virtual double | getPER (double snr, int nbits) |
| virtual int | getDroppedPktsTxPending () |
| virtual int | command (int argc, const char *const *argv) |
Protected Member Functions | |
| virtual void | startTx (Packet *p) |
| virtual void | endTx (Packet *p) |
| virtual void | startRx (Packet *p) |
| virtual void | endRx (Packet *p) |
| virtual double | getNoisePower (Packet *p) |
| virtual MSpectralMask * | getTxSpectralMask (Packet *p) |
| virtual void | dropPacket (Packet *p) |
| void | incrDroppedPktsTxPending () |
| virtual void | waitForUser () |
Protected Attributes | |
| Packet * | PktRx |
| bool | txActive |
| double | AcquisitionThreshold_dB_ |
| double | ToneDuration_ |
| double | MaxTxRange_ |
| int | droppedPktsTxPending |
Static Protected Attributes | |
| static bool | initialized = false |
| static int | modid = -1 |
Class that describes the WakeUp PHY layer for T-LOHI MAC protocol
| MPhy_WakeUp::MPhy_WakeUp | ( | ) |
Class contructor
References AcquisitionThreshold_dB_, initialized, MaxTxRange_, modid, and ToneDuration_.
|
virtual |
Class destructor
|
virtual |
TCL command interpreter. It implements the following OTcl methods:
| argc | Number of arguments in argv. |
| argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object). |
References getDroppedPktsTxPending().

|
protectedvirtual |
|
protectedvirtual |
Notify to the MAC protocol that the reception is finished and send the packet to it
| Packet* | pointer ot the packet received |
References dropPacket(), hdr_wkup::endRx_time, getPER(), modid, PktRx, hdr_wkup::startRx_time, and WKUP_DISCARD.

|
protectedvirtual |
Notify to the MAC protocol that the transmission has been finished
| Packet* | pointer to the packet just transmitted |
References txActive.
|
inlinevirtual |
Gets the number of Tx Pending dropped packets
References droppedPktsTxPending.
Referenced by command().
|
virtual |
Returns the Modulation type
| Packet* | pointer to the packet where get the modulation |
References initialized, and modid.
|
protectedvirtual |
Returns the Power of the noise for a packet
| Packet* | pointer to the packet where compute the noise |
|
virtual |
Returns the PER for a certain SNR and a dimension of packet
| double | SNR |
| int | nbits, dimension of the packet in bit |
Referenced by endRx().
|
inlinevirtual |
Returns the duration of the transmission for the specified packet
| Packet* | pointer to the packet in which compute the Tx Duration |
References ToneDuration_.
Referenced by startRx().
|
protectedvirtual |
Gets the Transmission Spectral Mask for the Packet p
| Packet* | pointer to the packet where get the Spectral Mask |
|
inlineprotected |
Increases the number of packet dropped
References droppedPktsTxPending.
|
protectedvirtual |
Notify to the MAC protocol the start of a reception
| Packet* | pointer to the packet in reception |
References AcquisitionThreshold_dB_, hdr_wkup::endRx_time, getTxDuration(), modid, PktRx, hdr_wkup::startRx_time, txActive, WKUP_BELOW_THRESHOLD, and WKUP_DISCARD.

|
protectedvirtual |
Starts to transmit a Packet
| Packet* | pointer to the packet to transmit |
References hdr_wkup::endRx_time, PktRx, hdr_wkup::startRx_time, txActive, and WKUP_DISCARD.
|
protectedvirtual |
Used for debug purposes. Permit a step-by-step behaviour of the PHY layer
|
protected |
How many dB over noise are required for a signal to trigger acquisition (i.e., a RX attempt)
Referenced by MPhy_WakeUp(), and startRx().
|
protected |
Total number of dropped pkts due to tx pending
Referenced by getDroppedPktsTxPending(), and incrDroppedPktsTxPending().
|
staticprotected |
used to register the modulation type only once
Referenced by getModulationType(), and MPhy_WakeUp().
|
protected |
Maximum Transmission Range
Referenced by MPhy_WakeUp().
|
staticprotected |
modulation type id
Referenced by endRx(), getModulationType(), MPhy_WakeUp(), and startRx().
|
protected |
|
protected |
predefined tone duration
Referenced by getTxDuration(), and MPhy_WakeUp().