APCI1710_Dig_io.h revision c995fe9475e062bab6f5a45ed28cd2d3d955ef43
1/** 2@verbatim 3 4Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module. 5 6 ADDI-DATA GmbH 7 Dieselstrasse 3 8 D-77833 Ottersweier 9 Tel: +19(0)7223/9493-0 10 Fax: +49(0)7223/9493-92 11 http://www.addi-data-com 12 info@addi-data.com 13 14This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 15 16This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 17 18You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 20You shoud also find the complete GPL in the COPYING file accompanying this source code. 21 22@endverbatim 23*/ 24 25#define APCI1710_ON 1 // Digital Output ON or OFF 26#define APCI1710_OFF 0 27 28#define APCI1710_INPUT 0 // Digital I/O 29#define APCI1710_OUTPUT 1 30 31#define APCI1710_DIGIO_MEMORYONOFF 0x10 // 32#define APCI1710_DIGIO_INIT 0x11 33 34/* 35+----------------------------------------------------------------------------+ 36| DIGITAL I/O INISIALISATION FUNCTION | 37+----------------------------------------------------------------------------+ 38*/ 39 40INT i_APCI1710_InsnConfigDigitalIO(comedi_device * dev, comedi_subdevice * s, 41 comedi_insn * insn, lsampl_t * data); 42 43/* 44+----------------------------------------------------------------------------+ 45| INPUT OUTPUT FUNCTIONS | 46+----------------------------------------------------------------------------+ 47*/ 48INT i_APCI1710_InsnReadDigitalIOChlValue(comedi_device * dev, 49 comedi_subdevice * s, comedi_insn * insn, lsampl_t * data); 50 51INT i_APCI1710_InsnWriteDigitalIOChlOnOff(comedi_device * dev, 52 comedi_subdevice * s, comedi_insn * insn, lsampl_t * data); 53 54INT i_APCI1710_InsnBitsDigitalIOPortOnOff(comedi_device * dev, 55 comedi_subdevice * s, comedi_insn * insn, lsampl_t * data); 56