12#ifndef TIMING_INCLUDE_TIMING_I2CSFPNODE_HPP_
13#define TIMING_INCLUDE_TIMING_I2CSFPNODE_HPP_
61 uint32_t calib_parameter_id)
const;
181 std::string
get_status(
bool print_out =
false)
const;
I2CSFPNode(const uhal::Node &node)
I2C slave class to control SFP transceivers.
double read_temperature_raw() const
Read the raw SFP temperature.
double read_rx_power_raw() const
Read the raw SFP temperature.
double read_tx_power_raw() const
Read the raw SFP tx power.
I2CSFPSlave(const I2CMasterNode *i2c_master, uint8_t i2c_device_address)
std::string read_serial_number() const
Read the SFP serial number.
bool read_tx_disable_pin_state() const
Read the state of the tx disable control pin.
void sfp_reachable() const
Check if SFP responds.
std::string read_vendor_part_number() const
Read the vendor name.
bool read_ddm_support_bit() const
Find out if SFP supports DDM.
void switch_soft_tx_control_bit(bool turn_on) const
Switch on or off the SFP tx laser via the soft control bit.
double read_rx_ower() const
Read the raw SFP temperature.
double read_temperature() const
Read the calibrated SFP temperature.
bool read_soft_tx_control_support_bit() const
Find out if SFP supports soft tx laser disable.
std::string get_status(bool print_out=false) const
Get SFP status.
bool read_i2c_reg_addressSwapBit() const
Read whether the SFP has seperate I2C addresses, or if a special I2C address swap is required....
double read_voltage_raw() const
Read the raw SFP voltage.
const std::vector< uint32_t > m_calibration_parameter_start_addresses
Get and fill SFP hardware data.
double read_current_raw() const
Read the raw SFP current.
void ddm_available() const
Check if DDM is supported.
std::string read_vendor_name() const
Read the vendor name.
std::pair< double, double > read_calibration_parameter_pair(uint32_t calib_parameter_id) const
Read the raw SFP temperature.
double read_tx_power() const
Read the calibrated SFP tx power.
bool read_soft_tx_control_state() const
Read the value of the soft tx disable control bit.
double read_voltage() const
Read the calibrated SFP voltage.
double read_current() const
Read the calibrated SFP current.