00001 #ifndef PARPORT_H
00002 #define PARPORT_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024
00025
00026 #ifndef __GNUC__
00027 #ifndef __attribute__
00028 #define __attribute__(x)
00029 #endif
00030 #endif
00031
00032 static char __attribute__((unused)) parport_h[] = "$Id: parport.h,v 1.2 2000/10/27 20:34:42 terrylr Exp $";
00033
00034
00035
00036 extern unsigned long int PARPORT_IO_ADDRESS;
00037
00038
00039 #define DEFAULT_PARPORT_IO_ADDRESS 0x278
00040
00041
00042 extern int pptDioInit(const char * stuff);
00043 extern int pptDioQuit(void);
00044
00045
00046 extern int pptDioMaxInputs(void);
00047 extern int pptDioMaxOutputs(void);
00048
00049
00050 extern int pptDioRead(int index, int *value);
00051
00052
00053 extern int pptDioWrite(int index, int value);
00054
00055
00056
00057
00058 extern int pptDioCheck(int index, int *value);
00059
00060
00061
00062 extern int pptDioByteRead(int index, unsigned char *byte);
00063 extern int pptDioShortRead(int index, unsigned short *sh);
00064 extern int pptDioWordRead(int index, unsigned int *word);
00065 extern int pptDioByteWrite(int index, unsigned char byte);
00066 extern int pptDioShortWrite(int index, unsigned short sh);
00067 extern int pptDioWordWrite(int index, unsigned int word);
00068 extern int pptDioByteCheck(int index, unsigned char *byte);
00069 extern int pptDioShortCheck(int index, unsigned short *sh);
00070 extern int pptDioWordCheck(int index, unsigned int *word);
00071
00072
00073 #ifdef __cplusplus
00074 }
00075 #endif
00076
00077 #endif