46#define UW_WAKEUP_MODNAME "WKUP"
47#define DROP_REASON_BELOW_THRESHOLD "DBT"
86 virtual double getPER(
double snr,
int nbits);
106 virtual int command(
int argc,
const char *
const *argv);
113 virtual void startTx(Packet *p);
118 virtual void endTx(Packet *p);
123 virtual void startRx(Packet *p);
129 virtual void endRx(Packet *p);
Class that describes the WakeUp PHY layer for T-LOHI MAC protocol.
virtual double getTxDuration(Packet *p)
Returns the duration of the transmission for the specified packet.
virtual void endRx(Packet *p)
Notify to the MAC protocol that the reception is finished and send the packet to it.
virtual void endTx(Packet *p)
Notify to the MAC protocol that the transmission has been finished.
virtual ~MPhy_WakeUp()
Class destructor.
MPhy_WakeUp()
Class contructor.
Packet * PktRx
Pointer to the packeti in reception.
double MaxTxRange_
Maximum Transmission Range.
virtual void startRx(Packet *p)
Notify to the MAC protocol the start of a reception.
virtual double getPER(double snr, int nbits)
Returns the PER for a certain SNR and a dimension of packet.
virtual MSpectralMask * getTxSpectralMask(Packet *p)
Gets the Transmission Spectral Mask for the Packet p.
virtual void waitForUser()
Used for debug purposes.
void incrDroppedPktsTxPending()
Increases the number of packet dropped.
int droppedPktsTxPending
Total number of dropped pkts due to tx pending.
virtual double getNoisePower(Packet *p)
Returns the Power of the noise for a packet.
virtual int getDroppedPktsTxPending()
Gets the number of Tx Pending dropped packets.
virtual int command(int argc, const char *const *argv)
TCL command interpreter.
static bool initialized
used to register the modulation type only once
double ToneDuration_
predefined tone duration
virtual void startTx(Packet *p)
Starts to transmit a Packet.
virtual int getModulationType(Packet *)
Returns the Modulation type.
static int modid
modulation type id
double AcquisitionThreshold_dB_
How many dB over noise are required for a signal to trigger acquisition (i.e., a RX attempt)
virtual void dropPacket(Packet *p)
Drops a packet.
Provides the definition of the Wake Up Tone Packet Header.