DESERT 4.0.0
hdr_ranging_tdma Struct Reference

#include <uwranging_tdma_hdr.h>

Collaboration diagram for hdr_ranging_tdma:
Collaboration graph

Public Member Functions

slotid_tslotId ()
 
std::vector< uwrange_time_t > & times ()
 
size_t getSize () const
 

Static Public Member Functions

static int & offset ()
 
static struct hdr_ranging_tdmaaccess (const Packet *p)
 

Public Attributes

slotid_t slotid_
 
std::vector< uwrange_time_ttimes_
 

Static Public Attributes

static int offset_ = 0
 

Detailed Description

Header of the token bus protocol

Member Function Documentation

◆ access()

static struct hdr_ranging_tdma * hdr_ranging_tdma::access ( const Packet *  p)
inlinestatic

Returns a pointer to the tokenbus_ranging header of a packet

Parameters
pPacket
Returns
a pointer to the tokenbus_ranging header of the packet p

References access(), and offset_.

Referenced by access().

Here is the call graph for this function:

◆ getSize()

size_t hdr_ranging_tdma::getSize ( ) const
inline

Returns the size of this header

Returns
the size of this header

References times_.

Referenced by UwRangingTDMA::sendRange().

◆ offset()

static int & hdr_ranging_tdma::offset ( )
inlinestatic

Returns a reference to the offset_ variable

Returns
a reference to the offset_ variable

References offset_.

◆ slotId()

slotid_t & hdr_ranging_tdma::slotId ( )
inline

Returns a reference to the nodeid_ variable

Returns
a reference to the nodeid_ variable

References slotid_.

Referenced by UwRangingTDMA::Phy2MacEndRx(), and UwRangingTDMA::sendRange().

◆ times()

std::vector< uwrange_time_t > & hdr_ranging_tdma::times ( )
inline

Returns a reference to the travel times array

Returns
a reference to the travel times array

References times_.

Referenced by UwRangingTDMA::Phy2MacEndRx(), and UwRangingTDMA::sendRange().

Member Data Documentation

◆ offset_

int hdr_ranging_tdma::offset_ = 0
static

Required by the PacketHeaderManager.

Referenced by access(), and offset().

◆ slotid_

slotid_t hdr_ranging_tdma::slotid_

sending slot id

Referenced by slotId().

◆ times_

std::vector<uwrange_time_t> hdr_ranging_tdma::times_

Holds the times measured by the node

Referenced by getSize(), and times().


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