#include <stdarg.h>#include "include/global.h"#include "include/lqm.h"#include "interface/wmp_interface.h"
Go to the source code of this file.
Functions | |
| void | wmp_set_levels (int w100, int w3, int w2, int w1) |
| int | wmpGetCpuDelay (void) |
| int | wmpGetFlowControl (void) |
| short | wmpGetInstanceId (void) |
| int | wmpGetLatestDistances (char *lqm) |
| int | wmpGetLatestLQM (char *lqm) |
| unsigned int | wmpGetLoopId (void) |
| char | wmpGetMaxRssi (void) |
| int | wmpGetMessageReschedule (void) |
| int | wmpGetNetIT (void) |
| char | wmpGetNodeId (void) |
| char | wmpGetNumOfNodes (void) |
| int | wmpGetRate (void) |
| unsigned int | wmpGetSerial (void) |
| int | wmpGetTimeout (void) |
| int | wmpGetWCMult (void) |
| void | wmpSetCpuDelay (int val) |
| void | wmpSetFlowControl (int val) |
| void | wmpSetInstanceId (short iid) |
| void | wmpSetMessageReschedule (int val) |
| void | wmpSetRate (int val) |
| void | wmpSetTimeout (int val) |
| void | wmpSetWCMult (int val) |
| void wmp_set_levels | ( | int | w100, |
| int | w3, | ||
| int | w2, | ||
| int | w1 | ||
| ) |
Definition at line 123 of file interface.c.
| int wmpGetCpuDelay | ( | void | ) |
Returns the delay that RT-WMP process waits before transmitting (to leave the processor to other tasks)
Definition at line 82 of file interface.c.
| int wmpGetFlowControl | ( | void | ) |
Definition at line 141 of file interface.c.
| short wmpGetInstanceId | ( | void | ) |
Definition at line 118 of file interface.c.
| int wmpGetLatestDistances | ( | char * | lqm | ) |
Definition at line 62 of file interface.c.
| int wmpGetLatestLQM | ( | char * | lqm | ) |
Returns latest lqm in a buffer. The Matrix should be scanned with a innested for loop:
char lqm[wmpGetNumOfNodes()*wmpGetNumOfNodes()],p;
wmpGetLatestLQM(lqm);
p = lqm;
for (i = 0; i<wmpGetNumOfNodes() ; i++){
for (j = 0; j<wmpGetNumOfNodes() ; j++){
element_ij = *p;
p++;
};
};
| lqm | an (at least) n x n char buffer (output parameter) |
Definition at line 50 of file interface.c.
| unsigned int wmpGetLoopId | ( | void | ) |
Definition at line 149 of file interface.c.
| char wmpGetMaxRssi | ( | void | ) |
Definition at line 74 of file interface.c.
| int wmpGetMessageReschedule | ( | void | ) |
Definition at line 133 of file interface.c.
| int wmpGetNetIT | ( | void | ) |
Returns the network inactivity timeout
Definition at line 110 of file interface.c.
| char wmpGetNodeId | ( | void | ) |
Returns the WMP address of the local node
Definition at line 42 of file interface.c.
| char wmpGetNumOfNodes | ( | void | ) |
Returns the total number of nodes of the network
Definition at line 46 of file interface.c.
| int wmpGetRate | ( | void | ) |
Returns the network rate (used to calculate delays in frame-hops)
Definition at line 106 of file interface.c.
| unsigned int wmpGetSerial | ( | void | ) |
Definition at line 145 of file interface.c.
| int wmpGetTimeout | ( | void | ) |
Returns the reception timeout
Definition at line 90 of file interface.c.
| int wmpGetWCMult | ( | void | ) |
Returns multiplier for the worst-case loop of the protocol (used to force worse worst-cases and increase QoS performances)
Definition at line 98 of file interface.c.
| void wmpSetCpuDelay | ( | int | val | ) |
Sets the delay that RT-WMP process waits before transmitting (to leave the processor to other tasks)
| val | time in milliseconds |
Definition at line 78 of file interface.c.
| void wmpSetFlowControl | ( | int | val | ) |
Definition at line 137 of file interface.c.
| void wmpSetInstanceId | ( | short | iid | ) |
Definition at line 114 of file interface.c.
| void wmpSetMessageReschedule | ( | int | val | ) |
Definition at line 130 of file interface.c.
| void wmpSetRate | ( | int | val | ) |
Sets network rate (used to calculate delays in frame-hops)
| val | rate in Mbps |
Definition at line 102 of file interface.c.
| void wmpSetTimeout | ( | int | val | ) |
Sets the reception timeout
| val | time in milliseconds |
Definition at line 86 of file interface.c.
| void wmpSetWCMult | ( | int | val | ) |
Sets multiplier for the worst-case loop of the protocol (used to force worse worst-cases and increase QoS performances)
| val | multiplier |
Definition at line 94 of file interface.c.