Commit | Line | Data |
---|---|---|
c995fe94 ADG |
1 | /** |
2 | @verbatim | |
3 | ||
4 | Copyright (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 | ||
14 | This 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 | ||
16 | This 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 | ||
18 | You 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 | ||
20 | You shoud also find the complete GPL in the COPYING file accompanying this source code. | |
21 | ||
22 | @endverbatim | |
23 | */ | |
24 | ||
25 | #ifndef COMEDI_SUBD_TTLIO | |
26 | #define COMEDI_SUBD_TTLIO 11 /* Digital Input Output But TTL */ | |
27 | #endif | |
28 | ||
29 | #ifndef ADDIDATA_ENABLE | |
30 | #define ADDIDATA_ENABLE 1 | |
31 | #define ADDIDATA_DISABLE 0 | |
32 | #endif | |
33 | ||
34 | #define APCI3XXX_SINGLE 0 | |
35 | #define APCI3XXX_DIFF 1 | |
36 | #define APCI3XXX_CONFIGURATION 0 | |
37 | ||
38 | #define APCI3XXX_TTL_INIT_DIRECTION_PORT2 0 | |
39 | ||
40 | #ifdef __KERNEL__ | |
41 | ||
42 | static const comedi_lrange range_apci3XXX_ai = { 8, {BIP_RANGE(10), | |
43 | BIP_RANGE(5), | |
44 | BIP_RANGE(2), | |
45 | BIP_RANGE(1), | |
46 | UNI_RANGE(10), | |
47 | UNI_RANGE(5), | |
48 | UNI_RANGE(2), | |
49 | UNI_RANGE(1)} | |
50 | }; | |
51 | ||
52 | static const comedi_lrange range_apci3XXX_ttl = { 12, {BIP_RANGE(1), | |
53 | BIP_RANGE(1), | |
54 | BIP_RANGE(1), | |
55 | BIP_RANGE(1), | |
56 | BIP_RANGE(1), | |
57 | BIP_RANGE(1), | |
58 | BIP_RANGE(1), | |
59 | BIP_RANGE(1), | |
60 | BIP_RANGE(1), | |
61 | BIP_RANGE(1), | |
62 | BIP_RANGE(1), | |
63 | BIP_RANGE(1)} | |
64 | }; | |
65 | ||
66 | static const comedi_lrange range_apci3XXX_ao = { 2, {BIP_RANGE(10), | |
67 | UNI_RANGE(10)} | |
68 | }; | |
69 | #endif |