1COMEDI_DIO_CONFIG(3)                                      COMEDI_DIO_CONFIG(3)
2
3
4

NAME

6       comedi_dio_config - change input/output properties of channel
7

SYNOPSIS

9       #include <comedilib.h>
10
11       int  comedi_dio_config  (comedi_t  *  device,  unsigned  int subdevice,
12       unsigned int channel, unsigned int direction);
13

DESCRIPTION

15       The function comedi_dio_config() configures individual  channels  in  a
16       digital  I/O  subdevice  to be either input or output, depending on the
17       value of parameter direction.  Valid  directions  are  COMEDI_INPUT  or
18       COMEDI_OUTPUT.
19
20       Depending on the capabilities of the hardware device, multiple channels
21       may be grouped together to determine direction.  In this case, a single
22       call  to  comedi_dio_config()  for any channel in the group will affect
23       the entire group.
24
25       If sucessful, 1 is returned, otherwise -1.
26
27                                28 October 2007           COMEDI_DIO_CONFIG(3)
Impressum