Rechercher une page de manuel
comedi_dio_config
Langue: en
Version: 28 October 2007 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
comedi_dio_config - change input/output properties of channelSYNOPSIS
#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 parameter direction. Valid directions are COMEDI_INPUT or COMEDI_OUTPUT.
Depending on the capabilities of the hardware device, multiple channels may be grouped together to determine direction. In this case, a single call to comedi_dio_config() for any channel in the group will affect the entire group.
If sucessful, 1 is returned, otherwise -1.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre