DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
MIBV2IONode.hpp
Go to the documentation of this file.
1
12#ifndef TIMING_INCLUDE_TIMING_MIBV2IONODE_HPP_
13#define TIMING_INCLUDE_TIMING_MIBV2IONODE_HPP_
14
15// PDT Headers
16#include "TimingIssues.hpp"
17#include "timing/IONode.hpp"
18
19// uHal Headers
20#include "uhal/DerivedNode.hpp"
21
22// C++ Headers
23#include <chrono>
24#include <string>
25
26namespace dunedaq {
27namespace timing {
28
32class MIBV2IONode : public IONode
33{
34 UHAL_DERIVEDNODE(MIBV2IONode)
35
36public:
37 explicit MIBV2IONode(const uhal::Node& node);
38 virtual ~MIBV2IONode();
39
45 std::string get_uid_address_parameter_name() const override;
46
50 std::string get_status(bool print_out = false) const override;
51
55 void reset(const std::string& clock_config_file) const override;
56
60 void reset(const ClockSource& clock_source) const override;
61
65 void switch_clock_source(const ClockSource& clock_source) const;
66
70 std::string get_sfp_status(uint32_t sfp_id, bool print_out = false) const override; // NOLINT(build/unsigned)
71
75 void switch_sfp_soft_tx_control_bit(uint32_t sfp_id, bool turn_on) const override; // NOLINT(build/unsigned)
76
80 bool clocks_ok() const override;
81
85 void switch_sfp_tx(uint32_t sfp_id, bool turn_on) const override; // NOLINT(build/unsigned)
86
90 //void get_info(timinghardwareinfo::TimingMIBV2MonitorData& mon_data) const;
91
95 // void get_info(opmonlib::InfoCollector& ci, int level) const override;
96
97private:
98 void validate_sfp_id(uint32_t sfp_id) const; // NOLINT(build/unsigned)
99 void validate_amc_slot(uint32_t amc_slot) const; // NOLINT(build/unsigned)
100};
101
102} // namespace timing
103} // namespace dunedaq
104
105#endif // TIMING_INCLUDE_TIMING_MIBV2IONODE_HPP_
Base class for timing IO nodes.
Definition IONode.hpp:44
Class for the timing FMC board.
void validate_sfp_id(uint32_t sfp_id) const
Fill hardware monitoring structure.
void switch_sfp_soft_tx_control_bit(uint32_t sfp_id, bool turn_on) const override
control tx laser of on-board SFP softly (I2C command)
void reset(const std::string &clock_config_file) const override
Reset MIB v2 IO.
std::string get_sfp_status(uint32_t sfp_id, bool print_out=false) const override
Print status of on-board SFP.
void switch_clock_source(const ClockSource &clock_source) const
Switch clock input, with clock file look up and upload if necessary.
std::string get_status(bool print_out=false) const override
Get status string, optionally print.
void switch_sfp_tx(uint32_t sfp_id, bool turn_on) const override
control tx laser of on-board SFP
MIBV2IONode(const uhal::Node &node)
bool clocks_ok() const override
Clocks ready?
void validate_amc_slot(uint32_t amc_slot) const
std::string get_uid_address_parameter_name() const override
Get the UID address parameter name.
Including Qt Headers.