Functions
cam_utils.h File Reference

Utility functions for the ETSI ITS CAM (EN and TS) More...

#include <etsi_its_msgs_utils/impl/checks.h>
#include <etsi_its_msgs_utils/impl/constants.h>
Include dependency graph for cam_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

TimestampIts getTimestampITSFromGenerationDeltaTime (const GenerationDeltaTime &generation_delta_time, const TimestampIts &timestamp_estimate)
 Get the TimestampITS from a given GenerationDeltaTime object. More...
 
uint64_t getUnixNanosecondsFromGenerationDeltaTime (const GenerationDeltaTime &generation_delta_time, const TimestampIts &timestamp_estimate, const uint16_t n_leap_seconds=etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.rbegin() ->second)
 Get the Unix-Nanoseconds from a given GenerationDeltaTime object. More...
 
uint64_t getUnixNanosecondsFromGenerationDeltaTime (const GenerationDeltaTime &generation_delta_time, const uint64_t unix_timestamp_estimate, const uint16_t n_leap_seconds=etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.rbegin() ->second)
 Get the Unix Nanoseconds from Generation Delta Time object. More...
 

Detailed Description

Utility functions for the ETSI ITS CAM (EN and TS)

Definition in file cam_utils.h.

Function Documentation

◆ getTimestampITSFromGenerationDeltaTime()

TimestampIts getTimestampITSFromGenerationDeltaTime ( const GenerationDeltaTime &  generation_delta_time,
const TimestampIts &  timestamp_estimate 
)
inline

Get the TimestampITS from a given GenerationDeltaTime object.

Parameters
generation_delta_timethe GenerationDeltaTime object to get the TimestampITS from
timestamp_estimateestimated time to calculate the corresponding generation from
Returns
TimestampIts the corresponding TimestampITS object

Definition at line 45 of file cam_utils.h.

◆ getUnixNanosecondsFromGenerationDeltaTime() [1/2]

uint64_t getUnixNanosecondsFromGenerationDeltaTime ( const GenerationDeltaTime &  generation_delta_time,
const TimestampIts &  timestamp_estimate,
const uint16_t  n_leap_seconds = etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.rbegin()->second 
)
inline

Get the Unix-Nanoseconds from a given GenerationDeltaTime object.

Parameters
generation_delta_timethe GenerationDeltaTime object to get the Unix-Nanoseconds from
timestamp_estimateestimated time to calculate the corresponding generation from
n_leap_secondsnumber of leap-seconds since 2004. (Defaults to the todays number of leap seconds since 2004.)
Returns
uint64_t the corresponding Unix-Nanoseconds

Definition at line 61 of file cam_utils.h.

◆ getUnixNanosecondsFromGenerationDeltaTime() [2/2]

uint64_t getUnixNanosecondsFromGenerationDeltaTime ( const GenerationDeltaTime &  generation_delta_time,
const uint64_t  unix_timestamp_estimate,
const uint16_t  n_leap_seconds = etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.rbegin()->second 
)
inline

Get the Unix Nanoseconds from Generation Delta Time object.

Parameters
generation_delta_timethe GenerationDeltaTime object to get the Unix-Nanoseconds from
unix_timestamp_estimateestimated unix-time (in Nanoseconds) to calculate the corresponding generation from
n_leap_secondsnumber of leap-seconds since 2004. (Defaults to the todays number of leap seconds since 2004.)
Returns
uint64_t the corresponding Unix-Nanoseconds

Definition at line 76 of file cam_utils.h.



etsi_its_msgs_utils
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:32:12