ChimeraTK-DeviceAccess  03.18.00
createDataConverter.cc
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 "createDataConverter.h"
5 
7 
8 namespace ChimeraTK::detail {
9 
10  template<>
11  FixedPointConverter createDataConverter<FixedPointConverter>(
12  const NumericAddressedRegisterInfo& registerInfo, size_t channelIndex) {
13  return FixedPointConverter(registerInfo.pathName, registerInfo.channels[channelIndex].width,
14  registerInfo.channels[channelIndex].nFractionalBits, registerInfo.channels[channelIndex].signedFlag);
15  }
16 
17  template<>
18  IEEE754_SingleConverter createDataConverter<IEEE754_SingleConverter>(
19  const NumericAddressedRegisterInfo&, [[maybe_unused]] size_t channelIndex) {
20  return IEEE754_SingleConverter();
21  }
22 
23 } // namespace ChimeraTK::detail
createDataConverter.h
NumericAddressedRegisterCatalogue.h