hwdrv_apci2200.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/********* Definitions for APCI-2200 card *****/ 25 26// Card Specific information 27#define APCI2200_BOARD_VENDOR_ID 0x15b8 28#define APCI2200_ADDRESS_RANGE 64 29 30//DIGITAL INPUT-OUTPUT DEFINE 31 32#define APCI2200_DIGITAL_OP 4 33#define APCI2200_DIGITAL_IP 0 34 35// TIMER COUNTER WATCHDOG DEFINES 36 37#define APCI2200_WATCHDOG 0x08 38#define APCI2200_WATCHDOG_ENABLEDISABLE 12 39#define APCI2200_WATCHDOG_RELOAD_VALUE 4 40#define APCI2200_WATCHDOG_STATUS 16 41 42// Hardware Layer functions for Apci2200 43 44//Digital Input 45INT i_APCI2200_ReadMoreDigitalInput(comedi_device * dev, comedi_subdevice * s, 46 comedi_insn * insn, lsampl_t * data); 47INT i_APCI2200_Read1DigitalInput(comedi_device * dev, comedi_subdevice * s, 48 comedi_insn * insn, lsampl_t * data); 49 50//Digital Output 51int i_APCI2200_ConfigDigitalOutput(comedi_device * dev, comedi_subdevice * s, 52 comedi_insn * insn, lsampl_t * data); 53INT i_APCI2200_WriteDigitalOutput(comedi_device * dev, comedi_subdevice * s, 54 comedi_insn * insn, lsampl_t * data); 55INT i_APCI2200_ReadDigitalOutput(comedi_device * dev, comedi_subdevice * s, 56 comedi_insn * insn, lsampl_t * data); 57 58// TIMER 59int i_APCI2200_ConfigWatchdog(comedi_device * dev, comedi_subdevice * s, 60 comedi_insn * insn, lsampl_t * data); 61int i_APCI2200_StartStopWriteWatchdog(comedi_device * dev, comedi_subdevice * s, 62 comedi_insn * insn, lsampl_t * data); 63int i_APCI2200_ReadWatchdog(comedi_device * dev, comedi_subdevice * s, 64 comedi_insn * insn, lsampl_t * data); 65 66//reset 67INT i_APCI2200_Reset(comedi_device * dev); 68