ChimeraTK-DeviceAccess 03.26.00
Loading...
Searching...
No Matches
FixedPointConverter< RawType > Class Template Reference

Public Types

using RawTypeUnsigned = std::make_unsigned_t< RawType >
 

Public Member Functions

 FixedPointConverter (std::string variableName, unsigned int nBits=32, int fractionalBits=0, bool isSignedFlag=true)
 
template<typename UserType >
UserType scalarToCooked (RawType raw) const
 
template<typename UserType >
RawType toRaw (UserType cooked) const
 

Detailed Description

template<typename RawType>
class FixedPointConverter< RawType >

Definition at line 76 of file testRawConverter.cpp.

Member Typedef Documentation

◆ RawTypeUnsigned

template<typename RawType >
using FixedPointConverter< RawType >::RawTypeUnsigned = std::make_unsigned_t<RawType>

Definition at line 82 of file testRawConverter.cpp.

Constructor & Destructor Documentation

◆ FixedPointConverter()

template<typename RawType >
FixedPointConverter< RawType >::FixedPointConverter ( std::string  variableName,
unsigned int  nBits = 32,
int  fractionalBits = 0,
bool  isSignedFlag = true 
)
inline

Definition at line 78 of file testRawConverter.cpp.

Member Function Documentation

◆ scalarToCooked()

template<typename RawType >
template<typename UserType >
UserType FixedPointConverter< RawType >::scalarToCooked ( RawType  raw) const
inline

Definition at line 85 of file testRawConverter.cpp.

◆ toRaw()

template<typename RawType >
template<typename UserType >
RawType FixedPointConverter< RawType >::toRaw ( UserType  cooked) const
inline

Definition at line 93 of file testRawConverter.cpp.


The documentation for this class was generated from the following file: