ansicreceiver.h

Go to the documentation of this file.
00001 #ifndef RECEIVERINTERFACEANSIC_H
00002 #define RECEIVERINTERFACEANSIC_H
00003 
00004 #include "dllexport.h"
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009 
00015 
00016 
00017 typedef void(*funcSTS)(); 
00018 typedef void(*funcMCS)(unsigned short, unsigned short); 
00019 typedef unsigned long(*funcMIS)();  
00020 typedef int(*funcDRS)(unsigned long);   
00021 
00027 DLL_PUBLIC void* createReceiver(unsigned short required_revision);
00028 
00041 DLL_PUBLIC void* createReceiverWithFunctionOverride(unsigned short required_revision,
00042                                                     funcSTS sts,
00043                                                     funcMCS mcs,
00044                                                     funcMIS mis,
00045                                                     funcDRS drs);
00046 
00058 DLL_PUBLIC void* createReceiverForGroup(unsigned short required_revision, unsigned int node_id, const char* host_addr);
00059 
00078 DLL_PUBLIC void* createReceiverForGroupWithFunctionOverride(unsigned short required_revision,
00079                                                            unsigned int node_id,
00080                                                            const char* host_addr,
00081                                                            funcSTS sts,
00082                                                            funcMCS mcs,
00083                                                            funcMIS mis,
00084                                                            funcDRS drs);
00085 
00094 DLL_PUBLIC void requestDataI(void* recv, unsigned long id, int id29, int* i);
00095 
00104 DLL_PUBLIC void requestDataF(void* recv, unsigned long id, int id29, float* f);
00105 
00114 DLL_PUBLIC void requestDataD(void* recv, unsigned long id, int id29, double* d);
00115 
00124 DLL_PUBLIC void requestDataB(void* recv, unsigned long id, int id29, int* i);
00125 
00135 DLL_PUBLIC void requestDataS(void* recv, unsigned long id, int id29, char* c, unsigned long maxlength);
00136 
00146 DLL_PUBLIC void requestDataVF(void* recv, unsigned long id, int id29, float* f, unsigned long maxlength);
00147 
00158 DLL_PUBLIC void requestModule(void* recv, unsigned int node_id, unsigned int module, unsigned int mode);
00159 
00160 
00169 DLL_PUBLIC void sendDataI(void* recv, unsigned long id, int id29, int i);
00170 
00179 DLL_PUBLIC void sendDataF(void* recv, unsigned long id, int id29, float f);
00180 
00189 DLL_PUBLIC void sendDataD(void* recv, unsigned long id, int id29, double d);
00190 
00199 DLL_PUBLIC void sendDataB(void* recv, unsigned long id, int id29, int i);
00200 
00209 DLL_PUBLIC void sendDataS(void* recv, unsigned long id, int id29, const char* c, unsigned long maxlength);
00210 
00219 DLL_PUBLIC void sendDataVF(void* recv, unsigned long id, int id29, float* f, unsigned long maxlength);
00220 
00230 DLL_PUBLIC void run(void* recv);
00231 
00236 DLL_PUBLIC void freeReceiver(void* recv);
00237 
00238 #ifdef __cplusplus
00239 }
00240 #endif
00241 
00242 #endif // RECEIVERINTERFACEANSIC_H