RTXI 2.4 The Real-Time eXperiment Interface Documentation |
#include <daq.h>
Public Member Functions | |
Device (std::string, IO::channel_t *, size_t) | |
virtual | ~Device (void) |
virtual size_t | getChannelCount (type_t type) const =0 |
virtual bool | getChannelActive (type_t type, index_t index) const =0 |
virtual int | setChannelActive (type_t type, index_t index, bool state)=0 |
virtual size_t | getAnalogRangeCount (type_t type, index_t index) const =0 |
virtual size_t | getAnalogReferenceCount (type_t type, index_t index) const =0 |
virtual size_t | getAnalogUnitsCount (type_t type, index_t index) const =0 |
virtual size_t | getAnalogDownsample (type_t type, index_t index) const =0 |
virtual std::string | getAnalogRangeString (type_t type, index_t index, index_t range) const =0 |
virtual std::string | getAnalogReferenceString (type_t type, index_t index, index_t reference) const =0 |
virtual std::string | getAnalogUnitsString (type_t type, index_t index, index_t units) const =0 |
virtual double | getAnalogGain (type_t type, index_t index) const =0 |
virtual double | getAnalogZeroOffset (type_t type, index_t index) const =0 |
virtual index_t | getAnalogRange (type_t type, index_t index) const =0 |
virtual index_t | getAnalogReference (type_t type, index_t index) const =0 |
virtual index_t | getAnalogUnits (type_t type, index_t index) const =0 |
virtual index_t | getAnalogOffsetUnits (type_t type, index_t index) const =0 |
virtual int | setAnalogGain (type_t type, index_t index, double gain)=0 |
virtual int | setAnalogRange (type_t type, index_t index, index_t range)=0 |
virtual int | setAnalogZeroOffset (type_t type, index_t index, double offset)=0 |
virtual int | setAnalogReference (type_t type, index_t index, index_t reference)=0 |
virtual int | setAnalogUnits (type_t type, index_t index, index_t units)=0 |
virtual int | setAnalogOffsetUnits (type_t type, index_t index, index_t units)=0 |
virtual int | setAnalogDownsample (type_t type, index_t index, size_t downsample)=0 |
virtual int | setAnalogCounter (type_t type, index_t index)=0 |
virtual int | setAnalogCalibrationValue (type_t type, index_t index, double value)=0 |
virtual double | getAnalogCalibrationValue (type_t type, index_t index) const =0 |
virtual int | setAnalogCalibrationActive (type_t type, index_t index, bool state)=0 |
virtual bool | getAnalogCalibrationActive (type_t type, index_t index) const =0 |
virtual bool | getAnalogCalibrationState (type_t type, index_t index) const =0 |
virtual direction_t | getDigitalDirection (index_t index) const =0 |
virtual int | setDigitalDirection (index_t index, direction_t direction)=0 |
![]() | |
Device (void) | |
virtual void | read (void) |
virtual void | write (void) |
bool | getActive (void) const |
void | setActive (bool) |
![]() | |
Node (void) | |
virtual | ~Node (void) |
bool | operator== (const Node &x) const |
![]() | |
Block (std::string name, channel_t *channels, size_t size) | |
virtual | ~Block (void) |
std::string | getName (void) const |
virtual size_t | getCount (flags_t type) const |
virtual std::string | getName (flags_t type, size_t index) const |
virtual std::string | getDescription (flags_t type, size_t index) const |
virtual double | getValue (flags_t type, size_t index) const |
double | input (size_t index) const |
double | output (size_t index) const |
![]() | |
Object (void) | |
virtual | ~Object (void) |
ID | getID (void) const |
State | save (void) const |
void | load (const State &) |
void | deferred (const State &) |
Additional Inherited Members | |
![]() | |
typedef unsigned long | ID |
![]() | |
const static ID | INVALID = 0 |
![]() | |
double & | output (size_t index) |
![]() | |
virtual void | doLoad (const State &) |
virtual void | doDeferred (const State &) |
virtual void | doSave (State &) const |
DAQ::Device::Device | ( | std::string | name, |
IO::channel_t * | chan, | ||
size_t | size | ||
) |
| virtual |
Reimplemented from RT::Device.
Definition at line 28 of file daq.cpp.
Get the channel's active state of using its calibration.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
Get the channel's state of calibration.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
Get the calibration of the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
Implemented in AnalogyDevice.
Get the gain of the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
Get the index of the units for the selected channel zero offset.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
Get the index of the range for the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
Get the number of available ranges for the specified channel.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
| 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 AnalogyDevice.
Get the index of the reference for the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
Get the number of available reference for the specified channel.
type | The channel's type. \patam index The channel's index. |
Implemented in AnalogyDevice.
| 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 AnalogyDevice.
Get the index of the units for the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
Get the number of available units for the channel.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
| pure virtual |
Get a string representation of the specifed units.
type | The channel's type. |
index | The channel's index. |
units | The index of the channel's units. |
Implemented in AnalogyDevice.
Get the offset of the selected channel that makes the signal zero
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
Get the channel's active state.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
| pure virtual |
Get the number of channels of the specified type.
type | The type of the channels to be counted. |
Implemented in AnalogyDevice.
| pure virtual |
Get the direction of the specified digital channel.
index | The digital channel's index. |
Implemented in AnalogyDevice.
| pure virtual |
Set the calibration active state of the selected channel.
type | The channel's type. |
index | The channel's index. |
Implemented in AnalogyDevice.
| 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 AnalogyDevice.
Implemented in AnalogyDevice.
| pure virtual |
Implemented in AnalogyDevice.
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 AnalogyDevice.
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 AnalogyDevice.
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 AnalogyDevice.
| 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 AnalogyDevice.
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 AnalogyDevice.
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 AnalogyDevice.
Set the channel's active state.
type | The channel's type. |
index | The channel's index. |
state | The channel's new state. |
Implemented in AnalogyDevice.
| 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.