1#ifndef LPGBT_OPTOLINK_INCLUDED
2#define LPGBT_OPTOLINK_INCLUDED 1
11#include "pflib/lpGBT.h"
27 virtual void run_linktrick() {}
28 virtual bool get_rx_polarity() = 0;
29 virtual bool get_tx_polarity() = 0;
30 virtual void set_rx_polarity(
bool polarity) = 0;
31 virtual void set_tx_polarity(
bool polarity) = 0;
41 if (!lpgbt_) lpgbt_ = std::make_unique<lpGBT>(lpgbt_transport());
49 virtual void set_elink_tx_mode(
int elink,
int mode) = 0;
Represents an interface to the optical links (GTX, GTH, GTY) and the upper levels of the encoder/deco...
Definition OptoLink.h:18
virtual int ilink()=0
which optical link does this represent?
virtual bool is_bidirectional()
is this link bidirectional (e.g. a DAQ lpGBT)
Definition OptoLink.h:23
virtual int get_elink_tx_mode(int elink)=0
there are four TX elinks configured in the coder block, this is needed for testing purposes only
virtual void reset_link()=0
reset a given optical link, may have side-effects
Class which provides an interface with an lpGBT ASIC as mounted on an LDMX mezzanine.
Definition lpGBT.h:52
This version of the fast control code interfaces with the CMS Fast control library which can be contr...
Definition Backend.cxx:3