pflib v3.9.0-rc3-11-g2537d8f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
bittware_elinks.h
1#pragma once
2
3#include "pflib/Elinks.h"
4#include "pflib/bittware/bittware_axilite.h"
5
6namespace pflib {
7namespace bittware {
8
9class OptoElinksBW : public Elinks {
10 public:
11 OptoElinksBW(int ilink, const char* dev = "/dev/datadev_0");
12 virtual std::vector<uint32_t> spy(int ilink);
13 virtual void setBitslip(int ilink, int bitslip) {
15 }
16 virtual int getBitslip(int ilink) { return 0; }
17 virtual int scanBitslip(int ilink) { return -1; }
18 virtual uint32_t getStatusRaw(int ilink) { return 0; }
19 virtual void clearErrorCounters(int ilink) {}
20 virtual void resetHard() {
21 // not meaningful here
22 }
23
24 private:
25 int ilinkOpto_;
26 AxiLite axil_;
27};
28} // namespace bittware
29} // namespace pflib
This class provides access to read and write via the ioctl path to the AXILite targets within the Bit...
Definition bittware_axilite.h:14
Definition bittware_elinks.h:9
virtual int scanBitslip(int ilink)
enable auto-setting of bitslip value (word-level adjustment)
Definition bittware_elinks.h:17
virtual void resetHard()
Hard reset the links.
Definition bittware_elinks.h:20
virtual void setBitslip(int ilink, int bitslip)
set the bitslip value (word-level adjustment)
Definition bittware_elinks.h:13
virtual void clearErrorCounters(int ilink)
Clear the error counters for the input link.
Definition bittware_elinks.h:19
virtual std::vector< uint32_t > spy(int ilink)
spy into the passed link
Definition bittware_elinks.cxx:13
virtual uint32_t getStatusRaw(int ilink)
Get the status of the input link.
Definition bittware_elinks.h:18
This version of the fast control code interfaces with the CMS Fast control library which can be contr...
Definition Backend.cxx:3