35 if (ilink<n_links && ilink>=0)
79 virtual int getBitslip(
int ilink) = 0;
104 virtual void readCounters(
int link, uint32_t& nonidles, uint32_t& resyncs) { }
150 virtual int scanAlign(
int ilink,
bool debug=
false);
Interface for configuring the elinks.
Definition Elinks.h:12
virtual void setBitslip(int ilink, int bitslip)=0
set the bitslip value for the link
virtual uint32_t getStatusRaw(int ilink)=0
Get the status of the input link.
int n_links
number of links available, read from chip
Definition Elinks.h:165
int nlinks() const
Get the number of links stored in this class.
Definition Elinks.h:23
virtual int getAlignPhase(int ilink)
Get the alignment phase.
Definition Elinks.h:162
virtual void resetHard()=0
Hard reset the links.
virtual int scanBitslip(int ilink)
enable auto-setting of bitslip value
Definition Elinks.cxx:14
virtual void setAlignPhase(int ilink, int iphase)
Set the l1a delay for the input link.
Definition Elinks.h:157
virtual void clearErrorCounters(int ilink)=0
Clear the error counters for the input link.
virtual void readCounters(int link, uint32_t &nonidles, uint32_t &resyncs)
Decode the counters for non-idles and resyncs from the status bytes for the input link.
Definition Elinks.h:104
std::vector< bool > m_linksActive
which links are "active", set by user
Definition Elinks.h:167
void markActive(int ilink, bool active)
Mark a specific link as active (or inactive) depending on input.
Definition Elinks.h:34
virtual int scanAlign(int ilink, bool debug=false)
Prepare for a big spy of the link.
Definition Elinks.cxx:25
virtual std::vector< uint32_t > spy(int ilink)=0
spy into the passed link
bool isActive(int ilink) const
Check if a link is active.
Definition Elinks.h:45
This version of the fast control code interfaces with the CMS Fast control library which can be contr...
Definition Backend.cxx:3