12#ifndef TIMING_INCLUDE_TIMING_IRIGTIMESTAMPNODE_HPP_
13#define TIMING_INCLUDE_TIMING_IRIGTIMESTAMPNODE_HPP_
21#include "uhal/DerivedNode.hpp"
43 std::string
get_status(
bool print_out =
false)
const override;
67 void set_ts_epoch_value(uint64_t epoch_to_2000_seconds_tai, uint8_t epoch_to_2000_leap_seconds)
const;
Class for timestamp generator node.
std::string get_status(bool print_out=false) const override
Print the status of the timing node.
uint64_t read_timestamp() const
Read the current timestamp words.
void set_ts_ticks_offset(int16_t ticks_offset) const
Set ticks offset.
virtual ~IRIGTimestampNode()
void set_ts_epoch_value(uint64_t epoch_to_2000_seconds_tai, uint8_t epoch_to_2000_leap_seconds) const
Set custom epoch value.
IRIGTimestampNode(const uhal::Node &node)
void set_ts_seconds_offset(int8_t seconds_offset) const
Set seconds offset.
void set_ts_timebase(TimestampTimebase ts_timebase) const
Set custom epoch date.
uint64_t read_seconds_since_epoch() const
Read the current seconds since epoch words.
void set_ts_epoch(TimestampEpoch ts_epoch) const
Set epoch: UNIX/custom.
uhal::ValVector< uint32_t > read_raw_timestamp(bool dispatch=true) const
Read the current timestamp words.
uint32_t read_pps_counter() const
Read the current pps ctr word.
Base class for timing nodes.