35 if (ilink < n_links && ilink >= 0)
m_linksActive[ilink] = active;
78 virtual int getBitslip(
int ilink) = 0;
103 virtual void readCounters(
int link, uint32_t& nonidles, uint32_t& resyncs) {}
114 virtual int scanAlign(
int ilink,
bool debug =
false);
Interface for configuring the elinks.
Definition Elinks.h:13
virtual void setBitslip(int ilink, int bitslip)=0
set the bitslip value (word-level adjustment)
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:130
int nlinks() const
Get the number of links stored in this class.
Definition Elinks.h:23
virtual int getAlignPhase(int ilink)
Get the bit alignment phase.
Definition Elinks.h:126
virtual void resetHard()=0
Hard reset the links.
virtual int scanBitslip(int ilink)
enable auto-setting of bitslip value (word-level adjustment)
Definition Elinks.cxx:15
virtual void setAlignPhase(int ilink, int iphase)
Set the bitalign delay for the input link.
Definition Elinks.h:121
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:103
std::vector< bool > m_linksActive
which links are "active", set by user
Definition Elinks.h:132
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)
scan the input link attempting to bitalign it
Definition Elinks.cxx:27
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:44
This version of the fast control code interfaces with the CMS Fast control library which can be contr...
Definition Backend.cxx:3