4#include <ChimeraTK/Device.h>
5#include <ChimeraTK/NumericAddress.h>
45 temperatureSetPoint.
read();
46 std::cout <<
"Current temperature set point is " << temperatureSetPoint << std::endl;
47 temperatureSetPoint += 15;
48 std::cout <<
"Temperature set point changed to " << temperatureSetPoint << std::endl;
49 temperatureSetPoint.
write();
Class allows to read/write registers from device.
void close()
Close the device.
ScalarRegisterAccessor< UserType > getScalarRegisterAccessor(const RegisterPath ®isterPathName, size_t wordOffsetInRegister=0, const AccessModeFlags &flags=AccessModeFlags({})) const
Get a ScalarRegisterObject object for the given register.
void open(std::string const &aliasName)
Open a device by the given alias name from the DMAP file.
Accessor class to read and write scalar registers transparently by using the accessor object like a v...
bool write(ChimeraTK::VersionNumber versionNumber={})
Write the data to device.
void read()
Read the data from the device.
RegisterPath BAR()
The numeric_address::BAR() function can be used to directly access registers by numeric addresses,...