40#ifndef UWRANGING_TDMA_HDR_H
41#define UWRANGING_TDMA_HDR_H
77 std::vector<uwrange_time_t> &
times()
112#define HDR_RANGING_TDMA(p) \
113 (hdr_ranging_tdma::access(p))
Header of the token bus protocol.
slotid_t slotid_
sending slot id
static int & offset()
Returns a reference to the offset_ variable.
slotid_t & slotId()
Returns a reference to the nodeid_ variable.
size_t getSize() const
Returns the size of this header.
std::vector< uwrange_time_t > & times()
Returns a reference to the travel times array.
std::vector< uwrange_time_t > times_
Holds the times measured by the node.
static struct hdr_ranging_tdma * access(const Packet *p)
Returns a pointer to the tokenbus_ranging header of a packet.
static int offset_
Required by the PacketHeaderManager.
packet_t PT_UWRANGING_TDMA
uint_least16_t slotid_t
set here the size of the slotid
constexpr size_t SLOTIDMAX_HDR
float uwrange_time_t
set here the size and precision of the time measures (uint16/half/float...)