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

extsimdio.c

Go to the documentation of this file.
00001 /*
00002   extsimdio.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 split into dio and aio files; changed extInit/Quit()
00010   to extDioInit/Quit()
00011   31-Mar-1998  FMP added analog IO
00012   18-Mar-1998  FMP split out from extsim.c
00013   25-Nov-1997 FMP changed extLimitSwitchRead to extPos,NegLimit...
00014   18-Nov-1997 FMP added dio functions
00015   16-Oct-1997  FMP created
00016   */
00017 
00018 #include "extintf.h"            /* these decls */
00019 #include "sim.h"                /* decls for sim implementation */
00020 
00021 /* ident tag */
00022 #ifndef __GNUC__
00023 #ifndef __attribute__
00024 #define __attribute__(x)
00025 #endif
00026 #endif
00027 
00028 static char __attribute__((unused)) ident[] = "$Id: extsimdio.c,v 1.2 2000/10/27 20:34:42 terrylr Exp $";
00029 
00030 int extDioInit(const char * stuff)
00031 {
00032   return simDioInit(stuff);
00033 }
00034 
00035 int extDioQuit()
00036 {
00037   return simDioQuit();
00038 }
00039 
00040 int extDioMaxInputs()
00041 {
00042   return simDioMaxInputs();
00043 }
00044 
00045 int extDioMaxOutputs()
00046 {
00047   return simDioMaxOutputs();
00048 }
00049 
00050 int extDioRead(int index, int *value)
00051 {
00052   return simDioRead(index, value);
00053 }
00054 
00055 int extDioWrite(int index, int value)
00056 {
00057   return simDioWrite(index, value);
00058 }
00059 
00060 int extDioCheck(int index, int *value)
00061 {
00062   return simDioCheck(index, value);
00063 }
00064 
00065 int extDioByteRead(int index, unsigned char *byte)
00066 {
00067   return simDioByteRead(index, byte);
00068 }
00069 
00070 int extDioShortRead(int index, unsigned short *sh)
00071 {
00072   return simDioShortRead(index, sh);
00073 }
00074 
00075 int extDioWordRead(int index, unsigned int *word)
00076 {
00077   return simDioWordRead(index, word);
00078 }
00079 
00080 int extDioByteWrite(int index, unsigned char byte)
00081 {
00082   return simDioByteWrite(index, byte);
00083 }
00084 
00085 int extDioShortWrite(int index, unsigned short sh)
00086 {
00087   return simDioShortWrite(index, sh);
00088 }
00089 
00090 int extDioWordWrite(int index, unsigned int word)
00091 {
00092   return simDioWordWrite(index, word);
00093 }
00094 
00095 int extDioByteCheck(int index, unsigned char *byte)
00096 {
00097   return simDioByteCheck(index, byte);
00098 }
00099 
00100 int extDioShortCheck(int index, unsigned short *sh)
00101 {
00102   return simDioShortCheck(index, sh);
00103 }
00104 
00105 int extDioWordCheck(int index, unsigned int *word)
00106 {
00107   return simDioWordCheck(index, word);
00108 }

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