DESERT 4.0.0
ClMsgTapPkt Class Reference

#include <uwtap_clmsg.h>

Inheritance diagram for ClMsgTapPkt:
Inheritance graph
Collaboration diagram for ClMsgTapPkt:
Collaboration graph

Public Member Functions

 ClMsgTapPkt ()
 
 ClMsgTapPkt (Packet *packet, clmsg_tap_type type, double timestamp=NOW, double tx_duration=0.0)
 
 ClMsgTapPkt (int dest_id)
 
virtual ~ClMsgTapPkt ()=default
 
bool getPacket (Packet *packet)
 
double getTimestamp () const
 
double getTxDuration () const
 
void setPacket (Packet *packet)
 

Public Attributes

Packet * pkt
 
clmsg_tap_type clmsg_type
 
double timestamp
 
double tx_duration
 

Static Public Attributes

static const uint CLMSG_TAP_VERBOSITY = 3
 

Constructor & Destructor Documentation

◆ ClMsgTapPkt() [1/3]

ClMsgTapPkt::ClMsgTapPkt ( )

Constructor for broadcast ClMsg

◆ ClMsgTapPkt() [2/3]

ClMsgTapPkt::ClMsgTapPkt ( Packet *  packet,
clmsg_tap_type  type,
double  timestamp = NOW,
double  tx_duration = 0.0 
)

Constructor for broadcast ClMsg

◆ ClMsgTapPkt() [3/3]

ClMsgTapPkt::ClMsgTapPkt ( int  dest_id)

Constructor for UNICAST ClMsg

Parameters
dest_idid of the destiantion module

◆ ~ClMsgTapPkt()

virtual ClMsgTapPkt::~ClMsgTapPkt ( )
virtualdefault

Destructor

Member Function Documentation

◆ getPacket()

bool ClMsgTapPkt::getPacket ( Packet *  packet)

Returns the pointer to the overheard packet

Parameters
packetpointer reference to the packet to be returned
Returns
true if the packet is present, false otherwise

References pkt.

◆ getTimestamp()

double ClMsgTapPkt::getTimestamp ( ) const

Returns the timestamp of the overheard packet

Returns
the timestamp of the overheard packet

References timestamp.

◆ getTxDuration()

double ClMsgTapPkt::getTxDuration ( ) const

Returns the timestamp of the overheard packet

Returns
the timestamp of the overheard packet

References tx_duration.

◆ setPacket()

void ClMsgTapPkt::setPacket ( Packet *  packet)

Set the packet to send via clmsg

Parameters
packetpointer to the packet
Returns
true if the packet is present, false otherwise

References pkt.

Member Data Documentation

◆ CLMSG_TAP_VERBOSITY

const uint ClMsgTapPkt::CLMSG_TAP_VERBOSITY = 3
static

◆ clmsg_type

clmsg_tap_type ClMsgTapPkt::clmsg_type

packet to send via clmsg to other layers.

Referenced by UwRangingTDOA::recvSyncClMsg().

◆ pkt

Packet* ClMsgTapPkt::pkt

Verbosity level.

Referenced by getPacket(), UwRangingTDOA::recvSyncClMsg(), and setPacket().

◆ timestamp

double ClMsgTapPkt::timestamp

Referenced by getTimestamp().

◆ tx_duration

double ClMsgTapPkt::tx_duration

rx or tx timestamp

Referenced by getTxDuration(), and UwRangingTDOA::recvSyncClMsg().


The documentation for this class was generated from the following files: