DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ColdADCSettings.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _ColdADCSettings_0_dunedaq__appmodel_0_appmodel_H_
4#define _ColdADCSettings_0_dunedaq__appmodel_0_appmodel_H_
5
6#include <stdint.h> // to define 64 bits types
7#include <iostream>
8#include <sstream>
9#include <string>
10#include <map>
11#include <vector>
12
14#include "conffwk/DalObject.hpp"
15
16
17namespace dunedaq {
18 namespace appmodel {
19
24 class ColdADCSettings : public virtual dunedaq::conffwk::DalObject {
25
27 friend class conffwk::DalObject;
28 friend class conffwk::DalFactory;
30
31 protected:
32
34 virtual ~ColdADCSettings() noexcept;
35 virtual void init(bool init_children);
36
37 public:
38
41 static const std::string& s_class_name;
42
43
53 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
54
55
65 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
66
67
68 protected:
69
70 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
71
72
73 private:
74
75 uint8_t m_reg_0;
76 uint8_t m_reg_4;
77 uint8_t m_reg_24;
78 uint8_t m_reg_25;
79 uint8_t m_reg_26;
80 uint8_t m_reg_27;
81 uint8_t m_reg_29;
82 uint8_t m_reg_30;
83
84
85 public:
86
87 // attribute names
88
89 inline static const std::string s_reg_0 = "reg_0";
90 inline static const std::string s_reg_4 = "reg_4";
91 inline static const std::string s_reg_24 = "reg_24";
92 inline static const std::string s_reg_25 = "reg_25";
93 inline static const std::string s_reg_26 = "reg_26";
94 inline static const std::string s_reg_27 = "reg_27";
95 inline static const std::string s_reg_29 = "reg_29";
96 inline static const std::string s_reg_30 = "reg_30";
97
98 static const std::string& __get_reg_0_str() noexcept { return s_reg_0; }
99 static const std::string& __get_reg_4_str() noexcept { return s_reg_4; }
100 static const std::string& __get_reg_24_str() noexcept { return s_reg_24; }
101 static const std::string& __get_reg_25_str() noexcept { return s_reg_25; }
102 static const std::string& __get_reg_26_str() noexcept { return s_reg_26; }
103 static const std::string& __get_reg_27_str() noexcept { return s_reg_27; }
104 static const std::string& __get_reg_29_str() noexcept { return s_reg_29; }
105 static const std::string& __get_reg_30_str() noexcept { return s_reg_30; }
106
107
115 uint8_t
116 get_reg_0() const
117 {
118 std::lock_guard scoped_lock(m_mutex);
119 check();
120 check_init();
121 return m_reg_0;
122 }
123
131 void
132 set_reg_0(uint8_t value)
133 {
134 std::lock_guard scoped_lock(m_mutex);
135 check();
136 clear();
137 p_obj.set_by_val(s_reg_0, value);
138 }
139
140
148 uint8_t
149 get_reg_4() const
150 {
151 std::lock_guard scoped_lock(m_mutex);
152 check();
153 check_init();
154 return m_reg_4;
155 }
156
164 void
165 set_reg_4(uint8_t value)
166 {
167 std::lock_guard scoped_lock(m_mutex);
168 check();
169 clear();
170 p_obj.set_by_val(s_reg_4, value);
171 }
172
173
181 uint8_t
183 {
184 std::lock_guard scoped_lock(m_mutex);
185 check();
186 check_init();
187 return m_reg_24;
188 }
189
197 void
198 set_reg_24(uint8_t value)
199 {
200 std::lock_guard scoped_lock(m_mutex);
201 check();
202 clear();
203 p_obj.set_by_val(s_reg_24, value);
204 }
205
206
214 uint8_t
216 {
217 std::lock_guard scoped_lock(m_mutex);
218 check();
219 check_init();
220 return m_reg_25;
221 }
222
230 void
231 set_reg_25(uint8_t value)
232 {
233 std::lock_guard scoped_lock(m_mutex);
234 check();
235 clear();
236 p_obj.set_by_val(s_reg_25, value);
237 }
238
239
247 uint8_t
249 {
250 std::lock_guard scoped_lock(m_mutex);
251 check();
252 check_init();
253 return m_reg_26;
254 }
255
263 void
264 set_reg_26(uint8_t value)
265 {
266 std::lock_guard scoped_lock(m_mutex);
267 check();
268 clear();
269 p_obj.set_by_val(s_reg_26, value);
270 }
271
272
280 uint8_t
282 {
283 std::lock_guard scoped_lock(m_mutex);
284 check();
285 check_init();
286 return m_reg_27;
287 }
288
296 void
297 set_reg_27(uint8_t value)
298 {
299 std::lock_guard scoped_lock(m_mutex);
300 check();
301 clear();
302 p_obj.set_by_val(s_reg_27, value);
303 }
304
305
313 uint8_t
315 {
316 std::lock_guard scoped_lock(m_mutex);
317 check();
318 check_init();
319 return m_reg_29;
320 }
321
329 void
330 set_reg_29(uint8_t value)
331 {
332 std::lock_guard scoped_lock(m_mutex);
333 check();
334 clear();
335 p_obj.set_by_val(s_reg_29, value);
336 }
337
338
346 uint8_t
348 {
349 std::lock_guard scoped_lock(m_mutex);
350 check();
351 check_init();
352 return m_reg_30;
353 }
354
362 void
363 set_reg_30(uint8_t value)
364 {
365 std::lock_guard scoped_lock(m_mutex);
366 check();
367 clear();
368 p_obj.set_by_val(s_reg_30, value);
369 }
370
371
372 };
373
374 // out stream operator
375
376 inline std::ostream& operator<<(std::ostream& s, const ColdADCSettings& obj)
377 {
378 return obj.print_object(s);
379 }
380
381 typedef std::vector<const ColdADCSettings*>::const_iterator ColdADCSettingsIterator;
382
383 }
384}
385
386#endif
uint8_t get_reg_27() const
Get "reg_27" attribute value. Register 27: vcmi.
virtual void init(bool init_children)
static const std::string s_reg_26
static const std::string s_reg_25
static const std::string & __get_reg_0_str() noexcept
void set_reg_24(uint8_t value)
Set "reg_24" attribute value. Register 24: vrefp.
void set_reg_26(uint8_t value)
Set "reg_26" attribute value. Register 26: vcmo.
static const std::string & __get_reg_26_str() noexcept
static const std::string & __get_reg_30_str() noexcept
void set_reg_29(uint8_t value)
Set "reg_29" attribute value. Register 29: ibuff0_cmos.
uint8_t get_reg_25() const
Get "reg_25" attribute value. Register 25: vrefn.
ColdADCSettings(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & s_class_name
uint8_t get_reg_29() const
Get "reg_29" attribute value. Register 29: ibuff0_cmos.
uint8_t get_reg_4() const
Get "reg_4" attribute value. Register 4: single-ended_input_mode.
static const std::string s_reg_29
uint8_t get_reg_24() const
Get "reg_24" attribute value. Register 24: vrefp.
static const std::string & __get_reg_25_str() noexcept
void set_reg_4(uint8_t value)
Set "reg_4" attribute value. Register 4: single-ended_input_mode.
void set_reg_0(uint8_t value)
Set "reg_0" attribute value. Register 0: sdc_bypassed.
static const std::string s_reg_27
static const std::string s_reg_24
static const std::string & __get_reg_27_str() noexcept
void set_reg_25(uint8_t value)
Set "reg_25" attribute value. Register 25: vrefn.
static const std::string & __get_reg_24_str() noexcept
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...
static const std::string & __get_reg_4_str() noexcept
uint8_t get_reg_26() const
Get "reg_26" attribute value. Register 26: vcmo.
void set_reg_30(uint8_t value)
Set "reg_30" attribute value. Register 30: ibuff1_cmos.
static const std::string s_reg_30
uint8_t get_reg_0() const
Get "reg_0" attribute value. Register 0: sdc_bypassed.
static const std::string & __get_reg_29_str() noexcept
uint8_t get_reg_30() const
Get "reg_30" attribute value. Register 30: ibuff1_cmos.
void set_reg_27(uint8_t value)
Set "reg_27" attribute value. Register 27: vcmi.
void set_by_val(const std::string &name, T value)
Set attribute value.
The base class for any generated DAL object.
Definition DalObject.hpp:45
std::mutex m_mutex
Used to protect changes of DAL object.
ConfigObject p_obj
Config object used by given template object.
void check_init() const
Check and initialize object if necessary.
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
conffwk entry point
double offset
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constColdADCSettings * >::const_iterator ColdADCSettingsIterator
Including Qt Headers.