Commit | Line | Data |
---|---|---|
15d8826a GKH |
1 | /* |
2 | * Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module. | |
3 | * | |
4 | * ADDI-DATA GmbH | |
5 | * Dieselstrasse 3 | |
6 | * D-77833 Ottersweier | |
7 | * Tel: +19(0)7223/9493-0 | |
8 | * Fax: +49(0)7223/9493-92 | |
9 | * http://www.addi-data-com | |
10 | * info@addi-data.com | |
11 | * | |
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) | |
15 | * any later version. | |
16 | */ | |
c995fe94 ADG |
17 | |
18 | #ifndef COMEDI_SUBD_TTLIO | |
19 | #define COMEDI_SUBD_TTLIO 11 /* Digital Input Output But TTL */ | |
20 | #endif | |
21 | ||
22 | #ifndef ADDIDATA_ENABLE | |
23 | #define ADDIDATA_ENABLE 1 | |
24 | #define ADDIDATA_DISABLE 0 | |
25 | #endif | |
26 | ||
27 | #define APCI3XXX_SINGLE 0 | |
28 | #define APCI3XXX_DIFF 1 | |
29 | #define APCI3XXX_CONFIGURATION 0 | |
30 | ||
31 | #define APCI3XXX_TTL_INIT_DIRECTION_PORT2 0 | |
32 | ||
33 | #ifdef __KERNEL__ | |
34 | ||
35 | static const comedi_lrange range_apci3XXX_ai = { 8, {BIP_RANGE(10), | |
15d8826a GKH |
36 | BIP_RANGE(5), |
37 | BIP_RANGE(2), | |
38 | BIP_RANGE(1), | |
39 | UNI_RANGE(10), | |
40 | UNI_RANGE(5), | |
41 | UNI_RANGE(2), | |
42 | UNI_RANGE(1)} | |
c995fe94 ADG |
43 | }; |
44 | ||
45 | static const comedi_lrange range_apci3XXX_ttl = { 12, {BIP_RANGE(1), | |
15d8826a GKH |
46 | BIP_RANGE(1), |
47 | BIP_RANGE(1), | |
48 | BIP_RANGE(1), | |
49 | BIP_RANGE(1), | |
50 | BIP_RANGE(1), | |
51 | BIP_RANGE(1), | |
52 | BIP_RANGE(1), | |
53 | BIP_RANGE(1), | |
54 | BIP_RANGE(1), | |
55 | BIP_RANGE(1), | |
56 | BIP_RANGE(1)} | |
c995fe94 ADG |
57 | }; |
58 | ||
59 | static const comedi_lrange range_apci3XXX_ao = { 2, {BIP_RANGE(10), | |
15d8826a | 60 | UNI_RANGE(10)} |
c995fe94 ADG |
61 | }; |
62 | #endif |