31 explicit ComediInterface(
const std::string& dev,
const std::string& cname );
35 virtual int getAnalogChannel(
int subdev,
int channel,
int range = 0,
int aref = AREF_GROUND,
int adelay = 10 * 1000 )
const;
38 virtual void setAnalogChannel(
int subdev,
int channel,
int data,
int range = 0,
int aref = AREF_GROUND )
const;
41 virtual bool getDigitalChannel(
int subdev,
int channel )
const;
44 virtual void setDigitalChannel(
int subdev,
int channel,
bool bit )
const;
49 DI = INSN_CONFIG_DIO_INPUT,
50 DO = INSN_CONFIG_DIO_OUTPUT,
64 static std::string type2str( SubdevType t );
65 static SubdevType str2type(
const std::string& s );
68 virtual void configureSubdev(
int subdev, SubdevType type )
const;
71 virtual void configureChannel(
int subdev,
int channel, ChannelType type,
int range = 0,
int aref = 0 )
const;
73 inline const std::string devname()
const
78 inline const std::string cardname()
const