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
43
55
74
94
113
115{
116 kInput0 = 0,
117 kInput1 = 1,
118 kInput2 = 2,
119 kInput3 = 3,
120 kFreeRun = 255
122
124{
125 kUpstream = 0,
126 kSoftware = 1,
127 kMixed = 2
129
131{
132 kUNIX = 0,
133 kCustom = 1
135
137{
138 kTAI = 0,
139 kUTC = 1
141
143{
144 std::string id;
145 uint32_t adr; // NOLINT(build/unsigned)
146 int32_t fanout;
147 uint32_t mux; // NOLINT(build/unsigned)
148 bool active;
149 uint32_t cdelay; // NOLINT(build/unsigned)
150 uint32_t fdelay; // NOLINT(build/unsigned)
151 uint32_t pdelay; // NOLINT(build/unsigned)
152
153 ActiveEndpointConfig(std::string aId,
154 uint32_t aAdr, // NOLINT(build/unsigned)
155 int32_t aFanout = -1,
156 uint32_t aMux = 0, // NOLINT(build/unsigned)
157 uint32_t coarse_delayay = 0, // NOLINT(build/unsigned)
158 uint32_t fine_delayay = 0) // NOLINT(build/unsigned)
159 : id(aId)
160 , adr(aAdr)
161 , fanout(aFanout)
162 , mux(aMux)
163 , active(true)
164 , cdelay(coarse_delayay)
165 , fdelay(fine_delayay)
166 , pdelay(0)
167 {}
168};
169
170} // namespace timing
171} // namespace dunedaq
172
173#endif // TIMING_INCLUDE_TIMING_DEFINITIONS_HPP_
std::map< std::string, uint32_t > Snapshot
The DUNE-DAQ namespace.
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)