|
ChimeraTK-DeviceAccess
03.18.00
|
Go to the documentation of this file.
4 #include <ChimeraTK/Device.h>
5 #include <ChimeraTK/Utilities.h>
20 std::cout <<
"The clocks register has " << clocks.
getNElements() <<
" elements." << std::endl;
34 std::cout <<
"Clocks are";
35 for(
auto clockValue : clocks) {
36 std::cout <<
" " << clockValue;
38 std::cout << std::endl;
void close()
Close the device.
OneDRegisterAccessor< UserType > getOneDRegisterAccessor(const RegisterPath ®isterPathName, size_t numberOfWords=0, size_t wordOffsetInRegister=0, const AccessModeFlags &flags=AccessModeFlags({})) const
Get a OneDRegisterAccessor object for the given register.
unsigned int getNElements()
Return number of elements/samples in the register.
Accessor class to read and write registers transparently by using the accessor object like a vector o...
Class allows to read/write registers from device.
void open(std::string const &aliasName)
Open a device by the given alias name from the DMAP file.
bool write(ChimeraTK::VersionNumber versionNumber={})
Write the data to device.
void setDMapFilePath(std::string dmapFilePath)
Set the location of the dmap file.
void read()
Read the data from the device.