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 | #define APCI1710_30MHZ 30 | |
26 | #define APCI1710_33MHZ 33 | |
27 | #define APCI1710_40MHZ 40 | |
28 | ||
29 | #define APCI1710_SINGLE 0 | |
30 | #define APCI1710_CONTINUOUS 1 | |
31 | ||
32 | #define APCI1710_CHRONO_PROGRESS_STATUS 0 | |
33 | #define APCI1710_CHRONO_READVALUE 1 | |
34 | #define APCI1710_CHRONO_CONVERTVALUE 2 | |
35 | #define APCI1710_CHRONO_READINTERRUPT 3 | |
36 | ||
37 | #define APCI1710_CHRONO_SET_CHANNELON 0 | |
38 | #define APCI1710_CHRONO_SET_CHANNELOFF 1 | |
39 | #define APCI1710_CHRONO_READ_CHANNEL 2 | |
40 | #define APCI1710_CHRONO_READ_PORT 3 | |
41 | ||
42 | /* | |
43 | +----------------------------------------------------------------------------+ | |
44 | | CHRONOMETER INISIALISATION FUNCTION | | |
45 | +----------------------------------------------------------------------------+ | |
46 | */ | |
47 | ||
48 | INT i_APCI1710_InsnConfigInitChrono(comedi_device * dev, comedi_subdevice * s, | |
49 | comedi_insn * insn, lsampl_t * data); | |
50 | ||
51 | INT i_APCI1710_InsnWriteEnableDisableChrono(comedi_device * dev, | |
52 | comedi_subdevice * s, comedi_insn * insn, lsampl_t * data); | |
53 | ||
54 | /* | |
55 | +----------------------------------------------------------------------------+ | |
56 | | CHRONOMETER READ FUNCTION | | |
57 | +----------------------------------------------------------------------------+ | |
58 | */ | |
59 | ||
60 | INT i_APCI1710_InsnReadChrono(comedi_device * dev, comedi_subdevice * s, | |
61 | comedi_insn * insn, lsampl_t * data); | |
62 | ||
63 | INT i_APCI1710_GetChronoProgressStatus(comedi_device * dev, | |
64 | BYTE b_ModulNbr, PBYTE pb_ChronoStatus); | |
65 | ||
66 | INT i_APCI1710_ReadChronoValue(comedi_device * dev, | |
67 | BYTE b_ModulNbr, | |
68 | UINT ui_TimeOut, PBYTE pb_ChronoStatus, PULONG pul_ChronoValue); | |
69 | ||
70 | INT i_APCI1710_ConvertChronoValue(comedi_device * dev, | |
71 | BYTE b_ModulNbr, | |
72 | ULONG ul_ChronoValue, | |
73 | PULONG pul_Hour, | |
74 | PBYTE pb_Minute, | |
75 | PBYTE pb_Second, | |
76 | PUINT pui_MilliSecond, PUINT pui_MicroSecond, PUINT pui_NanoSecond); | |
77 | ||
78 | /* | |
79 | +----------------------------------------------------------------------------+ | |
80 | | CHRONOMETER DIGITAL INPUT OUTPUT FUNCTION | | |
81 | +----------------------------------------------------------------------------+ | |
82 | */ | |
83 | ||
84 | INT i_APCI1710_InsnBitsChronoDigitalIO(comedi_device * dev, | |
85 | comedi_subdevice * s, comedi_insn * insn, lsampl_t * data); |