RTXI 3.0.0 The Real-Time eXperiment Interface Reference Manual |
#include <daq.hpp>
Public Member Functions | |
Device (const std::string &dev_name, const std::vector< IO::channel_t > &channels) | |
virtual size_t | getChannelCount (ChannelType::type_t type) const =0 |
virtual bool | getChannelActive (ChannelType::type_t type, index_t index) const =0 |
virtual int | setChannelActive (ChannelType::type_t type, index_t index, bool state)=0 |
virtual size_t | getAnalogRangeCount (index_t index) const =0 |
virtual size_t | getAnalogReferenceCount (index_t index) const =0 |
virtual size_t | getAnalogUnitsCount (index_t index) const =0 |
virtual size_t | getAnalogDownsample (ChannelType::type_t type, index_t index) const =0 |
virtual std::string | getAnalogRangeString (ChannelType::type_t type, index_t index, index_t range) const =0 |
virtual std::string | getAnalogReferenceString (ChannelType::type_t type, index_t index, index_t reference) const =0 |
virtual std::string | getAnalogUnitsString (ChannelType::type_t type, index_t index, index_t units) const =0 |
virtual double | getAnalogGain (ChannelType::type_t type, index_t index) const =0 |
virtual double | getAnalogZeroOffset (ChannelType::type_t type, index_t index) const =0 |
virtual index_t | getAnalogRange (ChannelType::type_t type, index_t index) const =0 |
virtual index_t | getAnalogReference (ChannelType::type_t type, index_t index) const =0 |
virtual index_t | getAnalogUnits (ChannelType::type_t type, index_t index) const =0 |
virtual index_t | getAnalogOffsetUnits (ChannelType::type_t type, index_t index) const =0 |
virtual int | setAnalogGain (ChannelType::type_t type, index_t index, double gain)=0 |
virtual int | setAnalogRange (ChannelType::type_t type, index_t index, index_t range)=0 |
virtual int | setAnalogZeroOffset (ChannelType::type_t type, index_t index, double offset)=0 |
virtual int | setAnalogReference (ChannelType::type_t type, index_t index, index_t reference)=0 |
virtual int | setAnalogUnits (ChannelType::type_t type, index_t index, index_t units)=0 |
virtual int | setAnalogOffsetUnits (ChannelType::type_t type, index_t index, index_t units)=0 |
virtual int | setAnalogDownsample (ChannelType::type_t type, index_t index, size_t downsample)=0 |
virtual int | setAnalogCounter (ChannelType::type_t type, index_t index)=0 |
virtual int | setAnalogCalibrationValue (ChannelType::type_t type, index_t index, double value)=0 |
virtual double | getAnalogCalibrationValue (ChannelType::type_t type, index_t index) const =0 |
virtual int | setAnalogCalibrationActive (ChannelType::type_t type, index_t index, bool state)=0 |
virtual bool | getAnalogCalibrationActive (ChannelType::type_t type, index_t index) const =0 |
virtual bool | getAnalogCalibrationState (ChannelType::type_t type, index_t index) const =0 |
virtual int | setDigitalDirection (index_t index, direction_t direction)=0 |
Public Member Functions inherited from RT::Device | |
Device (std::string n, const std::vector< IO::channel_t > &c) | |
Device (const Device &)=default | |
Device & | operator= (const Device &)=default |
Device (Device &&)=delete | |
Device & | operator= (Device &&)=delete |
~Device () override=default | |
virtual void | read ()=0 |
virtual void | write ()=0 |
Public Member Functions inherited from IO::Block | |
Block (std::string blockname, const std::vector< channel_t > &channels, bool isdependent) | |
Block (const Block &block)=default | |
Block & | operator= (const Block &block)=default |
Block (Block &&)=delete | |
Block & | operator= (Block &&)=delete |
virtual | ~Block ()=default |
std::string | getName () const |
size_t | getCount (flags_t type) const |
std::string | getChannelName (IO::flags_t type, size_t index) const |
std::string | getChannelDescription (IO::flags_t type, size_t index) const |
void | writeinput (size_t index, const double &data) |
const double & | readPort (IO::flags_t direction, size_t index) |
bool | dependent () const |
bool | getActive () const |
void | setActive (bool act) |
void | assignID (size_t block_id) |
size_t | getID () const |
Additional Inherited Members | |
Protected Member Functions inherited from IO::Block | |
double & | readinput (size_t index) |
void | writeoutput (size_t index, const double &data) |
| inline |
| pure virtual |
Get the channel's active state of using its calibration.
type | The channel's type. |
index | The channel's index. |
Implemented in Device.
| pure virtual |
Get the channel's state of calibration.
type | The channel's type. |
index | The channel's index. |
Implemented in Device.
| pure virtual |
Get the calibration of the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in Device.
| pure virtual |
Implemented in Device.
| pure virtual |
Get the gain of the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in Device.
| pure virtual |
Get the index of the units for the selected channel zero offset.
type | The channel's type. |
index | The channel's index. |
Implemented in Device.
| pure virtual |
Get the index of the range for the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in Device.
| pure virtual |
Get the number of available ranges for the specified channel.
index | The channel's index. |
Implemented in Device.
| pure virtual |
Get a string representation of the specified range.
type | The channel's type. |
index | The channel's index. |
range | The index of the channel's range. |
Implemented in Device.
| pure virtual |
Get the index of the reference for the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in Device.
| pure virtual |
Get the number of available reference for the specified channel.
\patam index The channel's index.
Implemented in Device.
| pure virtual |
Get a string representation of the specified reference.
type | The channel's type. |
index | The channel's index. |
reference | The index of the channel's reference. |
Implemented in Device.
| pure virtual |
Get the index of the units for the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in Device.
| pure virtual |
Get the number of available units for the channel.
index | The channel's index. |
Implemented in Device.
| pure virtual |
Get a string representation of the specified units.
type | The channel's type. |
index | The channel's index. |
units | The index of the channel's units. |
Implemented in Device.
| pure virtual |
Get the offset of the selected channel that makes the signal zero
type | The channel's type. |
index | The channel's index. |
Implemented in Device.
| pure virtual |
Get the channel's active state.
type | The channel's type. |
index | The channel's index. |
Implemented in Device.
| pure virtual |
Get the number of channels of the specified type.
type | The type of the channels to be counted. |
Implemented in Device.
| pure virtual |
Set the calibration active state of the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in Device.
| pure virtual |
Set the calibration of the selected channel.
type | The channel's type. |
index | The channel's index. |
value | The calibration value. |
Implemented in Device.
| pure virtual |
Implemented in Device.
| pure virtual |
Implemented in Device.
| pure virtual |
Set the gain of the selected channel.
type | The channel's type. |
index | The channel's index. |
gain | The channel's new gain. |
Implemented in Device.
| pure virtual |
Set the offset units of the selected channel.
type | The channel's type. |
index | The channel's index. |
units | The channel's new offset units index. |
Implemented in Device.
| pure virtual |
Set the range of the selected channel.
type | The channel's type. |
index | The channel's index. |
range | The channel's new range index. |
Implemented in Device.
| pure virtual |
Set the reference of the selected channel.
type | The channel's type. |
index | The channel's index. |
reference | The channel's new reference index. |
Implemented in Device.
| pure virtual |
Set the units of the selected channel.
type | The channel's type. |
index | The channel's index. |
units | The channel's new units index. |
Implemented in Device.
| pure virtual |
Set the zero offset of the selected channel.
type | The channel's type. |
index | The channel's index. |
offset | The channel's new zero offset index. |
Implemented in Device.
| pure virtual |
Set the channel's active state.
type | The channel's type. |
index | The channel's index. |
state | The channel's new state. |
Implemented in Device.
| pure virtual |
Set the direction of the specified digital channel.
index | The digital channel's index. |
direction | The digital channel's new direction. |
Implemented in AnalogyDevice, and Device.