Functions
interface.c File Reference
#include <stdarg.h>
#include "include/global.h"
#include "include/lqm.h"
#include "interface/wmp_interface.h"
Include dependency graph for interface.c:

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)

Function Documentation

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)

Returns:
delay in milliseconds

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++;
		};
	};

Parameters:
lqman (at least) n x n char buffer (output parameter)
Returns:
always 0

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

Returns:
the net inactivity timeout

Definition at line 110 of file interface.c.

char wmpGetNodeId ( void  )

Returns the WMP address of the local node

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

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)

Returns:
rate in Mbps

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

Returns:
reception timeout in milliseconds

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)

Returns:
multiplier

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)

Parameters:
valtime 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)

Parameters:
valrate in Mbps

Definition at line 102 of file interface.c.

void wmpSetTimeout ( int  val)

Sets the reception timeout

Parameters:
valtime 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)

Parameters:
valmultiplier

Definition at line 94 of file interface.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:12