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

Interface with DAQ via a WishboneInterface. More...

#include <DAQ.h>

Collaboration diagram for pflib::DAQ:
[legend]

Public Member Functions

 DAQ (WishboneInterface *wb)
 attach to our active WishboneInterface
 
void reset ()
 
void getHeaderOccupancy (int &current, int &maximum)
 
void setIds (int fpga_id)
 Set the FPGA id and the link ids based on the FPGA id.
 
int getFPGAid ()
 Get the FPGA id.
 
void setupLink (int ilink, bool zs, bool zs_all, int l1a_delay, int l1a_capture_width)
 Setup a link.
 
void getLinkSetup (int ilink, bool &zs, bool &zs_all, int &l1a_delay, int &l1a_capture_width)
 read link parameters into the passed variables
 
void bufferStatus (int ilink, bool postfmt, bool &empty, bool &full)
 get empty/full status for the given link and stage
 
void enable (bool enable=true)
 enable/disable the readout
 
bool enabled ()
 is the readout enabled?
 
int nlinks () const
 number of elinks
 

Private Attributes

WishboneInterfacewb_
 pointer to active wbi
 
int n_links
 number of links
 

Detailed Description

Interface with DAQ via a WishboneInterface.

This is a very light class focused on just providing helpful functionality. Constructing/deconstructing these objects is very\ light so it can be done often.


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