ChimeraTK-DeviceAccess 03.25.00
Loading...
Searching...
No Matches
useCustomBackend.cpp
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
4#include <ChimeraTK/Device.h>
5#include <ChimeraTK/Utilities.h>
6
7int main() {
8 ChimeraTK::setDMapFilePath("registration_example.dmap");
9 // The device in known now because it is specified in the dmap file.
10
11 ChimeraTK::Device myCustomDevice;
12 myCustomDevice.open("MY_CUSTOM_DEVICE");
13
14 return 0;
15}
Class allows to read/write registers from device.
Definition Device.h:39
void open(std::string const &aliasName)
Open a device by the given alias name from the DMAP file.
Definition Device.cc:58
void setDMapFilePath(std::string dmapFilePath)
Set the location of the dmap file.
int main()