00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "extintf.h"
00019 #include "sim.h"
00020
00021
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 }