ChimeraTK-DeviceAccess
03.18.00
helperFunctions.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Deutsches Elektronen-Synchrotron DESY, MSK, ChimeraTK Project <chimeratk-support@desy.de>
2
// SPDX-License-Identifier: LGPL-3.0-or-later
3
#pragma once
4
5
#include "
DeviceInfoMap.h
"
6
#include "
NumericAddressedRegisterCatalogue.h
"
7
8
void
populateDummyDeviceInfo
(
ChimeraTK::DeviceInfoMap::DeviceInfo
& deviceInfo, std::string dmapFileName,
9
std::string deviceName =
"card"
, std::string dev_file =
"/dev/dummy_device_identifier"
,
10
std::string map_file_name =
"/dev/dummy_map_file"
);
11
12
std::string
appendNumberToName
(std::string name,
int
cardNumber);
13
14
bool
compareDeviceInfos
(
15
const
ChimeraTK::DeviceInfoMap::DeviceInfo
& deviceInfo1,
const
ChimeraTK::DeviceInfoMap::DeviceInfo
& deviceInfo2);
populateDummyDeviceInfo
void populateDummyDeviceInfo(ChimeraTK::DeviceInfoMap::DeviceInfo &deviceInfo, std::string dmapFileName, std::string deviceName="card", std::string dev_file="/dev/dummy_device_identifier", std::string map_file_name="/dev/dummy_map_file")
Definition:
helperFunctions.cc:8
compareDeviceInfos
bool compareDeviceInfos(const ChimeraTK::DeviceInfoMap::DeviceInfo &deviceInfo1, const ChimeraTK::DeviceInfoMap::DeviceInfo &deviceInfo2)
Definition:
helperFunctions.cc:28
appendNumberToName
std::string appendNumberToName(std::string name, int cardNumber)
Definition:
helperFunctions.cc:22
NumericAddressedRegisterCatalogue.h
ChimeraTK::DeviceInfoMap::DeviceInfo
Stores information about one device.
Definition:
DeviceInfoMap.h:30
DeviceInfoMap.h
sources
ChimeraTK-DeviceAccess
tests
include
helperFunctions.h
Generated by
1.8.17