pflib v2.7.0-1-gd371ab6a
Polarfire Interaction Library
pftool_daq.h
1#ifndef PFTOOL_DAQ_H
2#define PFTOOL_DAQ_H
3#include "Menu.h"
4#include "pflib/PolarfireTarget.h"
5#include <sys/time.h>
6#include <unistd.h>
7#include <stdio.h>
8#include "pftool_roc.h"
9#ifdef PFTOOL_ROGUE
10#include "pflib/rogue/RogueWishboneInterface.h"
11#endif
12#ifdef PFTOOL_UHAL
13#include "pflib/uhal/uhalWishboneInterface.h"
14#endif
15
16extern std::string last_run_file;
17extern std::string start_dma_cmd;
18extern std::string stop_dma_cmd;
19
20std::string make_default_daq_run_filename(const std::string& cmd,
21 const int dpm);
22void daq_run(pflib::PolarfireTarget* pft,
23 const std::string& cmd // PEDESTAL, CHARGE, or no trigger
24 , int run // not used in this implementation of daq
25 , int nevents // number of events to collect
26 , int rate // not used in this implementation of daq
27 , const std::string& fname // file to write to (appended)
28);
33std::vector<uint32_t> read_words_from_file();
53void daq( const std::string& cmd, pflib::PolarfireTarget* pft );
54
77void daq_setup( const std::string& cmd, pflib::PolarfireTarget* pft );
78
90void daq_debug( const std::string& cmd, pflib::PolarfireTarget* pft );
91
92void daq_enable(pflib::PolarfireTarget* pft);
93void daq_softreset(pflib::PolarfireTarget* pft);
94void daq_standard(pflib::PolarfireTarget* pft);
95void daq_status(pflib::PolarfireTarget* pft);
96void setup_dma(pflib::PolarfireTarget* pft);
97void setup_dma(pflib::PolarfireTarget* pft, bool force_to);
98#endif /* PFTOOL_DAQ_H */
Interface to a single polarfire.
Definition: PolarfireTarget.h:33