40#ifndef UWRANGINGTOKENBUS_HDR_H
41#define UWRANGINGTOKENBUS_HDR_H
67 std::vector<uwrange_time_t> &
times()
119#define HDR_UWRANGING_TOKENBUS(p) \
120 (hdr_uwranging_tokenbus::access(p))
Header of the token bus protocol.
std::vector< uwrange_time_t > & times()
Returns a reference to the travel times array.
std::vector< uwrange_time_t > times_
Holds the times calculated by the node.
size_t getSize() const
Returns the size of this header.
uwrange_time_t token_hold_
time elapsed from token rx and token pass
bool token_resend_
flag set if token is retransmitted when TokenPass timer expires
static int offset_
Required by the PacketHeaderManager.
static int & offset()
Returns a reference to the offset_ variable.
bool & token_resend()
Returns a reference to token_resend_.
static struct hdr_uwranging_tokenbus * access(const Packet *p)
Returns a pointer to the tokenbus_ranging header of a packet.
uwrange_time_t & token_hold()
Returns a reference to token_hold_ value.
float uwrange_time_t
set here the size and precision of the time measures (half/float/double/uint16...)
packet_t PT_UWRANGING_TOKENBUS