00001 /* 00002 extsimaio.c 00003 00004 Dispatcher of external functions to simulated digital IO implementation. 00005 00006 Modification history: 00007 00008 20-Mar-2000 WPS added unused attribute to ident to avoid 'defined but not used' compiler warning 00009 7-Aug-1998 FMP created from analog portion of extsimdio.c 00010 */ 00011 00012 #include "extintf.h" /* these decls */ 00013 #include "sim.h" /* decls for sim implementation */ 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: extsimaio.c,v 1.2 2000/10/27 20:34:42 terrylr Exp $"; 00023 00024 int extAioInit(const char * stuff) 00025 { 00026 return simAioInit(stuff); 00027 } 00028 00029 int extAioQuit() 00030 { 00031 return simAioQuit(); 00032 } 00033 00034 int extAioMaxInputs() 00035 { 00036 return simAioMaxInputs(); 00037 } 00038 00039 int extAioMaxOutputs() 00040 { 00041 return simAioMaxOutputs(); 00042 } 00043 00044 int extAioRead(int index, double *volts) 00045 { 00046 return simAioRead(index, volts); 00047 } 00048 00049 int extAioWrite(int index, double volts) 00050 { 00051 return simAioWrite(index, volts); 00052 } 00053 00054 int extAioCheck(int index, double *volts) 00055 { 00056 return simAioCheck(index, volts); 00057 }