#define RWHIS #include "rwh.h" void rwh_start() { } void rwh_stop() { } void rwh_aio_init(IA &ia) { } void rwh_dio_init(IA &ia) { } int rwh_aio_write(IA &ia,unsigned short v) { return(0); } int rwh_aio_read(IA &ia,unsigned short &v) { v=0; return(0); } int rwh_dio_write(IA &ia,unsigned short v) { return(0); } int rwh_dio_read(IA &ia,unsigned short &v) { return(0); } int rwh_atr_read(IA &ia,float &v) { return(0); } int rwh_atr_write(IA &ia,float &v) { return(0); } |
#ifdef RWHIS typedef union { unsigned char c[6]; unsigned short int i[3]; } IA; __declspec(dllexport) void rwh_start(); __declspec(dllexport) void rwh_stop(); __declspec(dllexport) void rwh_aio_init(IA &ia); __declspec(dllexport) void rwh_dio_init(IA &ia); __declspec(dllexport) int rwh_aio_write(IA &ia,unsigned short v); __declspec(dllexport) int rwh_aio_read(IA &ia,unsigned short &v); __declspec(dllexport) int rwh_dio_write(IA &ia,unsigned short v); __declspec(dllexport) int rwh_dio_read(IA &ia,unsigned short &v); __declspec(dllexport) int rwh_atr_read(IA &ia,float &v); __declspec(dllexport) int rwh_atr_write(IA &ia,float &v); #else __declspec(dllimport) void rwh_start(); __declspec(dllimport) void rwh_stop(); __declspec(dllimport) void rwh_aio_init(IA &ia); __declspec(dllimport) void rwh_dio_init(IA &ia); __declspec(dllimport) int rwh_aio_write(IA &ia,unsigned short v); __declspec(dllimport) int rwh_aio_read(IA &ia,unsigned short &v); __declspec(dllimport) int rwh_dio_write(IA &ia,unsigned short v); __declspec(dllimport) int rwh_dio_read(IA &ia,unsigned short &v); __declspec(dllimport) int rwh_atr_read(IA &ia,float &v); __declspec(dllimport) int rwh_atr_write(IA &ia,float &v); #endif |