4 Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module.
10 Fax: +49(0)7223/9493-92
11 http://www.addi-data-com
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.
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.
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
20 You shoud also find the complete GPL in the COPYING file accompanying this source code.
26 +-----------------------------------------------------------------------+
27 | (C) ADDI-DATA GmbH Dieselstraße 3 D-77833 Ottersweier |
28 +-----------------------------------------------------------------------+
29 | Tel : +49 (0) 7223/9493-0 | email : info@addi-data.com |
30 | Fax : +49 (0) 7223/9493-92 | Internet : http://www.addi-data.com |
31 +-----------------------------------------------------------------------+
32 | Project : API APCI1710 | Compiler : gcc |
33 | Module name : TTL.C | Version : 2.96 |
34 +-------------------------------+---------------------------------------+
35 | Project manager: Eric Stolz | Date : 02/12/2002 |
36 +-----------------------------------------------------------------------+
37 | Description : APCI-1710 TTL I/O module |
40 +-----------------------------------------------------------------------+
42 +-----------------------------------------------------------------------+
43 | Date | Author | Description of updates |
44 +----------+-----------+------------------------------------------------+
45 | 13/05/98 | S. Weber | TTL digital input / output implementation |
46 |----------|-----------|------------------------------------------------|
47 | 08/05/00 | Guinot C | - 0400/0228 All Function in RING 0 |
49 +-----------------------------------------------------------------------+
52 +-----------------------------------------------------------------------+
56 +----------------------------------------------------------------------------+
58 +----------------------------------------------------------------------------+
61 #include "APCI1710_Ttl.h"
64 +----------------------------------------------------------------------------+
65 | Function Name : _INT_ i_APCI1710_InitTTLIODirection |
66 | (BYTE_ b_BoardHandle, |
68 | BYTE_ b_PortAMode, |
69 | BYTE_ b_PortBMode, |
70 | BYTE_ b_PortCMode, |
71 | BYTE_ b_PortDMode) |
72 +----------------------------------------------------------------------------+
73 | Task APCI1710_TTL_INIT (using defaults) : Configure the TTL I/O operating mode from selected |
74 | module (b_ModulNbr). You must calling this function be|
75 | for you call any other function witch access of TTL. |
76 APCI1710_TTL_INITDIRECTION(user inputs for direction)
78 +----------------------------------------------------------------------------+
79 | Input Parameters : BYTE_ b_BoardHandle : Handle of board APCI-1710|
80 | BYTE_ b_ModulNbr : Module number to |
82 b_ModulNbr = (BYTE) CR_AREF(insn->chanspec);
83 b_InitType = (BYTE) data[0];
84 b_PortAMode = (BYTE) data[1];
85 b_PortBMode = (BYTE) data[2];
86 b_PortCMode = (BYTE) data[3];
87 b_PortDMode = (BYTE) data[4];|
88 +----------------------------------------------------------------------------+
89 | Output Parameters : - |
90 +----------------------------------------------------------------------------+
91 | Return Value : 0: No error |
92 | -1: The handle parameter of the board is wrong |
93 | -2: The module parameter is wrong |
94 | -3: The module is not a TTL module |
95 | -4: Function not available for this version |
96 | -5: Port A mode selection is wrong |
97 | -6: Port B mode selection is wrong |
98 | -7: Port C mode selection is wrong |
99 | -8: Port D mode selection is wrong |
100 +----------------------------------------------------------------------------+
103 INT
i_APCI1710_InsnConfigInitTTLIO(struct comedi_device
* dev
, struct comedi_subdevice
* s
,
104 struct comedi_insn
* insn
, unsigned int * data
)
106 INT i_ReturnValue
= 0;
114 b_ModulNbr
= (BYTE
) CR_AREF(insn
->chanspec
);
115 b_InitType
= (BYTE
) data
[0];
116 i_ReturnValue
= insn
->n
;
118 /**************************/
119 /* Test the module number */
120 /**************************/
122 if (b_ModulNbr
< 4) {
123 /**************************/
124 /* Test if TTL I/O module */
125 /**************************/
127 if ((devpriv
->s_BoardInfos
.
128 dw_MolduleConfiguration
[b_ModulNbr
] &
129 0xFFFF0000UL
) == APCI1710_TTL_IO
) {
130 switch (b_InitType
) {
131 case APCI1710_TTL_INIT
:
133 devpriv
->s_ModuleInfo
[b_ModulNbr
].
134 s_TTLIOInfo
.b_TTLInit
= 1;
136 /***************************/
137 /* Set TTL port A to input */
138 /***************************/
140 devpriv
->s_ModuleInfo
[b_ModulNbr
].
141 s_TTLIOInfo
.b_PortConfiguration
[0] = 0;
143 /***************************/
144 /* Set TTL port B to input */
145 /***************************/
147 devpriv
->s_ModuleInfo
[b_ModulNbr
].
148 s_TTLIOInfo
.b_PortConfiguration
[1] = 0;
150 /***************************/
151 /* Set TTL port C to input */
152 /***************************/
154 devpriv
->s_ModuleInfo
[b_ModulNbr
].
155 s_TTLIOInfo
.b_PortConfiguration
[2] = 0;
157 /****************************/
158 /* Set TTL port D to output */
159 /****************************/
161 devpriv
->s_ModuleInfo
[b_ModulNbr
].
162 s_TTLIOInfo
.b_PortConfiguration
[3] = 1;
164 /*************************/
165 /* Set the configuration */
166 /*************************/
169 devpriv
->s_BoardInfos
.ui_Address
+ 20 +
173 case APCI1710_TTL_INITDIRECTION
:
175 b_PortAMode
= (BYTE
) data
[1];
176 b_PortBMode
= (BYTE
) data
[2];
177 b_PortCMode
= (BYTE
) data
[3];
178 b_PortDMode
= (BYTE
) data
[4];
180 /********************/
181 /* Test the version */
182 /********************/
184 if ((devpriv
->s_BoardInfos
.
185 dw_MolduleConfiguration
186 [b_ModulNbr
] & 0xFFFF) >=
188 /************************/
189 /* Test the port A mode */
190 /************************/
192 if ((b_PortAMode
== 0)
193 || (b_PortAMode
== 1)) {
194 /************************/
195 /* Test the port B mode */
196 /************************/
198 if ((b_PortBMode
== 0)
199 || (b_PortBMode
== 1)) {
200 /************************/
201 /* Test the port C mode */
202 /************************/
204 if ((b_PortCMode
== 0)
207 /************************/
208 /* Test the port D mode */
209 /************************/
211 if ((b_PortDMode
== 0) || (b_PortDMode
== 1)) {
220 /***********************/
221 /* Set TTL port A mode */
222 /***********************/
233 /***********************/
234 /* Set TTL port B mode */
235 /***********************/
246 /***********************/
247 /* Set TTL port C mode */
248 /***********************/
259 /***********************/
260 /* Set TTL port D mode */
261 /***********************/
272 /*************************/
273 /* Set the configuration */
274 /*************************/
276 outl((b_PortAMode
<< 0) | (b_PortBMode
<< 1) | (b_PortCMode
<< 2) | (b_PortDMode
<< 3), devpriv
->s_BoardInfos
.ui_Address
+ 20 + (64 * b_ModulNbr
));
278 /**********************************/
279 /* Port D mode selection is wrong */
280 /**********************************/
282 DPRINTK("Port D mode selection is wrong\n");
288 /**********************************/
289 /* Port C mode selection is wrong */
290 /**********************************/
292 DPRINTK("Port C mode selection is wrong\n");
297 /**********************************/
298 /* Port B mode selection is wrong */
299 /**********************************/
301 DPRINTK("Port B mode selection is wrong\n");
305 /**********************************/
306 /* Port A mode selection is wrong */
307 /**********************************/
309 DPRINTK("Port A mode selection is wrong\n");
313 /*******************************************/
314 /* Function not available for this version */
315 /*******************************************/
317 DPRINTK("Function not available for this version\n");
324 printk("Bad Config Type\n");
327 /**********************************/
328 /* The module is not a TTL module */
329 /**********************************/
331 DPRINTK("The module is not a TTL module\n");
335 /***********************/
336 /* Module number error */
337 /***********************/
339 DPRINTK("Module number error\n");
343 return (i_ReturnValue
);
347 +----------------------------------------------------------------------------+
349 +----------------------------------------------------------------------------+
353 +----------------------------------------------------------------------------+
354 | Function Name : _INT_ i_APCI1710_ReadTTLIOChannelValue |
355 | (BYTE_ b_BoardHandle, |
356 | BYTE_ b_ModulNbr, |
357 | BYTE_ b_SelectedPort, |
358 | BYTE_ b_InputChannel, |
359 | PBYTE_ pb_ChannelStatus) |
360 +----------------------------------------------------------------------------+
361 | Task : Read the status from selected TTL digital input |
363 +----------------------------------------------------------------------------+
364 | Task : Read the status from digital input port |
365 | (b_SelectedPort) from selected TTL module (b_ModulNbr) |
366 +----------------------------------------------------------------------------+
368 +----------------------------------------------------------------------------+
369 | Input Parameters : BYTE_ b_BoardHandle : Handle of board APCI-1710|
370 | BYTE_ b_ModulNbr : Module number to |
371 | configure (0 to 7) |
372 | BYTE_ b_SelectedPort, : Selection from TTL I/O |
374 | 0 : Port A selection |
375 | 1 : Port B selection |
376 | 2 : Port C selection |
377 | 3 : Port D selection |
378 | BYTE_ b_InputChannel : Selection from digital |
380 APCI1710_TTL_READCHANNEL
381 b_ModulNbr = CR_AREF(insn->chanspec);
382 b_SelectedPort= CR_RANGE(insn->chanspec);
383 b_InputChannel= CR_CHAN(insn->chanspec);
384 b_ReadType = (BYTE) data[0];
386 APCI1710_TTL_READPORT|
387 b_ModulNbr = CR_AREF(insn->chanspec);
388 b_SelectedPort= CR_RANGE(insn->chanspec);
389 b_ReadType = (BYTE) data[0];
391 +----------------------------------------------------------------------------+
392 | Output Parameters : data[0]
394 PBYTE_ pb_ChannelStatus : Digital input channel |
396 | 0 : Channle is not active|
397 | 1 : Channle is active |
398 +----------------------------------------------------------------------------+
399 | Return Value : 0: No error |
400 | -1: The handle parameter of the board is wrong |
401 | -2: The module parameter is wrong |
402 | -3: The module is not a TTL module |
403 | -4: The selected TTL input port is wrong |
404 | -5: The selected TTL digital input is wrong |
405 | -6: TTL I/O not initialised |
406 +----------------------------------------------------------------------------+
409 INT
i_APCI1710_InsnBitsReadTTLIO(struct comedi_device
* dev
, struct comedi_subdevice
* s
,
410 struct comedi_insn
* insn
, unsigned int * data
)
412 INT i_ReturnValue
= 0;
418 PBYTE pb_ChannelStatus
;
421 i_ReturnValue
= insn
->n
;
422 b_ReadType
= (BYTE
) data
[0];
423 b_ModulNbr
= CR_AREF(insn
->chanspec
);
424 b_SelectedPort
= CR_RANGE(insn
->chanspec
);
425 b_InputChannel
= CR_CHAN(insn
->chanspec
);
427 /**************************/
428 /* Test the module number */
429 /**************************/
431 if (b_ModulNbr
< 4) {
432 /**************************/
433 /* Test if TTL I/O module */
434 /**************************/
436 if ((devpriv
->s_BoardInfos
.
437 dw_MolduleConfiguration
[b_ModulNbr
] &
438 0xFFFF0000UL
) == APCI1710_TTL_IO
) {
439 switch (b_ReadType
) {
441 case APCI1710_TTL_READCHANNEL
:
442 pb_ChannelStatus
= (PBYTE
) & data
[0];
443 /********************************/
444 /* Test the TTL I/O port number */
445 /********************************/
447 if (((b_SelectedPort
<= 2)
448 && ((devpriv
->s_BoardInfos
.
449 dw_MolduleConfiguration
453 || ((b_SelectedPort
<= 3)
454 && ((devpriv
->s_BoardInfos
.
455 dw_MolduleConfiguration
459 /******************************************/
460 /* Test the digital imnput channel number */
461 /******************************************/
463 if (((b_InputChannel
<= 7)
464 && (b_SelectedPort
< 3))
465 || ((b_InputChannel
<= 1)
466 && (b_SelectedPort
==
468 /******************************************/
469 /* Test if the TTL I/O module initialised */
470 /******************************************/
475 s_TTLIOInfo
.b_TTLInit
==
477 /***********************************/
478 /* Test if TTL port used for input */
479 /***********************************/
481 if (((devpriv
->s_BoardInfos
.dw_MolduleConfiguration
[b_ModulNbr
] & 0xFFFF) == 0x3130) || (((devpriv
->s_BoardInfos
.dw_MolduleConfiguration
[b_ModulNbr
] & 0xFFFF) >= 0x3230) && (devpriv
->s_ModuleInfo
[b_ModulNbr
].s_TTLIOInfo
.b_PortConfiguration
[b_SelectedPort
] == 0))) {
482 /**************************/
483 /* Read all digital input */
484 /**************************/
499 (8 * b_SelectedPort
)) >> b_InputChannel
) & 1;
501 /*******************************/
502 /* Selected TTL I/O port error */
503 /*******************************/
505 DPRINTK("Selected TTL I/O port error\n");
510 /***************************/
511 /* TTL I/O not initialised */
512 /***************************/
514 DPRINTK("TTL I/O not initialised\n");
518 /********************************/
519 /* Selected digital input error */
520 /********************************/
522 DPRINTK("Selected digital input error\n");
526 /*******************************/
527 /* Selected TTL I/O port error */
528 /*******************************/
530 DPRINTK("Selected TTL I/O port error\n");
535 case APCI1710_TTL_READPORT
:
536 pb_PortValue
= (PBYTE
) & data
[0];
537 /********************************/
538 /* Test the TTL I/O port number */
539 /********************************/
541 if (((b_SelectedPort
<= 2)
542 && ((devpriv
->s_BoardInfos
.
543 dw_MolduleConfiguration
547 || ((b_SelectedPort
<= 3)
548 && ((devpriv
->s_BoardInfos
.
549 dw_MolduleConfiguration
553 /******************************************/
554 /* Test if the TTL I/O module initialised */
555 /******************************************/
557 if (devpriv
->s_ModuleInfo
[b_ModulNbr
].
558 s_TTLIOInfo
.b_TTLInit
== 1) {
559 /***********************************/
560 /* Test if TTL port used for input */
561 /***********************************/
563 if (((devpriv
->s_BoardInfos
.
564 dw_MolduleConfiguration
569 || (((devpriv
->s_BoardInfos
.dw_MolduleConfiguration
[b_ModulNbr
] & 0xFFFF) >= 0x3230) && (devpriv
->s_ModuleInfo
[b_ModulNbr
].s_TTLIOInfo
.b_PortConfiguration
[b_SelectedPort
] == 0))) {
570 /**************************/
571 /* Read all digital input */
572 /**************************/
583 (8 * b_SelectedPort
)) & 0xFF);
585 /*******************************/
586 /* Selected TTL I/O port error */
587 /*******************************/
589 DPRINTK("Selected TTL I/O port error\n");
593 /***************************/
594 /* TTL I/O not initialised */
595 /***************************/
597 DPRINTK("TTL I/O not initialised\n");
601 /*******************************/
602 /* Selected TTL I/O port error */
603 /*******************************/
605 DPRINTK("Selected TTL I/O port error\n");
611 printk("Bad ReadType\n");
615 /**********************************/
616 /* The module is not a TTL module */
617 /**********************************/
619 DPRINTK("The module is not a TTL module\n");
623 /***********************/
624 /* Module number error */
625 /***********************/
627 DPRINTK("Module number error\n");
631 return (i_ReturnValue
);
635 +----------------------------------------------------------------------------+
636 | Function Name : INT i_APCI1710_InsnReadTTLIOAllPortValue(comedi_device
637 *dev,struct comedi_subdevice *s,struct comedi_insn *insn,unsigned int *data) |
638 +----------------------------------------------------------------------------+
639 | Task : Read the status from all digital input ports |
640 | (port A, port B and port C) from selected TTL |
641 | module (b_ModulNbr) |
642 +----------------------------------------------------------------------------+
643 | Input Parameters : BYTE_ b_BoardHandle : Handle of board APCI-1710|
644 | BYTE_ b_ModulNbr : Module number to |
645 | configure (0 to 3) |
646 +----------------------------------------------------------------------------+
647 | Output Parameters : PULONG_ pul_PortValue : Digital TTL inputs port |
649 +----------------------------------------------------------------------------+
650 | Return Value : 0: No error |
651 | -1: The handle parameter of the board is wrong |
652 | -2: The module parameter is wrong |
653 | -3: The module is not a TTL module |
654 | -4: TTL I/O not initialised |
655 +----------------------------------------------------------------------------+
658 INT
i_APCI1710_InsnReadTTLIOAllPortValue(struct comedi_device
* dev
,
659 struct comedi_subdevice
* s
, struct comedi_insn
* insn
, unsigned int * data
)
661 INT i_ReturnValue
= 0;
664 PULONG pul_PortValue
;
666 b_ModulNbr
= (BYTE
) CR_AREF(insn
->chanspec
);
667 i_ReturnValue
= insn
->n
;
668 pul_PortValue
= (PULONG
) & data
[0];
670 /**************************/
671 /* Test the module number */
672 /**************************/
674 if (b_ModulNbr
< 4) {
675 /**************************/
676 /* Test if TTL I/O module */
677 /**************************/
679 if ((devpriv
->s_BoardInfos
.
680 dw_MolduleConfiguration
[b_ModulNbr
] &
681 0xFFFF0000UL
) == APCI1710_TTL_IO
) {
682 /******************************************/
683 /* Test if the TTL I/O module initialised */
684 /******************************************/
687 s_ModuleInfo
[b_ModulNbr
].
688 s_TTLIOInfo
.b_TTLInit
== 1) {
689 /**************************/
690 /* Read all digital input */
691 /**************************/
693 dw_StatusReg
= inl(devpriv
->s_BoardInfos
.
694 ui_Address
+ (64 * b_ModulNbr
));
696 /**********************/
697 /* Test if TTL Rev1.0 */
698 /**********************/
700 if ((devpriv
->s_BoardInfos
.
701 dw_MolduleConfiguration
702 [b_ModulNbr
] & 0xFFFF) ==
705 dw_StatusReg
& 0xFFFFFFUL
;
707 /**************************************/
708 /* Test if port A not used for output */
709 /**************************************/
711 if (devpriv
->s_ModuleInfo
[b_ModulNbr
].
713 b_PortConfiguration
[0] == 1) {
719 /**************************************/
720 /* Test if port B not used for output */
721 /**************************************/
724 s_ModuleInfo
[b_ModulNbr
].
726 b_PortConfiguration
[1] == 1) {
732 /**************************************/
733 /* Test if port C not used for output */
734 /**************************************/
737 s_ModuleInfo
[b_ModulNbr
].
739 b_PortConfiguration
[2] == 1) {
745 /**************************************/
746 /* Test if port D not used for output */
747 /**************************************/
750 s_ModuleInfo
[b_ModulNbr
].
752 b_PortConfiguration
[3] == 1) {
759 /***************************/
760 /* TTL I/O not initialised */
761 /***************************/
762 DPRINTK("TTL I/O not initialised\n");
766 /**********************************/
767 /* The module is not a TTL module */
768 /**********************************/
769 DPRINTK("The module is not a TTL module\n");
773 /***********************/
774 /* Module number error */
775 /***********************/
776 DPRINTK("Module number error\n");
780 return (i_ReturnValue
);
784 +----------------------------------------------------------------------------+
786 +----------------------------------------------------------------------------+
790 +----------------------------------------------------------------------------+
791 | Function Name : _INT_ i_APCI1710_SetTTLIOChlOn |
792 | (BYTE_ b_BoardHandle, |
793 | BYTE_ b_ModulNbr, |
794 | BYTE_ b_OutputChannel)
795 INT i_APCI1710_InsnWriteSetTTLIOChlOnOff(struct comedi_device *dev,struct comedi_subdevice *s,
796 struct comedi_insn *insn,unsigned int *data) |
797 +----------------------------------------------------------------------------+
798 | Task : Sets or resets the output witch has been passed with the |
799 | parameter b_Channel. Setting an output means setting |
801 +----------------------------------------------------------------------------+
802 | Input Parameters : BYTE_ b_BoardHandle : Handle of board APCI-1710 |
803 | BYTE_ b_ModulNbr : Selected module number (0 to 3)|
804 | BYTE_ b_OutputChannel : Selection from digital output |
812 b_ModulNbr = CR_AREF(insn->chanspec);
813 b_OutputChannel= CR_CHAN(insn->chanspec);
814 ui_State = data[0]; // ON or OFF
815 +----------------------------------------------------------------------------+
816 | Output Parameters : - |
817 +----------------------------------------------------------------------------+
818 | Return Value : 0: No error |
819 | -1: The handle parameter of the board is wrong |
820 | -2: The module parameter is wrong |
821 | -3: The module is not a TTL I/O module |
822 | -4: The selected digital output is wrong |
823 | -5: TTL I/O not initialised see function |
824 | " i_APCI1710_InitTTLIO"
825 +----------------------------------------------------------------------------+
828 INT
i_APCI1710_InsnWriteSetTTLIOChlOnOff(struct comedi_device
* dev
,
829 struct comedi_subdevice
* s
, struct comedi_insn
* insn
, unsigned int * data
)
831 INT i_ReturnValue
= 0;
832 DWORD dw_StatusReg
= 0;
834 BYTE b_OutputChannel
;
837 i_ReturnValue
= insn
->n
;
838 b_ModulNbr
= CR_AREF(insn
->chanspec
);
839 b_OutputChannel
= CR_CHAN(insn
->chanspec
);
840 ui_State
= data
[0]; // ON or OFF
842 /**************************/
843 /* Test the module number */
844 /**************************/
846 if (b_ModulNbr
< 4) {
847 /**************************/
848 /* Test if TTL I/O module */
849 /**************************/
851 if ((devpriv
->s_BoardInfos
.
852 dw_MolduleConfiguration
[b_ModulNbr
] &
853 0xFFFF0000UL
) == APCI1710_TTL_IO
) {
854 /******************************************/
855 /* Test if the TTL I/O module initialised */
856 /******************************************/
858 if (devpriv
->s_ModuleInfo
[b_ModulNbr
].
859 s_TTLIOInfo
.b_TTLInit
== 1) {
860 /***********************************/
861 /* Test the TTL I/O channel number */
862 /***********************************/
864 if (((b_OutputChannel
<= 1)
865 && ((devpriv
->s_BoardInfos
.
866 dw_MolduleConfiguration
870 || ((b_OutputChannel
<= 25)
871 && ((devpriv
->s_BoardInfos
.
872 dw_MolduleConfiguration
876 /****************************************************/
877 /* Test if the selected channel is a output channel */
878 /****************************************************/
880 if (((b_OutputChannel
<= 1)
887 || ((b_OutputChannel
>= 2)
888 && (b_OutputChannel
<=
896 || ((b_OutputChannel
>= 10)
897 && (b_OutputChannel
<=
905 || ((b_OutputChannel
>= 18)
906 && (b_OutputChannel
<=
914 /************************/
915 /* Test if PD0 selected */
916 /************************/
918 if (b_OutputChannel
== 0) {
926 /************************/
927 /* Test if PD1 selected */
928 /************************/
930 if (b_OutputChannel
==
945 /********************/
946 /* Read all channel */
947 /********************/
962 ((b_OutputChannel
/ 8) * 8)) & 0xFF;
978 ((b_OutputChannel
/ 8) * 8)) & 0xFF;
985 (1 << (b_OutputChannel
% 8)));
989 /****************************/
990 /* Set the new output value */
991 /****************************/
993 outl(dw_StatusReg
, devpriv
->s_BoardInfos
.ui_Address
+ 8 + ((b_OutputChannel
/ 8) * 4) + (64 * b_ModulNbr
));
997 /************************************/
998 /* The selected TTL output is wrong */
999 /************************************/
1001 DPRINTK(" The selected TTL output is wrong\n");
1005 /************************************/
1006 /* The selected TTL output is wrong */
1007 /************************************/
1009 DPRINTK("The selected TTL output is wrong\n");
1013 /***************************/
1014 /* TTL I/O not initialised */
1015 /***************************/
1017 DPRINTK("TTL I/O not initialised\n");
1021 /**************************************/
1022 /* The module is not a TTL I/O module */
1023 /**************************************/
1025 DPRINTK("The module is not a TTL I/O module\n");
1029 /***********************/
1030 /* Module number error */
1031 /***********************/
1033 DPRINTK("Module number error\n");
1037 return (i_ReturnValue
);