pflib v2.7.0-1-gd371ab6a
Polarfire Interaction Library
pftool_roc.h
1#ifndef PFTOOL_ROC_H
2#define PFTOOL_ROC_H
3
4#include "pftool.h"
5
6// Forward declaration due to unorganized source structure
7std::string get_output_directory();
8
13extern int iroc;
14
21void roc_render( PolarfireTarget* pft );
22
23
24void poke_all_channels(PolarfireTarget* pft, const std::string& parameter,
25 const int value);
26
27void poke_all_rochalves(PolarfireTarget *pft, const std::string& page_template,
28 const std::string& parameter, const int value);
29
30
31std::string make_default_rocdump_filename(const int dpm,
32 const int iroc);
33void dump_rocconfig(PolarfireTarget* pft,
34 const int iroc);
35
36std::string make_roc_config_filename(const int config_version, const int roc);
37// Ask for everything
38void load_parameters(PolarfireTarget* pft, const int iroc);
39// Load a particular roc config
40void load_parameters(PolarfireTarget* pft, const int iroc, const std::string& fname,
41 const bool prepend_defaults);
42// Load multiple files
43void load_parameters(PolarfireTarget* pft, const int config_version,
44 const std::vector<std::string> filenames,
45 const bool prepend_values);
69void roc( const std::string& cmd, PolarfireTarget* pft );
70
71std::vector<int> get_rocs_with_active_links(pflib::PolarfireTarget* pft);
72int get_num_rocs();
73int get_dpm_number(pflib::PolarfireTarget* pft = nullptr);
74int get_num_channels_per_elink();
75int get_num_channels_per_roc();
76int get_number_of_samples_per_event(pflib::PolarfireTarget* pft);
77#endif /* PFTOOL_ROC_H */
Interface to a single polarfire.
Definition: PolarfireTarget.h:33