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

extbridgeportio.c

Go to the documentation of this file.
00001 /*
00002   extshvio.c
00003 
00004   Dispatcher of external DIO functions for estop and general purpose
00005   DIO using parallel port, linked into 'emcio'. Almost the same
00006   as extppt.c, except it adds extEstopRead,Write().
00007 
00008   Written for Shaver Engineering Bridgeport mill.
00009 
00010   Modification history:
00011 
00012   7-Aug-1998  FMP changed extInit/Quit to extDio/AioInit/Quit()
00013   31-Mar-1998  FMP added STG analog IO
00014   3-Nov-1997 FMP created
00015   */
00016 
00017 #include "extintf.h"            /* these decls */
00018 #include "parport.h"            /* decls for parallel port */
00019 
00020 int extDioInit(const char * stuff)
00021 {
00022   return pptDioInit(stuff);
00023 }
00024 
00025 int extDioQuit()
00026 {
00027   return pptDioQuit();
00028 }
00029 
00030 int extDioMaxInputs()
00031 {
00032   return pptDioMaxInputs();
00033 }
00034 
00035 int extDioMaxOutputs()
00036 {
00037   return pptDioMaxOutputs();
00038 }
00039 
00040 int extDioRead(int index, int *value)
00041 {
00042   return pptDioRead(index, value);
00043 }
00044 
00045 int extDioWrite(int index, int value)
00046 {
00047   return pptDioWrite(index, value);
00048 }
00049 
00050 int extDioCheck(int index, int *value)
00051 {
00052   return pptDioCheck(index, value);
00053 }
00054 
00055 int extDioByteRead(int index, unsigned char *byte)
00056 {
00057   return pptDioByteRead(index, byte);
00058 }
00059 
00060 int extDioShortRead(int index, unsigned short *sh)
00061 {
00062   return pptDioShortRead(index, sh);
00063 }
00064 
00065 int extDioWordRead(int index, unsigned int *word)
00066 {
00067   return pptDioWordRead(index, word);
00068 }
00069 
00070 int extDioByteWrite(int index, unsigned char byte)
00071 {
00072   return pptDioByteWrite(index, byte);
00073 }
00074 
00075 int extDioShortWrite(int index, unsigned short sh)
00076 {
00077   return pptDioShortWrite(index, sh);
00078 }
00079 
00080 int extDioWordWrite(int index, unsigned int word)
00081 {
00082   return pptDioWordWrite(index, word);
00083 }
00084 
00085 int extDioByteCheck(int index, unsigned char *byte)
00086 {
00087   return pptDioByteCheck(index, byte);
00088 }
00089 
00090 int extDioShortCheck(int index, unsigned short *sh)
00091 {
00092   return pptDioShortCheck(index, sh);
00093 }
00094 
00095 int extDioWordCheck(int index, unsigned int *word)
00096 {
00097   return pptDioWordCheck(index, word);
00098 }
00099 
00100 /*
00101   No analog IO for Shaver machine-- just stub it
00102   */
00103 
00104 int extAioInit(const char * stuff)
00105 {
00106   return 0;
00107 }
00108 
00109 int extAioQuit()
00110 {
00111   return 0;
00112 }
00113 
00114 int extAioMaxInputs()
00115 {
00116   return 0;
00117 }
00118 
00119 int extAioMaxOutputs()
00120 {
00121   return 0;
00122 }
00123 
00124 int extAioRead(int index, double *volts)
00125 {
00126   *volts = 0.0;
00127 
00128   return 0;
00129 }
00130 
00131 int extAioWrite(int index, double volts)
00132 {
00133   return 0;
00134 }
00135 
00136 int extAioCheck(int index, double *volts)
00137 {
00138   *volts = 0.0;
00139 
00140   return 0;
00141 }

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