11#ifndef TIMING_INCLUDE_TIMING_TIMINGISSUES_HPP_
12#define TIMING_INCLUDE_TIMING_TIMINGISSUES_HPP_
24 file_path <<
" does not exist!",
25 ((std::string)file_path)
29 file_path <<
" corrupted",
30 ((std::string)file_path)
35 file_path <<
" is a directory",
36 ((std::string)file_path),
41 EnvironmentVariableNotSet,
42 "Environment variable: " << env_var <<
" not set",
43 ((std::string)env_var)
49 " I2CException on bus: " << bus_id,
56 " I2C device: " << device_id <<
" not found on bus: " << bus_id,
57 ((std::string)bus_id),
58 ((std::string)device_id)
63 I2CBusArbitrationLost,
65 " I2C bus: " << bus_id <<
" arbitration lost. Is another application running?",
66 ((std::string)bus_id),
72 I2CTransactionTimeout,
76 <<
" error. Transaction timeout - the 'Transfer in Progress' bit remained high for too long",
78 ((std::string)bus_id),
83 I2CNoAcknowledgeReceived,
85 " I2C bus: " << bus_id <<
" error. No acknowledge received",
86 ((std::string)bus_id),
91 I2CTransferFinishedBusStillBusy,
93 " I2C bus: " << bus_id
94 <<
" error. Transfer finished but bus still busy",
95 ((std::string)bus_id),
101 " Unknown board type: " << board_type,
102 ((std::string)board_type)
107 " Unknown carrier type: " << carrier_type,
108 ((std::string)carrier_type)
113 " Unknown design type: " << design_type,
114 ((std::string)design_type)
119 " Unknown UID-board revision mapping: " << board_uid,
120 ((std::string)board_uid)
124 UnknownFirmwareClockFrequency,
125 frequency <<
" Hz is not a known timing firmwaare clock frequency!",
126 ((std::uint32_t)frequency)
130 MissingBoardTypeMapEntry,
131 " Board type not in board type map: " << board_type,
132 ((std::string)board_type)
136 MissingBoardRevisionMapEntry,
137 " Board revision not in board revision map: " << board_rev,
138 ((std::string)board_rev)
142 MissingCarrierTypeMapEntry,
143 " Carrier type not in carrier type map: " << carrier_type,
144 ((std::string)carrier_type)
148 MissingDesignTypeMapEntry,
149 " Design type not in design type map: " << design_type,
150 ((std::string)design_type)
154 MissingClockSourceMapEntry,
155 " Clock source not in clock source map: " << clock_source,
156 ((std::string)clock_source)
161 " Clock config file not found for key: " << clock_key,
162 ((std::string)clock_key)
167 " Invalid DAC ID: " << dac_id,
168 ((std::string)dac_id)
173 " Timeout whilst waiting for echo reply.",
179 " Timeout whilst waiting for echo reply flag. Timeout (ms): " << std::to_string(timeout),
184 VLCommandReplyTimeout,
185 " Timeout whilst waiting for variable length (async) command reply.",
190 VLCommandReplyBufferFlagTimeout,
191 " Timeout whilst waiting for variable length (async) reply buffer response flag set. Timeout (ms): " << std::to_string(timeout),
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)
202 FormatCountersTableNodesTitlesMismatch,
203 " Mismatch between number counters nodes and titles",
210 " Invalid SFP ID: " << sfp_id,
211 ((std::string)sfp_id)
216 " Failed to reach SFP on I2C bus: " << bus_id,
217 ((std::string)bus_id)
222 " SFP on I2C bus: " << bus_id <<
" does not support DDM",
223 ((std::string)bus_id)
227 SFPDDMI2CAddressSwapUnsupported,
228 " SFP DDM I2C address swap not supported. SFP on I2C bus: " << bus_id,
229 ((std::string)bus_id)
233 SoftTxLaserControlUnsupported,
234 " SFP on I2C bus: " << bus_id <<
" does not support soft tx laser control",
235 ((std::string)bus_id)
241 ((std::string)message)
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)
252 ept_description <<
" endpoint not ready. Current state: 0x" << std::hex << ept_state,
253 ((std::string)ept_description)((uint32_t)ept_state)
258 " Receiver not ready. CDR locked: " << cdr_locked <<
", Rx ready: " << rx_ready,
259 ((uint32_t)cdr_locked)((uint32_t)rx_ready)
264 clocks_description <<
" clocks not ready.",
265 ((std::string)clocks_description)
271 EnclustraSwitchFailure,
272 " Failed to program Enclustra I2C IO expander. FMC I2C access may not work.",
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)
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)
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)
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)
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)
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)
312 FailedToUpdateHSIRandomRate,
313 " Random bit 0 trigger rate for HSI not updated!",
318 " Invalid AMC slot: " << amc_slot,
319 ((std::string)amc_slot)
323 InvalidFixedLatencyCommand,
324 " Supplied fixed-latency broadcast command, 0x" << std::hex << command <<
" is invalid" ,
329 InvalidFixedLatencyCommandChannel,
330 " Supplied fixed-latency broadcast command channel, 0x" << std::hex << channel <<
" is invalid" ,
335 MonitoredEndpointDead,
336 " Monitored endpoint at address 0x" << std::hex << ept_address <<
" did not respond",
337 ((uint16_t)ept_address)
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)
347 EndpointBroadcastMessageCountersNotReady,
348 " Endpoint broadcast message counters are not ready!",
353 MonitoredEndpointDelaySet,
354 " Applied delay " << delay <<
" to endpoint at address " <<
address <<
", in state: " << state,
355 ((uint32_t)delay)((uint16_t)
address)((uint16_t)state)
359 UnknownTimestampSource,
360 " Unknown timestamp source: " << ts_source,
#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)