17 #ifndef ComediInterface_H_
18 #define ComediInterface_H_
21 #include <comedilib.h>
22 #include "Exceptions.h"
34 int getAnalogChannel(
int subdev,
int channel,
int range = 0,
int aref = AREF_GROUND )
37 void setAnalogChannel(
int subdev,
int channel,
int data,
int range = 0,
int aref = AREF_GROUND )
40 bool getDigitalChannel(
int subdev,
int channel )
43 void setDigitalChannel(
int subdev,
int channel,
bool bit )
50 DI = INSN_CONFIG_DIO_INPUT,
51 DO = INSN_CONFIG_DIO_OUTPUT,
65 static std::string type2str( SubdevType t );
66 static SubdevType str2type(
const std::string& s );
70 void configureChannel(
int subdev,
int channel, ChannelType type,
int range = 0,
int aref = 0 )
73 inline const std::string devname()
88 #endif // ComediInterface_H_
comedi_t * card
Definition: ComediInterface.h:80
Definition: CallbackTimer.h:29
Definition: Exceptions.h:44
Definition: ComediInterface.h:28