|
ChimeraTK-DeviceAccess
03.18.00
|
Go to the documentation of this file.
4 #include <ChimeraTK/Device.h>
5 #include <ChimeraTK/Utilities.h>
30 for(
auto& dataWord : dataRegion) {
42 for(
size_t i = 0; i < twoDAccessor.
getNChannels(); ++i) {
43 std::cout <<
"Channel " << i <<
":";
44 std::vector<double>& channel = twoDAccessor[i];
45 for(
double sample : channel) {
46 std::cout <<
" " << sample;
48 std::cout << std::endl;
Accessor class to read and write 2D registers.
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.
Class allows to read/write registers from device.
size_t getNChannels() const
Return the number of channels (formerly called sequences)
void open(std::string const &aliasName)
Open a device by the given alias name from the DMAP file.
TwoDRegisterAccessor< UserType > getTwoDRegisterAccessor(const RegisterPath ®isterPathName, size_t numberOfElements=0, size_t elementsOffset=0, const AccessModeFlags &flags=AccessModeFlags({})) const
Get a TwoDRegisterAccessor object for the given register.
void setDMapFilePath(std::string dmapFilePath)
Set the location of the dmap file.