DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimingIssues.hpp
Go to the documentation of this file.
1
11#ifndef TIMING_INCLUDE_TIMING_TIMINGISSUES_HPP_
12#define TIMING_INCLUDE_TIMING_TIMINGISSUES_HPP_
13
14#include "ers/Issue.hpp"
15#include "logging/Logging.hpp" // NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
16
17#include <string>
18
19namespace dunedaq {
20
21// Generic exceptions
23 FileNotFound,
24 file_path << " does not exist!",
25 ((std::string)file_path)
26)
29 file_path << " corrupted",
30 ((std::string)file_path)
31)
33 FileIsDirectory,
35 file_path << " is a directory",
36 ((std::string)file_path),
38)
39
41 EnvironmentVariableNotSet,
42 "Environment variable: " << env_var << " not set",
43 ((std::string)env_var)
44)
45
46// I2C related issues
48 I2CException,
49 " I2CException on bus: " << bus_id,
50 ((std::string)bus_id)
51)
52
54 I2CDeviceNotFound,
55 I2CException,
56 " I2C device: " << device_id << " not found on bus: " << bus_id,
57 ((std::string)bus_id),
58 ((std::string)device_id)
59)
60
62 timing,
63 I2CBusArbitrationLost,
64 I2CException,
65 " I2C bus: " << bus_id << " arbitration lost. Is another application running?",
66 ((std::string)bus_id),
68)
69
71 timing,
72 I2CTransactionTimeout,
73 I2CException,
74 " I2C bus: "
75 << bus_id
76 << " error. Transaction timeout - the 'Transfer in Progress' bit remained high for too long",
78 ((std::string)bus_id),
80)
81
83 I2CNoAcknowledgeReceived,
84 I2CException,
85 " I2C bus: " << bus_id << " error. No acknowledge received",
86 ((std::string)bus_id),
88)
89
91 I2CTransferFinishedBusStillBusy,
92 I2CException,
93 " I2C bus: " << bus_id
94 << " error. Transfer finished but bus still busy",
95 ((std::string)bus_id),
97)
98
100 UnknownBoardType,
101 " Unknown board type: " << board_type,
102 ((std::string)board_type)
103)
104
106 UnknownCarrierType,
107 " Unknown carrier type: " << carrier_type,
108 ((std::string)carrier_type)
109)
110
112 UnknownDesignType,
113 " Unknown design type: " << design_type,
114 ((std::string)design_type)
115)
116
118 UnknownBoardUID,
119 " Unknown UID-board revision mapping: " << board_uid,
120 ((std::string)board_uid)
121)
122
124 UnknownFirmwareClockFrequency,
125 frequency << " Hz is not a known timing firmwaare clock frequency!",
126 ((std::uint32_t)frequency) // NOLINT(build/unsigned) /< Message parameters
127)
128
130 MissingBoardTypeMapEntry,
131 " Board type not in board type map: " << board_type,
132 ((std::string)board_type)
133)
134
136 MissingBoardRevisionMapEntry,
137 " Board revision not in board revision map: " << board_rev,
138 ((std::string)board_rev)
139)
140
142 MissingCarrierTypeMapEntry,
143 " Carrier type not in carrier type map: " << carrier_type,
144 ((std::string)carrier_type)
145)
146
148 MissingDesignTypeMapEntry,
149 " Design type not in design type map: " << design_type,
150 ((std::string)design_type)
151)
152
154 MissingClockSourceMapEntry,
155 " Clock source not in clock source map: " << clock_source,
156 ((std::string)clock_source)
157)
158
160 ClockConfigNotFound,
161 " Clock config file not found for key: " << clock_key,
162 ((std::string)clock_key)
163)
164
166 InvalidDACId,
167 " Invalid DAC ID: " << dac_id,
168 ((std::string)dac_id)
169)
170
172 EchoReplyTimeout,
173 " Timeout whilst waiting for echo reply.",
174 ERS_EMPTY
175)
176
178 EchoFlagTimeout,
179 " Timeout whilst waiting for echo reply flag. Timeout (ms): " << std::to_string(timeout),
180 ((uint)timeout)
181)
182
184 VLCommandReplyTimeout,
185 " Timeout whilst waiting for variable length (async) command reply.",
186 ERS_EMPTY
187)
188
190 VLCommandReplyBufferFlagTimeout,
191 " Timeout whilst waiting for variable length (async) reply buffer response flag set. Timeout (ms): " << std::to_string(timeout),
192 ((uint)timeout)
193)
194
196 InvalidVLCommandReplyPacket,
197 " Variable length (async) command reply packet invalid. byte 0,1,2: " << std::hex << "0x" << byte_0 << ", 0x" << byte_1 << ", 0x" << byte_2,
198 ((uint32_t)byte_0)((uint32_t)byte_1)((uint32_t)byte_2)
199)
200
202 FormatCountersTableNodesTitlesMismatch,
203 " Mismatch between number counters nodes and titles",
204 ERS_EMPTY
205)
206
207// SFP related issues
209 InvalidSFPId,
210 " Invalid SFP ID: " << sfp_id,
211 ((std::string)sfp_id)
212)
213
215 SFPUnreachable,
216 " Failed to reach SFP on I2C bus: " << bus_id,
217 ((std::string)bus_id)
218)
219
221 SFPDDMUnsupported,
222 " SFP on I2C bus: " << bus_id << " does not support DDM",
223 ((std::string)bus_id)
224)
225
227 SFPDDMI2CAddressSwapUnsupported,
228 " SFP DDM I2C address swap not supported. SFP on I2C bus: " << bus_id,
229 ((std::string)bus_id)
230)
231
233 SoftTxLaserControlUnsupported,
234 " SFP on I2C bus: " << bus_id << " does not support soft tx laser control",
235 ((std::string)bus_id)
236)
237
239 UnsupportedFunction,
240 message,
241 ((std::string)message)
242)
244 BadRequestedFakeTriggerRate,
245 " Requested trigger rate: " << std::to_string(trig_rate) << ", ps: " << std::to_string(ps)
246 << ", out of range.",
247 ((double)trig_rate)((uint)ps)
248)
249
251 EndpointNotReady,
252 ept_description << " endpoint not ready. Current state: 0x" << std::hex << ept_state,
253 ((std::string)ept_description)((uint32_t)ept_state)
254)
255
257 ReceiverNotReady,
258 " Receiver not ready. CDR locked: " << cdr_locked << ", Rx ready: " << rx_ready,
259 ((uint32_t)cdr_locked)((uint32_t)rx_ready)
260)
261
263 ClocksNotReady, //< Issue class name
264 clocks_description << " clocks not ready.",
265 ((std::string)clocks_description)
266)
267
268ERS_DECLARE_ISSUE(timing, HSIBufferIssue, "HSI buffer in state: " << buffer_state, ((std::string)buffer_state))
269
271 EnclustraSwitchFailure,
272 " Failed to program Enclustra I2C IO expander. FMC I2C access may not work.",
273 ERS_EMPTY)
274
276 IncompatibleMajorMasterFirmwareVersion,
277 " Incompatible major master firmware version; found: " << found_firmware_version << ", required: " << required_firmware_version,
278 ((int)found_firmware_version)((int)required_firmware_version)
279)
280
282 IncompatibleMinorMasterFirmwareVersion,
283 " Incompatible minor master firmware version; found: " << found_firmware_version << ", required: " << required_firmware_version,
284 ((int)found_firmware_version)((int)required_firmware_version)
285)
286
288 IncompatiblePatchMasterFirmwareVersion,
289 " Incompatible patch master firmware version; found: " << found_firmware_version << ", required: " << required_firmware_version,
290 ((int)found_firmware_version)((int)required_firmware_version)
291)
292
294 IncompatibleMajorEndpointFirmwareVersion,
295 " Incompatible major endpoint firmware version; found: " << found_firmware_version << ", required: " << required_firmware_version,
296 ((int)found_firmware_version)((int)required_firmware_version)
297)
298
300 IncompatibleMinorEndpointFirmwareVersion,
301 " Incompatible minor endpoint firmware version; found: " << found_firmware_version << ", required: " << required_firmware_version,
302 ((int)found_firmware_version)((int)required_firmware_version)
303)
304
306 IncompatiblePatchEndpointFirmwareVersion,
307 " Incompatible patch endpoint firmware version; found: " << found_firmware_version << ", required: " << required_firmware_version,
308 ((int)found_firmware_version)((int)required_firmware_version)
309)
310
312 FailedToUpdateHSIRandomRate,
313 " Random bit 0 trigger rate for HSI not updated!",
314 ERS_EMPTY) //< Message parameters
315
317 InvalidAMCSlot,
318 " Invalid AMC slot: " << amc_slot,
319 ((std::string)amc_slot)
320)
321
323 InvalidFixedLatencyCommand,
324 " Supplied fixed-latency broadcast command, 0x" << std::hex << command << " is invalid" ,
325 ((uint)command)
326)
327
329 InvalidFixedLatencyCommandChannel,
330 " Supplied fixed-latency broadcast command channel, 0x" << std::hex << channel << " is invalid" ,
331 ((uint)channel)
332)
333
335 MonitoredEndpointDead,
336 " Monitored endpoint at address 0x" << std::hex << ept_address << " did not respond",
337 ((uint16_t)ept_address)
338)
339
341 MonitoredEndpointUnexpectedState,
342 " Monitored endpoint at address 0x" << std::hex << ept_address << " is in an unexpected state: 0x" << ept_state,
343 ((uint16_t)ept_address)((uint32_t)ept_state)
344)
345
346ERS_DECLARE_ISSUE(timing, //< Namespace
347 EndpointBroadcastMessageCountersNotReady,
348 " Endpoint broadcast message counters are not ready!",
349 ERS_EMPTY
350)
351
353 MonitoredEndpointDelaySet,
354 " Applied delay " << delay << " to endpoint at address " << address << ", in state: " << state,
355 ((uint32_t)delay)((uint16_t)address)((uint16_t)state)
356)
357
359 UnknownTimestampSource,
360 " Unknown timestamp source: " << ts_source,
361 ((uint)ts_source)
362)
363} // namespace dunedaq
364
365#endif // TIMING_INCLUDE_TIMING_TIMINGISSUES_HPP_
#define ERS_DECLARE_ISSUE_BASE(namespace_name, class_name, base_class_name, message, base_attributes, attributes)
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
#define ERS_EMPTY
Including Qt Headers.
CorruptedFile
< Namespace