DESERT 4.0.0
hdr_ranging_tdoa Struct Reference

#include <uwranging_tdoa_hdr.h>

Collaboration diagram for hdr_ranging_tdoa:
Collaboration graph

Public Member Functions

uint8_t & times_size ()
 
size_t getSize () const
 

Static Public Member Functions

static size_t getSize (int entries)
 
static int & offset ()
 
static struct hdr_ranging_tdoaaccess (const Packet *p)
 

Public Attributes

uwrange_pkt_t source_pkt_id
 
uwrange_node_t source_node_id
 
uwrange_node_t times_size_
 
tdoa_entry times_ [MAX_NUM_NODES]
 

Static Public Attributes

static int offset_ = 0
 

Detailed Description

Header of the token bus protocol

Member Function Documentation

◆ access()

static struct hdr_ranging_tdoa * hdr_ranging_tdoa::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() [1/2]

size_t hdr_ranging_tdoa::getSize ( ) const
inline

Returns the size of a ranging header with all the entries

Returns
Returns the size of a ranging header with all the entries

References times_size_.

Referenced by UwRangingTDOA::calcOptEntries(), UwRangingTDOA::rangeTX(), and UwRangingTDOA::updateHoldoverTime().

◆ getSize() [2/2]

static size_t hdr_ranging_tdoa::getSize ( int  entries)
inlinestatic

Returns the size of a ranging header with a given number of entries

Returns
Returns the size of a ranging header with a given number of entries

◆ offset()

static int & hdr_ranging_tdoa::offset ( )
inlinestatic

Returns a reference to the offset_ variable

Returns
a reference to the offset_ variable

References offset_.

◆ times_size()

Member Data Documentation

◆ offset_

int hdr_ranging_tdoa::offset_ = 0
static

Required by the PacketHeaderManager.

Referenced by access(), and offset().

◆ source_node_id

◆ source_pkt_id

◆ times_

tdoa_entry hdr_ranging_tdoa::times_[MAX_NUM_NODES]

Number of entries in the packet. Array of entries to be sent

Referenced by packer_uwRangingTDOA::packMyHdr(), packer_uwRangingTDOA::printMyHdrFields(), and packer_uwRangingTDOA::unpackMyHdr().

◆ times_size_


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