Line data Source code
1 : /**
2 : * @file CDCLVD110Node.cpp
3 : *
4 : * This is part of the DUNE DAQ Software Suite, copyright 2020.
5 : * Licensing/copyright details are in the COPYING file that you should have
6 : * received with this code.
7 : */
8 :
9 : #include "timing/CDCLVD110Node.hpp"
10 :
11 : #include "logging/Logging.hpp"
12 :
13 : #include <string>
14 : #include <chrono>
15 :
16 : namespace dunedaq {
17 : namespace timing {
18 :
19 0 : UHAL_REGISTER_DERIVED_NODE(CDCLVD110Node)
20 :
21 : //-----------------------------------------------------------------------------
22 0 : CDCLVD110Node::CDCLVD110Node(const uhal::Node& node)
23 0 : : ClockGeneratorInterface(node)
24 0 : {}
25 : //-----------------------------------------------------------------------------
26 :
27 : //-----------------------------------------------------------------------------
28 0 : CDCLVD110Node::~CDCLVD110Node() {}
29 : //-----------------------------------------------------------------------------
30 :
31 : //-----------------------------------------------------------------------------
32 : std::string
33 0 : CDCLVD110Node::get_status(bool print_out) const
34 : {
35 0 : std::stringstream status;
36 : //auto subnodes = read_sub_nodes(getNode("csr.stat"));
37 : //status << format_reg_table(subnodes, "CDCLVD110Node state");
38 0 : status << "CDCLVD110Node state"; //TODO: implement
39 0 : if (print_out)
40 0 : TLOG() << status.str();
41 0 : return status.str();
42 0 : }
43 : //-----------------------------------------------------------------------------
44 :
45 : //-----------------------------------------------------------------------------
46 : void // NOLINT(build/unsigned)
47 0 : CDCLVD110Node::get_info(timinghardwareinfo::TimingPLLMonitorData& mon_data) const
48 : {
49 0 : mon_data.lol = false; // no monitoring of this in CDCLVD110
50 0 : mon_data.los = false;
51 0 : }
52 : //-----------------------------------------------------------------------------
53 :
54 : } // namespace timing
55 : } // namespace dunedaq
|