![]() |
ChimeraTK-DeviceAccess 03.25.00
|
Register accessor for accessing multiplexed 2D array registers internally of a DummyBackend implementation. More...
#include <DummyRegisterAccessor.h>
Inheritance diagram for ChimeraTK::DummyMultiplexedRegisterAccessor< T >:
Collaboration diagram for ChimeraTK::DummyMultiplexedRegisterAccessor< T >:Public Member Functions | |
| DummyMultiplexedRegisterAccessor (DummyBackend *dev, std::string const &module, std::string const &name) | |
| Constructor should normally be called in the constructor of the DummyBackend implementation. | |
| void | operator= (const DummyMultiplexedRegisterAccessor &rightHandSide) const =delete |
| remove assignment operator since it will be confusing | |
| DummyMultiplexedRegisterAccessor (const DummyMultiplexedRegisterAccessor &)=default | |
| unsigned int | getNumberOfElements () |
| return number of elements per sequence | |
| unsigned int | getNumberOfSequences () |
| return number of sequences | |
| proxies::DummyRegisterSequence< T > | operator[] (unsigned int sequence) |
| Get or set register content by [] operators. | |
| DummyBackend & | getBackend () const |
| Return the backend. | |
| const RegisterPath & | getRegisterPath () const |
| Return the register path. | |
| const NumericAddressedRegisterInfo & | getRegisterInfo () |
Protected Attributes | |
| DummyBackend * | _dev |
| pointer to VirtualDevice | |
| NumericAddressedRegisterInfo | registerInfo |
| register map information | |
| RegisterPath | _path |
| path of the register | |
| std::vector< FixedPointConverter< DEPRECATED_FIXEDPOINT_DEFAULT > > | fpc |
| pointer to fixed point converter | |
| std::vector< uint32_t > | offsets |
| offsets in bytes for sequences | |
| std::vector< uint32_t > | nbytes |
| number of bytes per word for sequences | |
| int | pitch = {0} |
| pitch in bytes (distance between samples of the same sequence) | |
| unsigned int | nElements |
| number of elements per sequence | |
Register accessor for accessing multiplexed 2D array registers internally of a DummyBackend implementation.
This accessor is similar to the DummyRegister accessor but works with multiplexed registers. The interface is similar to the DummyRegister, it just introduces a second level of the [] operator. The first [] operator takes the sequence number (aka. channel number) as an argument, the second [] operator needs the index (aka. sample numeber) inside the sequence. Returned is then again a temporary proxy element of the same type as for the DummyRegister accessor, so it can again be used mostly like a variable of the type T.
Definition at line 222 of file DummyRegisterAccessor.h.
|
inline |
Constructor should normally be called in the constructor of the DummyBackend implementation.
dev must be the pointer to the DummyBackend to be accessed. A raw pointer is needed, as used inside the DummyBackend itself. module and name denominate the register entry in the map file. Note: The string "AREA_MULTIPLEXED_SEQUENCE_" will be prepended to the name when searching for the register.
Definition at line 230 of file DummyRegisterAccessor.h.
|
default |
|
inline |
Return the backend.
Definition at line 282 of file DummyRegisterAccessor.h.
|
inline |
return number of elements per sequence
Definition at line 261 of file DummyRegisterAccessor.h.
|
inline |
return number of sequences
Definition at line 264 of file DummyRegisterAccessor.h.
|
inline |
Definition at line 287 of file DummyRegisterAccessor.h.
|
inline |
Return the register path.
Definition at line 285 of file DummyRegisterAccessor.h.
|
delete |
remove assignment operator since it will be confusing
|
inline |
Get or set register content by [] operators.
The first [] denotes the sequence (aka. channel number), the second [] indicates the sample inside the sequence. This means that in a sense the first index is the faster counting index. Example: myMuxRegister[3][987] will give you the 988th sample of the 4th channel.
Definition at line 271 of file DummyRegisterAccessor.h.
|
protected |
pointer to VirtualDevice
Definition at line 291 of file DummyRegisterAccessor.h.
|
protected |
path of the register
Definition at line 297 of file DummyRegisterAccessor.h.
|
protected |
pointer to fixed point converter
Definition at line 300 of file DummyRegisterAccessor.h.
|
protected |
number of bytes per word for sequences
Definition at line 306 of file DummyRegisterAccessor.h.
|
protected |
number of elements per sequence
Definition at line 312 of file DummyRegisterAccessor.h.
|
protected |
offsets in bytes for sequences
Definition at line 303 of file DummyRegisterAccessor.h.
|
protected |
pitch in bytes (distance between samples of the same sequence)
Definition at line 309 of file DummyRegisterAccessor.h.
|
protected |
register map information
Definition at line 294 of file DummyRegisterAccessor.h.