17#ifndef FakeIOControl_H_
18#define FakeIOControl_H_
33 static const size_t maxChannelNum = 32;
42 std::vector<int> chInputs;
43 mutable std::vector<int> chOutputs;
49 virtual int getAnalogChannel(
int subdev,
int channel,
int range = 0,
int aref = AREF_GROUND,
int adelay = 10 * 1000 )
const override;
51 virtual void setAnalogChannel(
int subdev,
int channel,
int data,
int range = 0,
int aref = AREF_GROUND )
const override;
53 virtual bool getDigitalChannel(
int subdev,
int channel )
const override;
55 virtual void setDigitalChannel(
int subdev,
int channel,
bool bit )
const override;
57 virtual void configureSubdev(
int subdev, SubdevType type )
const override;
59 virtual void configureChannel(
int subdev,
int channel, ChannelType type,
int range = 0,
int aref = 0 )
const override;
68 uniset::ObjectId icID,
const std::shared_ptr<SharedMemory>& shm =
nullptr,
int numcards = 2,
const std::string& prefix =
"io" );
72 static std::shared_ptr<FakeIOControl>
init_iocontrol(
int argc,
const char*
const* argv,
74 const std::string& prefix =
"io" );
Definition ComediInterface.h:29
Definition FakeIOControl.h:28
Definition FakeIOControl.h:65
static std::shared_ptr< FakeIOControl > init_iocontrol(int argc, const char *const *argv, uniset::ObjectId icID, const std::shared_ptr< SharedMemory > &ic=nullptr, const std::string &prefix="io")
Definition FakeIOControl.cc:59
Definition IOControl.h:241
Definition AccessConfig.h:30
long ObjectId
Definition UniSetTypes_i.idl:30