Skip to content

Commit c1c2212

Browse files
committed
added version number
1 parent a2bfdee commit c1c2212

File tree

5 files changed

+57
-1
lines changed

5 files changed

+57
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

include/ReadoutCard/ReadoutCard.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@
2222
#include "ReadoutCard/Exception.h"
2323
#include "ReadoutCard/Parameters.h"
2424
#include "ReadoutCard/RegisterReadWriteInterface.h"
25+
#include "ReadoutCard/Version.h"

include/ReadoutCard/Version.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

src/Cru/Constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static constexpr uint32_t DATA_MIDTRG(0x2);*/
200200

201201
/// Registers for getting TTC info
202202
static constexpr Register TTC_ONU_STICKY(0x00200014);
203-
static constexpr Register TTC_ONU_STICKY_MON(0x0020001c);
203+
static constexpr Register TTC_ONU_STICKY_MON(0x00200014);
204204
static constexpr Register TTC_PON_QUALITY(0x0010000C);
205205

206206
/// Registers used for TTC calibration

src/ReadoutCardVersion.cxx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
}

0 commit comments

Comments
 (0)