Function etsi_its_denm_msgs::access::setReferenceTime

Function Documentation

inline void etsi_its_denm_msgs::access::setReferenceTime(DENM &denm, const uint64_t unix_nanosecs, const uint16_t n_leap_seconds = etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.rbegin()->second)

Set the ReferenceTime-value.

Parameters:
  • denm – DENM to set the ReferenceTime-Value for

  • unix_nanosecs – Timestamp in unix-nanoseconds to set the ReferenceTime-Value from

  • n_leap_seconds – Number of leap seconds since 2004 for the given timestamp (Defaults to the todays number of leap seconds since 2004.)