Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hwdrv_apci3xxx.h
Go to the documentation of this file.
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
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  */
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 struct comedi_lrange range_apci3XXX_ai = { 8, {BIP_RANGE(10),
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)}
43 };
44 
45 static const struct comedi_lrange range_apci3XXX_ao = { 2, {BIP_RANGE(10),
46  UNI_RANGE(10)}
47 };
48 #endif