Currently represents all elinks for dual-link configuration.
More...
#include <zcu_elinks.h>
|
|
| OptoElinksZCU (lpGBT *lpdaq, lpGBT *lptrig, int itarget) |
| | Currently represents all elinks for dual-link configuration.
|
| |
| virtual std::vector< uint32_t > | spy (int ilink) |
| | spy into the passed link
|
| |
| virtual void | setBitslip (int ilink, int bitslip) |
| | set the bitslip value (word-level adjustment)
|
| |
| virtual int | getBitslip (int ilink) |
| |
| virtual int | scanBitslip (int ilink) |
| | enable auto-setting of bitslip value (word-level adjustment)
|
| |
| virtual uint32_t | getStatusRaw (int ilink) |
| | Get the status of the input link.
|
| |
| virtual void | clearErrorCounters (int ilink) |
| | Clear the error counters for the input link.
|
| |
| virtual void | resetHard () |
| | Hard reset the links.
|
| |
|
int | nlinks () const |
| | Get the number of links stored in this class.
|
| |
| void | markActive (int ilink, bool active) |
| | Mark a specific link as active (or inactive) depending on input.
|
| |
| bool | isActive (int ilink) const |
| | Check if a link is active.
|
| |
| 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.
|
| |
| virtual int | scanAlign (int ilink, bool debug=false) |
| | scan the input link attempting to bitalign it
|
| |
| virtual void | setAlignPhase (int ilink, int iphase) |
| | Set the bitalign delay for the input link.
|
| |
| virtual int | getAlignPhase (int ilink) |
| | Get the bit alignment phase.
|
| |
Currently represents all elinks for dual-link configuration.
◆ clearErrorCounters()
| virtual void pflib::zcu::OptoElinksZCU::clearErrorCounters |
( |
int | ilink | ) |
|
|
inlinevirtual |
Clear the error counters for the input link.
- Parameters
-
Implements pflib::Elinks.
◆ getBitslip()
| int pflib::zcu::OptoElinksZCU::getBitslip |
( |
int | ilink | ) |
|
|
virtual |
◆ getStatusRaw()
| virtual uint32_t pflib::zcu::OptoElinksZCU::getStatusRaw |
( |
int | ilink | ) |
|
|
inlinevirtual |
Get the status of the input link.
- Parameters
-
- Returns
- encoded 4-bytes of link status
Implements pflib::Elinks.
◆ resetHard()
| virtual void pflib::zcu::OptoElinksZCU::resetHard |
( |
| ) |
|
|
inlinevirtual |
◆ scanBitslip()
| virtual int pflib::zcu::OptoElinksZCU::scanBitslip |
( |
int | ilink | ) |
|
|
inlinevirtual |
enable auto-setting of bitslip value (word-level adjustment)
- Parameters
-
Reimplemented from pflib::Elinks.
◆ setBitslip()
| void pflib::zcu::OptoElinksZCU::setBitslip |
( |
int | ilink, |
|
|
int | bitslip ) |
|
virtual |
set the bitslip value (word-level adjustment)
- Parameters
-
| [in] | ilink | link index |
| [in] | bitslip | value for bitslip |
Implements pflib::Elinks.
◆ spy()
| std::vector< uint32_t > pflib::zcu::OptoElinksZCU::spy |
( |
int | ilink | ) |
|
|
virtual |
spy into the passed link
- Parameters
-
- Returns
- the bytes retreived from the spy
Implements pflib::Elinks.
The documentation for this class was generated from the following files: