2 * Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module.
7 * Tel: +19(0)7223/9493-0
8 * Fax: +49(0)7223/9493-92
9 * http://www.addi-data.com
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)
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
25 #define APCI1710_TIMER_READINTERRUPT 1
26 #define APCI1710_TIMER_READALLTIMER 2
28 /* BEGIN JK 27.10.03 : Add the possibility to use a 40 Mhz quartz */
29 #ifndef APCI1710_10MHZ
30 #define APCI1710_10MHZ 10
32 /* END JK 27.10.03 : Add the possibility to use a 40 Mhz quartz */
35 * 82X54 TIMER INISIALISATION FUNCTION
37 int i_APCI1710_InsnConfigInitTimer(struct comedi_device *dev, struct comedi_subdevice *s,
38 struct comedi_insn *insn, unsigned int *data);
40 int i_APCI1710_InsnWriteEnableDisableTimer(struct comedi_device *dev,
41 struct comedi_subdevice *s,
42 struct comedi_insn *insn, unsigned int *data);
47 int i_APCI1710_InsnReadAllTimerValue(struct comedi_device *dev, struct comedi_subdevice *s,
48 struct comedi_insn *insn, unsigned int *data);
50 int i_APCI1710_InsnBitsTimer(struct comedi_device *dev, struct comedi_subdevice *s,
51 struct comedi_insn *insn, unsigned int *data);
54 * 82X54 READ & WRITE FUNCTION
56 int i_APCI1710_ReadTimerValue(struct comedi_device *dev,
57 unsigned char b_ModulNbr, unsigned char b_TimerNbr,
58 unsigned int *pul_TimerValue);
60 int i_APCI1710_GetTimerOutputLevel(struct comedi_device *dev,
61 unsigned char b_ModulNbr, unsigned char b_TimerNbr,
62 unsigned char *pb_OutputLevel);
64 int i_APCI1710_GetTimerProgressStatus(struct comedi_device *dev,
65 unsigned char b_ModulNbr, unsigned char b_TimerNbr,
66 unsigned char *pb_TimerStatus);
69 * 82X54 WRITE FUNCTION
71 int i_APCI1710_WriteTimerValue(struct comedi_device *dev,
72 unsigned char b_ModulNbr, unsigned char b_TimerNbr,
73 unsigned int ul_WriteValue);