Advantech PCI-1736UP Spezifikationen Seite 72

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 159
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 71
Comedi
61 / 148
5.4.4.2 comedi_dio_config
comedi_dio_config — change input/output properties of channel
Synopsis
#include <comedilib.h>
int comedi_dio_config(comedi_t * device, unsigned int subdevice, unsigned int channel, unsigned int direction);
Description
The function comedi_dio_config() configures individual channels in a digital I/O subdevice to be either input or output,
depending on the value of direction. Valid directions are COMEDI_INPUT or COMEDI_OUTPUT.
Depending on the characteristics of the hardware device, multiple channels might be grouped together in hardware when config-
uring the input/output direction. In this case, a single call to comedi_dio_config() for any channel in the group will affect
the entire group.
Return value
If successful, 0 is returned, otherwise -1.
5.4.4.3 comedi_dio_get_config
comedi_dio_get_config — query input/output properties of channel
Synopsis
#include <comedilib.h>
int comedi_dio_get_config(comedi_t * device, unsigned int subdevice, unsigned int channel, unsigned int * direction);
Description
The function comedi_dio_get_config() queries the input/output configuration of an individual channel in a digital I/O
subdevice (see comedi_dio_config()). On success,
*
direction will be set to either COMEDI_INPUT or COMEDI_OU-
TPUT.
Return value
If successful, 0 is returned, otherwise -1.
5.4.4.4 comedi_dio_read
comedi_dio_read — read single bit from digital channel
Synopsis
#include <comedilib.h>
int comedi_dio_read(comedi_t * device, unsigned int subdevice, unsigned int channel, unsigned int * bit);
Seitenansicht 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 158 159

Kommentare zu diesen Handbüchern

Keine Kommentare