DESERT 3.5.1
Loading...
Searching...
No Matches
hdr_ranging_tdma Struct Reference

#include <uwranging_tdma_hdr.h>

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.

Definition at line 58 of file uwranging_tdma_hdr.h.

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

Definition at line 106 of file uwranging_tdma_hdr.h.

◆ getSize()

size_t hdr_ranging_tdma::getSize ( ) const
inline

Returns the size of this header.

Returns
the size of this header

Definition at line 86 of file uwranging_tdma_hdr.h.

◆ offset()

static int & hdr_ranging_tdma::offset ( )
inlinestatic

Returns a reference to the offset_ variable.

Returns
a reference to the offset_ variable

Definition at line 95 of file uwranging_tdma_hdr.h.

◆ slotId()

slotid_t & hdr_ranging_tdma::slotId ( )
inline

Returns a reference to the nodeid_ variable.

Returns
a reference to the nodeid_ variable

Definition at line 68 of file uwranging_tdma_hdr.h.

◆ 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

Definition at line 77 of file uwranging_tdma_hdr.h.

Member Data Documentation

◆ offset_

int hdr_ranging_tdma::offset_ = 0
static

Required by the PacketHeaderManager.

Definition at line 60 of file uwranging_tdma_hdr.h.

◆ slotid_

slotid_t hdr_ranging_tdma::slotid_

sending slot id

Definition at line 61 of file uwranging_tdma_hdr.h.

◆ times_

std::vector<uwrange_time_t> hdr_ranging_tdma::times_

Holds the times measured by the node.

Definition at line 62 of file uwranging_tdma_hdr.h.


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