#include <uw-phy-WakeUp.h>
Class that describes the WakeUp PHY layer for T-LOHI MAC protocol.
Definition at line 52 of file uw-phy-WakeUp.h.
◆ MPhy_WakeUp()
MPhy_WakeUp::MPhy_WakeUp |
( |
| ) |
|
◆ ~MPhy_WakeUp()
MPhy_WakeUp::~MPhy_WakeUp |
( |
| ) |
|
|
virtual |
◆ command()
int MPhy_WakeUp::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
TCL command interpreter.
It implements the following OTcl methods:
- Parameters
-
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). |
- Returns
- TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.
Definition at line 125 of file uw-phy-WakeUp.cpp.
◆ dropPacket()
void MPhy_WakeUp::dropPacket |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Drops a packet.
- Parameters
-
Packet* | pointer to the packet to drop |
Definition at line 443 of file uw-phy-WakeUp.cpp.
◆ endRx()
void MPhy_WakeUp::endRx |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Notify to the MAC protocol that the reception is finished and send the packet to it.
- Parameters
-
Packet* | pointer ot the packet received |
Definition at line 316 of file uw-phy-WakeUp.cpp.
◆ endTx()
void MPhy_WakeUp::endTx |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Notify to the MAC protocol that the transmission has been finished.
- Parameters
-
Packet* | pointer to the packet just transmitted |
Definition at line 210 of file uw-phy-WakeUp.cpp.
◆ getDroppedPktsTxPending()
virtual int MPhy_WakeUp::getDroppedPktsTxPending |
( |
| ) |
|
|
inlinevirtual |
Gets the number of Tx Pending dropped packets.
- Returns
- Number of Tx Pending dropped packets
Definition at line 92 of file uw-phy-WakeUp.h.
◆ getModulationType()
int MPhy_WakeUp::getModulationType |
( |
Packet * |
| ) |
|
|
virtual |
Returns the Modulation type.
- Parameters
-
Packet* | pointer to the packet where get the modulation |
- Returns
- type of the modulation
Definition at line 140 of file uw-phy-WakeUp.cpp.
◆ getNoisePower()
double MPhy_WakeUp::getNoisePower |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Returns the Power of the noise for a packet.
- Parameters
-
Packet* | pointer to the packet where compute the noise |
- Returns
- Noise power in dB
Definition at line 147 of file uw-phy-WakeUp.cpp.
◆ getPER()
double MPhy_WakeUp::getPER |
( |
double |
snr, |
|
|
int |
nbits |
|
) |
| |
|
virtual |
Returns the PER for a certain SNR and a dimension of packet.
- Parameters
-
double | SNR |
int | nbits, dimension of the packet in bit |
- Returns
- PER
Definition at line 466 of file uw-phy-WakeUp.cpp.
◆ getTxDuration()
virtual double MPhy_WakeUp::getTxDuration |
( |
Packet * |
p | ) |
|
|
inlinevirtual |
Returns the duration of the transmission for the specified packet.
- Parameters
-
Packet* | pointer to the packet in which compute the Tx Duration |
- Returns
- duration of the Tone
Definition at line 76 of file uw-phy-WakeUp.h.
◆ getTxSpectralMask()
MSpectralMask * MPhy_WakeUp::getTxSpectralMask |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Gets the Transmission Spectral Mask for the Packet p.
- Parameters
-
Packet* | pointer to the packet where get the Spectral Mask |
- Returns
- the pointer of an Object of MSpectralMask that indicates the type of Spectral Mask adopted
Definition at line 176 of file uw-phy-WakeUp.cpp.
◆ incrDroppedPktsTxPending()
void MPhy_WakeUp::incrDroppedPktsTxPending |
( |
| ) |
|
|
inlineprotected |
◆ startRx()
void MPhy_WakeUp::startRx |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Notify to the MAC protocol the start of a reception.
- Parameters
-
Packet* | pointer to the packet in reception |
Definition at line 218 of file uw-phy-WakeUp.cpp.
◆ startTx()
void MPhy_WakeUp::startTx |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Starts to transmit a Packet.
- Parameters
-
Packet* | pointer to the packet to transmit |
Definition at line 182 of file uw-phy-WakeUp.cpp.
◆ waitForUser()
void MPhy_WakeUp::waitForUser |
( |
| ) |
|
|
protectedvirtual |
Used for debug purposes.
Permit a step-by-step behaviour of the PHY layer
Definition at line 474 of file uw-phy-WakeUp.cpp.
◆ AcquisitionThreshold_dB_
double MPhy_WakeUp::AcquisitionThreshold_dB_ |
|
protected |
How many dB over noise are required for a signal to trigger acquisition (i.e., a RX attempt)
Definition at line 170 of file uw-phy-WakeUp.h.
◆ droppedPktsTxPending
int MPhy_WakeUp::droppedPktsTxPending |
|
protected |
Total number of dropped pkts due to tx pending.
Definition at line 178 of file uw-phy-WakeUp.h.
◆ initialized
bool MPhy_WakeUp::initialized = false |
|
staticprotected |
used to register the modulation type only once
Definition at line 165 of file uw-phy-WakeUp.h.
◆ MaxTxRange_
double MPhy_WakeUp::MaxTxRange_ |
|
protected |
◆ modid
int MPhy_WakeUp::modid = -1 |
|
staticprotected |
◆ PktRx
Packet* MPhy_WakeUp::PktRx |
|
protected |
◆ ToneDuration_
double MPhy_WakeUp::ToneDuration_ |
|
protected |
◆ txActive
bool MPhy_WakeUp::txActive |
|
protected |
The documentation for this class was generated from the following files: