Project
Loading...
Searching...
No Matches
ErrorCodes.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef O2_MCH_RAW_ERROR_CODES_H
13#define O2_MCH_RAW_ERROR_CODES_H
14
15#include <string>
16#include <cstdint>
17
18namespace o2
19{
20namespace mch
21{
22namespace raw
23{
24
26 ErrorParity = 1, // 1
29 ErrorBadSyncPacket = 1 << 3, // 8
31 ErrorBadDataPacket = 1 << 5, // 32
32 ErrorBadClusterSize = 1 << 6, // 64
33 ErrorBadIncompleteWord = 1 << 7, // 128
34 ErrorTruncatedData = 1 << 8, // 256
35 ErrorTruncatedDataUL = 1 << 9, // 512
36 ErrorUnexpectedSyncPacket = 1 << 10, // 1024
37 ErrorBadELinkID = 1 << 11, // 2048
38 ErrorBadLinkID = 1 << 12, // 4096
39 ErrorUnknownLinkID = 1 << 13, // 8192
40 ErrorBadHBTime = 1 << 14, // 16384
41 ErrorNonRecoverableDecodingError = 1 << 15 // 32768
42};
43
44uint32_t getErrorCodesSize();
45
46std::string errorCodeAsString(uint32_t code);
47
48} // namespace raw
49} // namespace mch
50} // namespace o2
51
52#endif
uint32_t getErrorCodesSize()
@ ErrorHammingCorrectable
Definition ErrorCodes.h:27
@ ErrorHammingUncorrectable
Definition ErrorCodes.h:28
@ ErrorTruncatedDataUL
Definition ErrorCodes.h:35
@ ErrorBadHeartBeatPacket
Definition ErrorCodes.h:30
@ ErrorNonRecoverableDecodingError
Definition ErrorCodes.h:41
@ ErrorBadIncompleteWord
Definition ErrorCodes.h:33
@ ErrorBadClusterSize
Definition ErrorCodes.h:32
@ ErrorUnexpectedSyncPacket
Definition ErrorCodes.h:36
std::string errorCodeAsString(uint32_t code)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...