hwdrv_APCI1710.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
25#define COMEDI_SUBD_TTLIO				11	/* Digital Input Output But TTL */
26#define COMEDI_SUBD_PWM					12	/* Pulse width Measurement */
27#define COMEDI_SUBD_SSI					13	/* Synchronous serial interface */
28#define COMEDI_SUBD_TOR					14	/* Tor counter */
29#define COMEDI_SUBD_CHRONO              15	/* Chrono meter */
30#define COMEDI_SUBD_PULSEENCODER        16	/* Pulse Encoder INP CPT */
31#define COMEDI_SUBD_INCREMENTALCOUNTER  17	/* Incremental Counter */
32
33#define      APCI1710_BOARD_NAME			  "apci1710"
34#define      APCI1710_BOARD_VENDOR_ID	  0x10E8
35#define      APCI1710_BOARD_DEVICE_ID	  0x818F
36#define      APCI1710_ADDRESS_RANGE        256
37#define      APCI1710_CONFIG_ADDRESS_RANGE 8
38#define      APCI1710_INCREMENTAL_COUNTER  0x53430000UL
39#define      APCI1710_SSI_COUNTER          0x53490000UL
40#define      APCI1710_TTL_IO               0x544C0000UL
41#define      APCI1710_DIGITAL_IO           0x44490000UL
42#define      APCI1710_82X54_TIMER          0x49430000UL
43#define      APCI1710_CHRONOMETER          0x43480000UL
44#define      APCI1710_PULSE_ENCODER	      0x495A0000UL
45#define      APCI1710_TOR_COUNTER	      0x544F0000UL
46#define      APCI1710_PWM		      0x50570000UL
47#define      APCI1710_ETM		      0x45540000UL
48#define      APCI1710_CDA		      0x43440000UL
49#define      APCI1710_DISABLE              0
50#define      APCI1710_ENABLE               1
51#define      APCI1710_SYNCHRONOUS_MODE     1
52#define      APCI1710_ASYNCHRONOUS_MODE    0
53
54//MODULE INFO STRUCTURE
55
56static const comedi_lrange range_apci1710_ttl = { 4, {
57			BIP_RANGE(10),
58			BIP_RANGE(5),
59			BIP_RANGE(2),
60			BIP_RANGE(1)
61	}
62};
63
64static const comedi_lrange range_apci1710_ssi = { 4, {
65			BIP_RANGE(10),
66			BIP_RANGE(5),
67			BIP_RANGE(2),
68			BIP_RANGE(1)
69	}
70};
71
72static const comedi_lrange range_apci1710_inccpt = { 4, {
73			BIP_RANGE(10),
74			BIP_RANGE(5),
75			BIP_RANGE(2),
76			BIP_RANGE(1)
77	}
78};
79