DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
definitions.hpp
Go to the documentation of this file.
1
11#ifndef TIMING_INCLUDE_TIMING_DEFINITIONS_HPP_
12#define TIMING_INCLUDE_TIMING_DEFINITIONS_HPP_
13
14#include "TimingIssues.hpp"
15
16#include "logging/Logging.hpp"
17
18#include <cmath>
19#include <cstdint>
20#include <map>
21#include <string>
22#include <vector>
23
24namespace dunedaq {
25namespace timing {
26
27typedef std::map<std::string, uint32_t> Snapshot; // NOLINT(build/unsigned)
28
42
54
73
93
112
114{
115 kInput0 = 0,
116 kInput1 = 1,
117 kInput2 = 2,
118 kInput3 = 3,
119 kFreeRun = 255
121
123{
124 kUpstream = 0,
125 kSoftware = 1,
126 kMixed = 2
128
130{
131 kTAI = 0,
132 kUNIX = 1
134
136{
137 std::string id;
138 uint32_t adr; // NOLINT(build/unsigned)
139 int32_t fanout;
140 uint32_t mux; // NOLINT(build/unsigned)
141 bool active;
142 uint32_t cdelay; // NOLINT(build/unsigned)
143 uint32_t fdelay; // NOLINT(build/unsigned)
144 uint32_t pdelay; // NOLINT(build/unsigned)
145
146 ActiveEndpointConfig(std::string aId,
147 uint32_t aAdr, // NOLINT(build/unsigned)
148 int32_t aFanout = -1,
149 uint32_t aMux = 0, // NOLINT(build/unsigned)
150 uint32_t coarse_delayay = 0, // NOLINT(build/unsigned)
151 uint32_t fine_delayay = 0) // NOLINT(build/unsigned)
152 : id(aId)
153 , adr(aAdr)
154 , fanout(aFanout)
155 , mux(aMux)
156 , active(true)
157 , cdelay(coarse_delayay)
158 , fdelay(fine_delayay)
159 , pdelay(0)
160 {}
161};
162
163} // namespace timing
164} // namespace dunedaq
165
166#endif // TIMING_INCLUDE_TIMING_DEFINITIONS_HPP_
std::map< std::string, uint32_t > Snapshot
Including Qt Headers.
ActiveEndpointConfig(std::string aId, uint32_t aAdr, int32_t aFanout=-1, uint32_t aMux=0, uint32_t coarse_delayay=0, uint32_t fine_delayay=0)