Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef WMPINTERFACE__H
00038 #define WMPINTERFACE__H
00039
00040 #include <stdarg.h>
00041 #include "wmp_config.h"
00042 #include "Msg.h"
00043
00044
00045
00046
00051 int wmpPush(Msg *p);
00052
00057 unsigned int wmpPop(Msg * p);
00058
00066 int wmpTimedPop(Msg * p, int timeout_ms);
00067
00074 int wmpNonBlockingPop(Msg * p);
00075
00076 #ifdef USE_MESSAGE_COMPRESSION
00077
00078 int wmpZPush(Msg * m);
00079
00080 #endif
00081
00084 char wmpGetNodeId(void);
00085
00089 char wmpGetNumOfNodes(void);
00090
00107 int wmpGetLatestLQM(char * lqm);
00108
00113 int wmpIsNetworkConnected(void);
00114
00120 int wmpIsNetworkConnectedBlocking(int timeout_ms);
00121
00125 int wmp_queue_tx_remove_head(void);
00126
00131 void wmpSetCpuDelay(int val);
00132
00137 int wmpGetCpuDelay(void);
00138
00142 void wmpSetTimeout(int val);
00143
00147 int wmpGetTimeout(void);
00148
00153 void wmpSetWCMult(int val);
00154
00159 int wmpGetWCMult(void);
00160
00164 void wmpSetRate(int val);
00165
00169 int wmpGetRate(void);
00170
00171
00172
00173
00177 int wmp_queue_tx_get_room(void);
00178
00182 int wmpGetNumOfElementsInTXQueue(void);
00183
00187 int wmpGetNumOfElementsInRXQueue(int port);
00188
00195 int wmpSetup(char node_id, char active_nodes);
00196 int wmpSetupList(int _node_id, int _num_nodes, int nparam, ...);
00197
00199 void wmpRun(void);
00200
00202 void wmpRunBG(void);
00203
00205 void wmpExit(void);
00206
00208 void wmpInmediateExit(void);
00209
00211 void wmpSetQuiet(void);
00212
00213 #ifndef __KERNEL__
00214
00215 void wmpEnableIntControl(void);
00216 #endif
00217
00221 int wmpGetNetIT(void);
00222
00226 unsigned int wmpGetMTU(void);
00227
00228
00232 void wmpSetActiveSearch(int val);
00233
00238 int wmpGetActiveSearch(void);
00239
00240 void wmpSetInstanceId(short iid);
00241 void wmpSetPrimBasedRouting(int val);
00242
00243 void wmpSetMessageReschedule(int val);
00244
00245 void wmpSetFlowControl(int val);
00246
00247 short wmpGetInstanceId(void);
00248 int wmpGetPrimBasedRouting(void);
00249
00250 int wmpGetMessageReschedule(void);
00251
00252 int wmpGetFlowControl(void);
00253
00254 unsigned int wmpGetSerial(void);
00255 unsigned int wmpGetLoopId(void);
00256
00257 int wmpPushData (unsigned int port, char * p, unsigned int size, unsigned int dest, signed char priority);
00258 int wmpPopData (unsigned int port, char ** p, unsigned int * size, unsigned char * src, signed char * priority);
00259 int wmpPopDataTimeout (unsigned int port, char ** p, unsigned int * size, unsigned char * src, signed char * priority, int to);
00260 int wmpPopDataCopy (unsigned int port, char * p, unsigned int * size, unsigned char * src, signed char * priority);
00261 int wmpPopDataTimeoutCopy (unsigned int port, char * p, unsigned int * size, unsigned char * src, signed char * priority, int to);
00262 void wmpPopDataDone (int id);
00263 int wmpWaitData(unsigned int port, int to);
00264 void wmpForceTopology(char * name, int parameter);
00265 void wmpSetRxError(char * name, int rate);
00266 int wmpSetTaskMinimumSeparation(int port, int period);
00267 int wmpIsKernelSpace(void);
00268 void wmpForceBurst(int port);
00269 int wmpGetLatestDistances(char * dist);
00270
00271 char lqm_get_val(int i, int j);
00272 #endif
00273