2 * Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module.
7 * Tel: +19(0)7223/9493-0
8 * Fax: +49(0)7223/9493-92
9 * http://www.addi-data-com
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the Free
14 * Software Foundation; either version 2 of the License, or (at your option)
18 /********* Definitions for APCI-2200 card *****/
20 // Card Specific information
21 #define APCI2200_BOARD_VENDOR_ID 0x15b8
22 #define APCI2200_ADDRESS_RANGE 64
24 //DIGITAL INPUT-OUTPUT DEFINE
26 #define APCI2200_DIGITAL_OP 4
27 #define APCI2200_DIGITAL_IP 0
29 // TIMER COUNTER WATCHDOG DEFINES
31 #define APCI2200_WATCHDOG 0x08
32 #define APCI2200_WATCHDOG_ENABLEDISABLE 12
33 #define APCI2200_WATCHDOG_RELOAD_VALUE 4
34 #define APCI2200_WATCHDOG_STATUS 16
36 // Hardware Layer functions for Apci2200
39 INT
i_APCI2200_ReadMoreDigitalInput(comedi_device
*dev
, comedi_subdevice
*s
,
40 comedi_insn
*insn
, lsampl_t
*data
);
41 INT
i_APCI2200_Read1DigitalInput(comedi_device
*dev
, comedi_subdevice
*s
,
42 comedi_insn
*insn
, lsampl_t
*data
);
45 int i_APCI2200_ConfigDigitalOutput(comedi_device
*dev
, comedi_subdevice
*s
,
46 comedi_insn
*insn
, lsampl_t
*data
);
47 INT
i_APCI2200_WriteDigitalOutput(comedi_device
*dev
, comedi_subdevice
*s
,
48 comedi_insn
*insn
, lsampl_t
*data
);
49 INT
i_APCI2200_ReadDigitalOutput(comedi_device
*dev
, comedi_subdevice
*s
,
50 comedi_insn
*insn
, lsampl_t
*data
);
53 int i_APCI2200_ConfigWatchdog(comedi_device
*dev
, comedi_subdevice
*s
,
54 comedi_insn
*insn
, lsampl_t
*data
);
55 int i_APCI2200_StartStopWriteWatchdog(comedi_device
*dev
, comedi_subdevice
*s
,
56 comedi_insn
*insn
, lsampl_t
*data
);
57 int i_APCI2200_ReadWatchdog(comedi_device
*dev
, comedi_subdevice
*s
,
58 comedi_insn
*insn
, lsampl_t
*data
);
61 INT
i_APCI2200_Reset(comedi_device
*dev
);