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
16
extern
std::string
last_run_file;
17
extern
std::string
start_dma_cmd;
18
extern
std::string
stop_dma_cmd;
19
20
std::string
make_default_daq_run_filename(
const
std::string
& cmd,
21
const
int
dpm);
22
void
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
);
33
std::vector<uint32_t>
read_words_from_file();
53
void
daq(
const
std::string
& cmd,
pflib::PolarfireTarget
* pft );
54
77
void
daq_setup(
const
std::string
& cmd,
pflib::PolarfireTarget
* pft );
78
90
void
daq_debug(
const
std::string
& cmd,
pflib::PolarfireTarget
* pft );
91
92
void
daq_enable(
pflib::PolarfireTarget
* pft);
93
void
daq_softreset(
pflib::PolarfireTarget
* pft);
94
void
daq_standard(
pflib::PolarfireTarget
* pft);
95
void
daq_status(
pflib::PolarfireTarget
* pft);
96
void
setup_dma(
pflib::PolarfireTarget
* pft);
97
void
setup_dma(
pflib::PolarfireTarget
* pft,
bool
force_to);
98
#endif
/* PFTOOL_DAQ_H */
std::string
pflib::PolarfireTarget
Interface to a single polarfire.
Definition:
PolarfireTarget.h:33
std::vector
tool
pftool_daq.h
Generated by
1.9.2