File tree Expand file tree Collapse file tree 5 files changed +57
-1
lines changed
Expand file tree Collapse file tree 5 files changed +57
-1
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ add_library(ReadoutCard SHARED
159159 src/Pda/PdaBar.cxx
160160 src/Pda/PdaDevice.cxx
161161 src/Pda/PdaDmaBuffer.cxx
162+ src/ReadoutCardVersion.cxx
162163 src/RocPciDevice.cxx
163164 src/Utilities/Hugetlbfs.cxx
164165 src/Utilities/MemoryMaps.cxx
Original file line number Diff line number Diff line change 2222#include "ReadoutCard/Exception.h"
2323#include "ReadoutCard/Parameters.h"
2424#include "ReadoutCard/RegisterReadWriteInterface.h"
25+ #include "ReadoutCard/Version.h"
Original file line number Diff line number Diff line change 1+
2+ // Copyright 2019-2020 CERN and copyright holders of ALICE O2.
3+ // See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
4+ // All rights not expressly granted are reserved.
5+ //
6+ // This software is distributed under the terms of the GNU General Public
7+ // License v3 (GPL Version 3), copied verbatim in the file "COPYING".
8+ //
9+ // In applying this license CERN does not waive the privileges and immunities
10+ // granted to it by virtue of its status as an Intergovernmental Organization
11+ // or submit itself to any jurisdiction.
12+
13+ #ifndef O2_READOUTCARD_INCLUDE_VERSION_H_
14+ #define O2_READOUTCARD_INCLUDE_VERSION_H_
15+
16+ namespace o2
17+ {
18+ namespace roc
19+ {
20+
21+ // / Get the ReadoutCard library version
22+ const char * getReadoutCardVersion ();
23+
24+ }
25+ }
26+
27+ #endif
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ static constexpr uint32_t DATA_MIDTRG(0x2);*/
200200
201201// / Registers for getting TTC info
202202static constexpr Register TTC_ONU_STICKY (0x00200014 );
203- static constexpr Register TTC_ONU_STICKY_MON (0x0020001c );
203+ static constexpr Register TTC_ONU_STICKY_MON (0x00200014 );
204204static constexpr Register TTC_PON_QUALITY (0x0010000C );
205205
206206// / Registers used for TTC calibration
Original file line number Diff line number Diff line change 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+ #include " ReadoutCard/Version.h"
13+
14+ #define O2_READOUTCARD_VERSION " 0.38.0"
15+
16+ namespace o2
17+ {
18+ namespace roc
19+ {
20+
21+ const char * getReadoutCardVersion ()
22+ {
23+ return O2_READOUTCARD_VERSION;
24+ }
25+
26+ }
27+ }
You can’t perform that action at this time.
0 commit comments