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 kUNIX = 0,
132 kCustom = 1
134
136{
137 kTAI = 0,
138 kUTC = 1
140
142{
143 std::string id;
144 uint32_t adr; // NOLINT(build/unsigned)
145 int32_t fanout;
146 uint32_t mux; // NOLINT(build/unsigned)
147 bool active;
148 uint32_t cdelay; // NOLINT(build/unsigned)
149 uint32_t fdelay; // NOLINT(build/unsigned)
150 uint32_t pdelay; // NOLINT(build/unsigned)
151
152 ActiveEndpointConfig(std::string aId,
153 uint32_t aAdr, // NOLINT(build/unsigned)
154 int32_t aFanout = -1,
155 uint32_t aMux = 0, // NOLINT(build/unsigned)
156 uint32_t coarse_delayay = 0, // NOLINT(build/unsigned)
157 uint32_t fine_delayay = 0) // NOLINT(build/unsigned)
158 : id(aId)
159 , adr(aAdr)
160 , fanout(aFanout)
161 , mux(aMux)
162 , active(true)
163 , cdelay(coarse_delayay)
164 , fdelay(fine_delayay)
165 , pdelay(0)
166 {}
167};
168
169} // namespace timing
170} // namespace dunedaq
171
172#endif // TIMING_INCLUDE_TIMING_DEFINITIONS_HPP_
std::map< std::string, uint32_t > Snapshot
The DUNE-DAQ namespace.
Definition DataStore.hpp:57
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)