Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
APCI1710_82x54.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 #define APCI1710_PCI_BUS_CLOCK 0
19 #define APCI1710_FRONT_CONNECTOR_INPUT 1
20 #define APCI1710_TIMER_READVALUE 0
21 #define APCI1710_TIMER_GETOUTPUTLEVEL 1
22 #define APCI1710_TIMER_GETPROGRESSSTATUS 2
23 #define APCI1710_TIMER_WRITEVALUE 3
24 
25 #define APCI1710_TIMER_READINTERRUPT 1
26 #define APCI1710_TIMER_READALLTIMER 2
27 
28 /* BEGIN JK 27.10.03 : Add the possibility to use a 40 Mhz quartz */
29 #ifndef APCI1710_10MHZ
30 #define APCI1710_10MHZ 10
31 #endif
32 /* END JK 27.10.03 : Add the possibility to use a 40 Mhz quartz */
33 
34 /*
35  * 82X54 TIMER INISIALISATION FUNCTION
36  */
38  struct comedi_insn *insn, unsigned int *data);
39 
41  struct comedi_subdevice *s,
42  struct comedi_insn *insn, unsigned int *data);
43 
44 /*
45  * 82X54 READ FUNCTION
46  */
48  struct comedi_insn *insn, unsigned int *data);
49 
51  struct comedi_insn *insn, unsigned int *data);
52 
53 /*
54  * 82X54 READ & WRITE FUNCTION
55  */
57  unsigned char b_ModulNbr, unsigned char b_TimerNbr,
58  unsigned int *pul_TimerValue);
59 
61  unsigned char b_ModulNbr, unsigned char b_TimerNbr,
62  unsigned char *pb_OutputLevel);
63 
65  unsigned char b_ModulNbr, unsigned char b_TimerNbr,
66  unsigned char *pb_TimerStatus);
67 
68 /*
69  * 82X54 WRITE FUNCTION
70  */
72  unsigned char b_ModulNbr, unsigned char b_TimerNbr,
73  unsigned int ul_WriteValue);