pflib v2.7.0-1-gd371ab6a
Polarfire Interaction Library
FastControl.h
1#ifndef PFLIB_FastControl_H_
2#define PFLIB_FastControl_H_
3
4#include "pflib/WishboneTarget.h"
5#include <vector>
6
7namespace pflib {
8
13 public:
14 FastControl(WishboneInterface* wb, int target = tgt_FastControl)
15 : WishboneTarget(wb,target) {}
16
21
25 void getErrorCounters(uint32_t& single_bit_errors, uint32_t& double_bit_errors);
26
30 void resetCounters();
31
35 void resetTransmitter();
36
40 void setupMultisample(bool enable, int extra_samples);
41
45 void getMultisampleSetup(bool& enable, int& extra_samples);
46
47};
48
49}
50
51#endif // PFLIB_FastControl_H_
Representation of FastControl controller in the Polarfire.
Definition: FastControl.h:12
void resetTransmitter()
Reset the transmitter PLL.
Definition: FastControl.cxx:40
void resetCounters()
Reset the command and error counters.
Definition: FastControl.cxx:36
std::vector< uint32_t > getCmdCounters()
Get the counters for all the different fast control commands.
Definition: FastControl.cxx:22
void getMultisampleSetup(bool &enable, int &extra_samples)
Get the current multisample readout status.
Definition: FastControl.cxx:56
void getErrorCounters(uint32_t &single_bit_errors, uint32_t &double_bit_errors)
Get the error counters.
Definition: FastControl.cxx:30
void setupMultisample(bool enable, int extra_samples)
Enable/disable multisample readout.
Definition: FastControl.cxx:47
Abstract interface for wishbone transactions, used by ~all classes in pflib.
Definition: WishboneInterface.h:15
Parent class for standard wishbone targets providing some utilities.
Definition: WishboneTarget.h:29
WishboneTarget(WishboneInterface *wb, int target)
simply store pointer to interface and target we will interact with
Definition: WishboneTarget.h:34
Polarfire Interaction Library.
Definition: Backend.h:8