12#ifndef TIMING_INCLUDE_TIMING_PC059IONODE_HPP_
13#define TIMING_INCLUDE_TIMING_PC059IONODE_HPP_
20#include "uhal/DerivedNode.hpp"
21#include <nlohmann/json.hpp>
51 std::string
get_status(
bool print_out =
false)
const override;
56 void reset(
const std::string& clock_config_file)
const override;
81 std::string
get_sfp_status(uint32_t sfp_id,
bool print_out =
false)
const override;
96 void switch_sfp_tx(uint32_t sfp_id,
bool turn_on)
const override;
virtual void reset(const std::string &clock_config_file) const =0
Reset timing node.
Class for the PC059 board.
uint32_t read_active_sfp_mux_channel() const override
Read the active SFP mux channel.
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)
bool clocks_ok() const override
Clocks ready?
void switch_sfp_mux_channel(uint32_t mux_channel) const override
Switch the SFP mux channel.
void validate_sfp_id(uint32_t sfp_id) const
Fill hardware monitoring structure.
std::string get_uid_address_parameter_name() const override
Get the UID address parameter name.
std::string get_sfp_status(uint32_t sfp_id, bool print_out=false) const override
Print status of on-board SFP.
std::string get_status(bool print_out=false) const override
Get status string, optionally print.
void switch_sfp_i2c_mux_channel(uint32_t sfp_id) const
Switch the SFP I2C mux channel.
void switch_sfp_tx(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 pc059 node.
PC059IONode(const uhal::Node &node)
Base class for boards which have a physical SFP mux.