DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
MasterGlobalNode.hpp
Go to the documentation of this file.
1
12#ifndef TIMING_INCLUDE_TIMING_MASTERGLOBALNODE_HPP_
13#define TIMING_INCLUDE_TIMING_MASTERGLOBALNODE_HPP_
14
15// PDT Headers
16#include "timing/TimingNode.hpp"
17#include "timing/toolbox.hpp"
18// uHal Headers
19#include "uhal/DerivedNode.hpp"
20
21#include <string>
22
23namespace dunedaq {
24namespace timing {
25
30{
31 UHAL_DERIVEDNODE(MasterGlobalNode)
32public:
33 explicit MasterGlobalNode(const uhal::Node& node);
34 virtual ~MasterGlobalNode();
35
39 void enable_upstream_endpoint(uint32_t timeout = 500) const; // NOLINT(build/unsigned)
40
44 bool read_upstream_endpoint_ready() const; // NOLINT(build/unsigned)
45
49 void reset_command_counters(uint32_t timeout = 500) const; // NOLINT(build/unsigned)
50
54 bool read_counters_ready() const; // NOLINT(build/unsigned)
55
59 std::string get_status(bool print_out = false) const override;
60};
61
62} // namespace timing
63} // namespace dunedaq
64
65#endif // TIMING_INCLUDE_TIMING_MASTERGLOBALNODE_HPP_
Class for master global node.
bool read_counters_ready() const
Enable the upstream endpoint.
void enable_upstream_endpoint(uint32_t timeout=500) const
Enable the upstream endpoint.
MasterGlobalNode(const uhal::Node &node)
void reset_command_counters(uint32_t timeout=500) const
Enable the upstream endpoint.
bool read_upstream_endpoint_ready() const
Read the upstream endpoint ready reg.
std::string get_status(bool print_out=false) const override
Get status string, optionally print.
Base class for timing nodes.
Including Qt Headers.