pflib v2.7.0-1-gd371ab6a
Polarfire Interaction Library
pflib::FastControl Class Reference

Representation of FastControl controller in the Polarfire. More...

#include <FastControl.h>

Inheritance diagram for pflib::FastControl:
[legend]
Collaboration diagram for pflib::FastControl:
[legend]

Public Member Functions

 FastControl (WishboneInterface *wb, int target=tgt_FastControl)
 
std::vector< uint32_t > getCmdCounters ()
 Get the counters for all the different fast control commands.
 
void getErrorCounters (uint32_t &single_bit_errors, uint32_t &double_bit_errors)
 Get the error counters.
 
void resetCounters ()
 Reset the command and error counters.
 
void resetTransmitter ()
 Reset the transmitter PLL.
 
void setupMultisample (bool enable, int extra_samples)
 Enable/disable multisample readout.
 
void getMultisampleSetup (bool &enable, int &extra_samples)
 Get the current multisample readout status.
 
- Public Member Functions inherited from pflib::WishboneTarget
 WishboneTarget (WishboneInterface *wb, int target)
 simply store pointer to interface and target we will interact with
 
int target_type ()
 Get the Wishbone target type/flavor by number.
 
std::string target_type_str ()
 Get the Wishbone target type/flavor by name if known.
 
int firmware_version ()
 Get the subblock firmware version.
 

Additional Inherited Members

- Protected Member Functions inherited from pflib::WishboneTarget
void wb_write (uint32_t addr, uint32_t data)
 Write data to an address on the target stored within us. More...
 
uint32_t wb_read (uint32_t addr)
 Read data from address on the target stored within us. More...
 
void wb_rmw (uint32_t addr, uint32_t data, uint32_t mask)
 Read the word at the address and then put our data bits into that address using the provided mask. More...
 
- Protected Attributes inherited from pflib::WishboneTarget
WishboneInterfacewb_
 Handle to the interface.
 
int target_
 Target id.
 

Detailed Description

Representation of FastControl controller in the Polarfire.


The documentation for this class was generated from the following files: