Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

extppt.c

Go to the documentation of this file.
00001 /*
00002   extppt.c
00003 
00004   External interface dispatcher to parallel port digital I/O
00005 
00006   Modification history:
00007 
00008   13-Mar-2000 WPS added unused attribute to parport_h to avoid 'defined but not used' compiler warning, and added (void) to functions with no arguments to avoid 'declaration is not a prototype' compiler warnings.
00009   7-Aug-1998  FMP changed extInit/Quit() to extDioInit/Quit()
00010   */
00011 
00012 #include "extintf.h"            /* these decls */
00013 #include "parport.h"            /* parport decls */
00014 
00015 /* ident tag */
00016 #ifndef __GNUC__
00017 #ifndef __attribute__
00018 #define __attribute__(x)
00019 #endif
00020 #endif
00021 
00022 static char __attribute__((unused)) ident[] = "$Id: extppt.c,v 1.2 2000/10/27 20:34:42 terrylr Exp $";
00023 
00024 int extDioInit(const char * stuff)
00025 {
00026   return pptDioInit(stuff);
00027 }
00028 
00029 int extDioQuit(void)
00030 {
00031   return pptDioQuit();
00032 }
00033 
00034 int extDioMaxInputs(void)
00035 {
00036   return pptDioMaxInputs();
00037 }
00038 
00039 int extDioMaxOutputs(void)
00040 {
00041   return pptDioMaxOutputs();
00042 }
00043 
00044 int extDioRead(int index, int *value)
00045 {
00046   return pptDioRead(index, value);
00047 }
00048 
00049 int extDioWrite(int index, int value)
00050 {
00051   return pptDioWrite(index, value);
00052 }
00053 
00054 int extDioCheck(int index, int *value)
00055 {
00056   return pptDioCheck(index, value);
00057 }
00058 
00059 int extDioByteRead(int index, unsigned char *byte)
00060 {
00061   return pptDioByteRead(index, byte);
00062 }
00063 
00064 int extDioShortRead(int index, unsigned short *sh)
00065 {
00066   return pptDioShortRead(index, sh);
00067 }
00068 
00069 int extDioWordRead(int index, unsigned int *word)
00070 {
00071   return pptDioWordRead(index, word);
00072 }
00073 
00074 int extDioByteWrite(int index, unsigned char byte)
00075 {
00076   return pptDioByteWrite(index, byte);
00077 }
00078 
00079 int extDioShortWrite(int index, unsigned short sh)
00080 {
00081   return pptDioShortWrite(index, sh);
00082 }
00083 
00084 int extDioWordWrite(int index, unsigned int word)
00085 {
00086   return pptDioWordWrite(index, word);
00087 }
00088 
00089 int extDioByteCheck(int index, unsigned char *byte)
00090 {
00091   return pptDioByteCheck(index, byte);
00092 }
00093 
00094 int extDioShortCheck(int index, unsigned short *sh)
00095 {
00096   return pptDioShortCheck(index, sh);
00097 }
00098 
00099 int extDioWordCheck(int index, unsigned int *word)
00100 {
00101   return pptDioWordCheck(index, word);
00102 }

Generated on Sun Dec 2 15:27:40 2001 for EMC by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001