DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Class for timestamp generator node. More...
#include <IRIGTimestampNode.hpp>
Public Member Functions | |
IRIGTimestampNode (const uhal::Node &node) | |
virtual | ~IRIGTimestampNode () |
std::string | get_status (bool print_out=false) const override |
Print the status of the timing node. | |
uhal::ValVector< uint32_t > | read_raw_timestamp (bool dispatch=true) const |
Read the current timestamp words. | |
uint64_t | read_timestamp () const |
Read the current timestamp words. | |
void | set_ts_epoch (TimestampEpoch ts_epoch) const |
Set epoch: UNIX/custom. | |
void | set_ts_epoch_value (uint64_t epoch_to_2000_seconds_tai, uint8_t epoch_to_2000_leap_seconds) const |
Set custom epoch value. | |
void | set_ts_timebase (TimestampTimebase ts_timebase) const |
Set custom epoch date. | |
void | set_ts_seconds_offset (int8_t seconds_offset) const |
Set seconds offset. | |
void | set_ts_ticks_offset (int16_t ticks_offset) const |
Set ticks offset. | |
uint32_t | read_pps_counter () const |
Read the current pps ctr word. | |
uint64_t | read_seconds_since_epoch () const |
Read the current seconds since epoch words. | |
![]() | |
TimingNode (const uhal::Node &node) | |
virtual | ~TimingNode () |
std::map< std::string, uhal::ValWord< uint32_t > > | read_sub_nodes (const uhal::Node &node, bool dispatch=true) const |
Read subnodes. | |
void | reset_sub_nodes (const uhal::Node &node, uint32_t aValue=0x0, bool dispatch=true) const |
Reset subnodes. | |
Class for timestamp generator node.
Definition at line 33 of file IRIGTimestampNode.hpp.
|
explicit |
Definition at line 22 of file IRIGTimestampNode.cpp.
|
virtual |
Definition at line 28 of file IRIGTimestampNode.cpp.
|
overridevirtual |
Print the status of the timing node.
Implements dunedaq::timing::TimingNode.
Definition at line 33 of file IRIGTimestampNode.cpp.
uint32_t dunedaq::timing::IRIGTimestampNode::read_pps_counter | ( | ) | const |
Read the current pps ctr word.
Definition at line 115 of file IRIGTimestampNode.cpp.
uhal::ValVector< uint32_t > dunedaq::timing::IRIGTimestampNode::read_raw_timestamp | ( | bool | dispatch = true | ) | const |
Read the current timestamp words.
Definition at line 65 of file IRIGTimestampNode.cpp.
uint64_t dunedaq::timing::IRIGTimestampNode::read_seconds_since_epoch | ( | ) | const |
Read the current seconds since epoch words.
Definition at line 125 of file IRIGTimestampNode.cpp.
uint64_t dunedaq::timing::IRIGTimestampNode::read_timestamp | ( | ) | const |
Read the current timestamp words.
Definition at line 76 of file IRIGTimestampNode.cpp.
void dunedaq::timing::IRIGTimestampNode::set_ts_epoch | ( | TimestampEpoch | ts_epoch | ) | const |
Set epoch: UNIX/custom.
Definition at line 93 of file IRIGTimestampNode.cpp.
void dunedaq::timing::IRIGTimestampNode::set_ts_epoch_value | ( | uint64_t | epoch_to_2000_seconds_tai, |
uint8_t | epoch_to_2000_leap_seconds ) const |
Set custom epoch value.
Definition at line 102 of file IRIGTimestampNode.cpp.
void dunedaq::timing::IRIGTimestampNode::set_ts_seconds_offset | ( | int8_t | seconds_offset | ) | const |
Set seconds offset.
Definition at line 135 of file IRIGTimestampNode.cpp.
void dunedaq::timing::IRIGTimestampNode::set_ts_ticks_offset | ( | int16_t | ticks_offset | ) | const |
Set ticks offset.
Definition at line 145 of file IRIGTimestampNode.cpp.
void dunedaq::timing::IRIGTimestampNode::set_ts_timebase | ( | TimestampTimebase | ts_timebase | ) | const |
Set custom epoch date.
Set timebase: TAI/UTC
Definition at line 84 of file IRIGTimestampNode.cpp.