DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
IRIGTimestampNode.hpp
Go to the documentation of this file.
1
12#ifndef TIMING_INCLUDE_TIMING_IRIGTIMESTAMPNODE_HPP_
13#define TIMING_INCLUDE_TIMING_IRIGTIMESTAMPNODE_HPP_
14
15// PDT Headers
16#include "TimingIssues.hpp"
17#include "timing/TimingNode.hpp"
19
20// uHal Headers
21#include "uhal/DerivedNode.hpp"
22
23// C++ Headers
24#include <chrono>
25#include <string>
26
27namespace dunedaq {
28namespace timing {
29
34{
35 UHAL_DERIVEDNODE(IRIGTimestampNode)
36public:
37 explicit IRIGTimestampNode(const uhal::Node& node);
38 virtual ~IRIGTimestampNode();
39
43 std::string get_status(bool print_out = false) const override;
44
50 uhal::ValVector<uint32_t> read_raw_timestamp(bool dispatch = true) const; // NOLINT(build/unsigned)
51
57 uint64_t read_timestamp() const; // NOLINT(build/unsigned)
58
62 void set_irig_epoch(IRIGEpoch irig_epoch) const; // NOLINT(build/unsigned)
63
69 uint32_t read_pps_counter() const; // NOLINT(build/unsigned)
70
76 uint64_t read_seconds_since_epoch() const; // NOLINT(build/unsigned)
77};
78
79} // namespace timing
80} // namespace dunedaq
81
82#endif // TIMING_INCLUDE_TIMING_IRIGTIMESTAMPNODE_HPP_
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.
IRIGTimestampNode(const uhal::Node &node)
uint64_t read_seconds_since_epoch() const
Read the current seconds since epoch words.
void set_irig_epoch(IRIGEpoch irig_epoch) const
Set IRIG epoch: TAI/UNIX.
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.
Including Qt Headers.