RTXI  2.4
The Real-Time eXperiment Interface Documentation
Public Member Functions
MockDAQDevice Class Reference

#include <daq_tests.h>

Inheritance diagram for MockDAQDevice:
Inheritance graph
Collaboration diagram for MockDAQDevice:
Collaboration graph

Public Member Functions

 MockDAQDevice (std::string a, IO::channel_t *b, size_t s)
 
 ~MockDAQDevice ()
 
 MOCK_METHOD (size_t, getChannelCount,(DAQ::type_t),(const, override))
 
 MOCK_METHOD (bool, getChannelActive,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (int, setChannelActive,(DAQ::type_t, DAQ::index_t, bool),(override))
 
 MOCK_METHOD (size_t, getAnalogRangeCount,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (size_t, getAnalogReferenceCount,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (size_t, getAnalogUnitsCount,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (size_t, getAnalogDownsample,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (std::string, getAnalogRangeString,(DAQ::type_t, DAQ::index_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (std::string, getAnalogReferenceString,(DAQ::type_t, DAQ::index_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (std::string, getAnalogUnitsString,(DAQ::type_t, DAQ::index_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (double, getAnalogGain,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (double, getAnalogZeroOffset,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (DAQ::index_t, getAnalogRange,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (DAQ::index_t, getAnalogReference,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (DAQ::index_t, getAnalogUnits,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (DAQ::index_t, getAnalogOffsetUnits,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (int, setAnalogGain,(DAQ::type_t, DAQ::index_t, double),(override))
 
 MOCK_METHOD (int, setAnalogRange,(DAQ::type_t, DAQ::index_t, DAQ::index_t),(override))
 
 MOCK_METHOD (int, setAnalogZeroOffset,(DAQ::type_t, DAQ::index_t, double),(override))
 
 MOCK_METHOD (int, setAnalogReference,(DAQ::type_t, DAQ::index_t, DAQ::index_t),(override))
 
 MOCK_METHOD (int, setAnalogUnits,(DAQ::type_t, DAQ::index_t, DAQ::index_t),(override))
 
 MOCK_METHOD (int, setAnalogOffsetUnits,(DAQ::type_t, DAQ::index_t, DAQ::index_t),(override))
 
 MOCK_METHOD (int, setAnalogDownsample,(DAQ::type_t, DAQ::index_t, size_t),(override))
 
 MOCK_METHOD (int, setAnalogCounter,(DAQ::type_t, DAQ::index_t),(override))
 
 MOCK_METHOD (int, setAnalogCalibrationValue,(DAQ::type_t, DAQ::index_t, double),(override))
 
 MOCK_METHOD (double, getAnalogCalibrationValue,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (int, setAnalogCalibrationActive,(DAQ::type_t, DAQ::index_t, bool),(override))
 
 MOCK_METHOD (bool, getAnalogCalibrationActive,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (bool, getAnalogCalibrationState,(DAQ::type_t, DAQ::index_t),(const, override))
 
 MOCK_METHOD (DAQ::direction_t, getDigitalDirection,(DAQ::index_t),(const, override))
 
 MOCK_METHOD (int, setDigitalDirection,(DAQ::index_t, DAQ::direction_t),(override))
 
- Public Member Functions inherited from DAQ::Device
 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
 
- Public Member Functions inherited from RT::Device
 Device (void)
 
virtual void read (void)
 
virtual void write (void)
 
bool getActive (void) const
 
void setActive (bool)
 
- Public Member Functions inherited from RT::List< T >::Node
 Node (void)
 
virtual ~Node (void)
 
bool operator== (const Node &x) const
 
- Public Member Functions inherited from IO::Block
 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
 
- Public Member Functions inherited from Settings::Object
 Object (void)
 
virtual ~Object (void)
 
ID getID (void) const
 
State save (void) const
 
void load (const State &)
 
void deferred (const State &)
 

Additional Inherited Members

- Public Types inherited from Settings::Object
typedef unsigned long ID
 
- Static Public Attributes inherited from Settings::Object
const static ID INVALID = 0
 
- Protected Member Functions inherited from IO::Block
double & output (size_t index)
 
- Protected Member Functions inherited from Settings::Object
virtual void doLoad (const State &)
 
virtual void doDeferred (const State &)
 
virtual void doSave (State &) const
 

Detailed Description

Definition at line 41 of file daq_tests.h.

Constructor & Destructor Documentation

◆ MockDAQDevice()

MockDAQDevice::MockDAQDevice(std::string a,
IO::channel_tb,
size_t s 
)
inline

Definition at line 44 of file daq_tests.h.

◆ ~MockDAQDevice()

MockDAQDevice::~MockDAQDevice()
inline

Definition at line 45 of file daq_tests.h.

Member Function Documentation

◆ MOCK_METHOD() [1/31]

MockDAQDevice::MOCK_METHOD(bool ,
getAnalogCalibrationActive ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [2/31]

MockDAQDevice::MOCK_METHOD(bool ,
getAnalogCalibrationState ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [3/31]

MockDAQDevice::MOCK_METHOD(bool ,
getChannelActive ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [4/31]

MockDAQDevice::MOCK_METHOD(DAQ::direction_t ,
getDigitalDirection ,
(DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [5/31]

MockDAQDevice::MOCK_METHOD(DAQ::index_t ,
getAnalogOffsetUnits ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [6/31]

MockDAQDevice::MOCK_METHOD(DAQ::index_t ,
getAnalogRange ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [7/31]

MockDAQDevice::MOCK_METHOD(DAQ::index_t ,
getAnalogReference ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [8/31]

MockDAQDevice::MOCK_METHOD(DAQ::index_t ,
getAnalogUnits ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [9/31]

MockDAQDevice::MOCK_METHOD(double ,
getAnalogCalibrationValue ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [10/31]

MockDAQDevice::MOCK_METHOD(double ,
getAnalogGain ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [11/31]

MockDAQDevice::MOCK_METHOD(double ,
getAnalogZeroOffset ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [12/31]

MockDAQDevice::MOCK_METHOD(int ,
setAnalogCalibrationActive ,
(DAQ::type_t, DAQ::index_t, bool) ,
(override)  
)

◆ MOCK_METHOD() [13/31]

MockDAQDevice::MOCK_METHOD(int ,
setAnalogCalibrationValue ,
(DAQ::type_t, DAQ::index_t, double) ,
(override)  
)

◆ MOCK_METHOD() [14/31]

MockDAQDevice::MOCK_METHOD(int ,
setAnalogCounter ,
(DAQ::type_t, DAQ::index_t,
(override)  
)

◆ MOCK_METHOD() [15/31]

MockDAQDevice::MOCK_METHOD(int ,
setAnalogDownsample ,
(DAQ::type_t, DAQ::index_t, size_t) ,
(override)  
)

◆ MOCK_METHOD() [16/31]

MockDAQDevice::MOCK_METHOD(int ,
setAnalogGain ,
(DAQ::type_t, DAQ::index_t, double) ,
(override)  
)

◆ MOCK_METHOD() [17/31]

MockDAQDevice::MOCK_METHOD(int ,
setAnalogOffsetUnits ,
(DAQ::type_t, DAQ::index_t, DAQ::index_t,
(override)  
)

◆ MOCK_METHOD() [18/31]

MockDAQDevice::MOCK_METHOD(int ,
setAnalogRange ,
(DAQ::type_t, DAQ::index_t, DAQ::index_t,
(override)  
)

◆ MOCK_METHOD() [19/31]

MockDAQDevice::MOCK_METHOD(int ,
setAnalogReference ,
(DAQ::type_t, DAQ::index_t, DAQ::index_t,
(override)  
)

◆ MOCK_METHOD() [20/31]

MockDAQDevice::MOCK_METHOD(int ,
setAnalogUnits ,
(DAQ::type_t, DAQ::index_t, DAQ::index_t,
(override)  
)

◆ MOCK_METHOD() [21/31]

MockDAQDevice::MOCK_METHOD(int ,
setAnalogZeroOffset ,
(DAQ::type_t, DAQ::index_t, double) ,
(override)  
)

◆ MOCK_METHOD() [22/31]

MockDAQDevice::MOCK_METHOD(int ,
setChannelActive ,
(DAQ::type_t, DAQ::index_t, bool) ,
(override)  
)

◆ MOCK_METHOD() [23/31]

MockDAQDevice::MOCK_METHOD(int ,
setDigitalDirection ,
(DAQ::index_t, DAQ::direction_t,
(override)  
)

◆ MOCK_METHOD() [24/31]

MockDAQDevice::MOCK_METHOD(size_t ,
getAnalogDownsample ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [25/31]

MockDAQDevice::MOCK_METHOD(size_t ,
getAnalogRangeCount ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [26/31]

MockDAQDevice::MOCK_METHOD(size_t ,
getAnalogReferenceCount ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [27/31]

MockDAQDevice::MOCK_METHOD(size_t ,
getAnalogUnitsCount ,
(DAQ::type_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [28/31]

MockDAQDevice::MOCK_METHOD(size_t ,
getChannelCount ,
(DAQ::type_t,
(const, override)  
)

◆ MOCK_METHOD() [29/31]

MockDAQDevice::MOCK_METHOD(std::string ,
getAnalogRangeString ,
(DAQ::type_t, DAQ::index_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [30/31]

MockDAQDevice::MOCK_METHOD(std::string ,
getAnalogReferenceString ,
(DAQ::type_t, DAQ::index_t, DAQ::index_t,
(const, override)  
)

◆ MOCK_METHOD() [31/31]

MockDAQDevice::MOCK_METHOD(std::string ,
getAnalogUnitsString ,
(DAQ::type_t, DAQ::index_t, DAQ::index_t,
(const, override)  
)

The documentation for this class was generated from the following file: