Go to the source code of this file.
Functions | |
char | lqm_get_val (int i, int j) |
int | wmp_queue_tx_get_room (void) |
int | wmp_queue_tx_remove_head (void) |
void | wmpEnableIntControl (void) |
void | wmpExit (void) |
void | wmpForceBurst (int port) |
void | wmpForceTopology (char *name, int parameter) |
int | wmpGetActiveSearch (void) |
int | wmpGetCpuDelay (void) |
int | wmpGetFlowControl (void) |
short | wmpGetInstanceId (void) |
int | wmpGetLatestDistances (char *dist) |
int | wmpGetLatestLQM (char *lqm) |
unsigned int | wmpGetLoopId (void) |
int | wmpGetMessageReschedule (void) |
unsigned int | wmpGetMTU (void) |
int | wmpGetNetIT (void) |
char | wmpGetNodeId (void) |
int | wmpGetNumOfElementsInRXQueue (int port) |
int | wmpGetNumOfElementsInTXQueue (void) |
char | wmpGetNumOfNodes (void) |
int | wmpGetPrimBasedRouting (void) |
int | wmpGetRate (void) |
unsigned int | wmpGetSerial (void) |
int | wmpGetTimeout (void) |
int | wmpGetWCMult (void) |
void | wmpInmediateExit (void) |
int | wmpIsKernelSpace (void) |
int | wmpIsNetworkConnected (void) |
int | wmpIsNetworkConnectedBlocking (int timeout_ms) |
int | wmpNonBlockingPop (Msg *p) |
unsigned int | wmpPop (Msg *p) |
int | wmpPopData (unsigned int port, char **p, unsigned int *size, unsigned char *src, signed char *priority) |
int | wmpPopDataCopy (unsigned int port, char *p, unsigned int *size, unsigned char *src, signed char *priority) |
void | wmpPopDataDone (int id) |
int | wmpPopDataTimeout (unsigned int port, char **p, unsigned int *size, unsigned char *src, signed char *priority, int to) |
int | wmpPopDataTimeoutCopy (unsigned int port, char *p, unsigned int *size, unsigned char *src, signed char *priority, int to) |
int | wmpPush (Msg *p) |
int | wmpPushData (unsigned int port, char *p, unsigned int size, unsigned int dest, signed char priority) |
void | wmpRun (void) |
void | wmpRunBG (void) |
void | wmpSetActiveSearch (int val) |
void | wmpSetCpuDelay (int val) |
void | wmpSetFlowControl (int val) |
void | wmpSetInstanceId (short iid) |
void | wmpSetMessageReschedule (int val) |
void | wmpSetPrimBasedRouting (int val) |
void | wmpSetQuiet (void) |
void | wmpSetRate (int val) |
void | wmpSetRxError (char *name, int rate) |
int | wmpSetTaskMinimumSeparation (int port, int period) |
void | wmpSetTimeout (int val) |
int | wmpSetup (char node_id, char active_nodes) |
int | wmpSetupList (int _node_id, int _num_nodes, int nparam,...) |
void | wmpSetWCMult (int val) |
int | wmpTimedPop (Msg *p, int timeout_ms) |
int | wmpWaitData (unsigned int port, int to) |
char lqm_get_val | ( | int | i, |
int | j | ||
) |
int wmp_queue_tx_get_room | ( | void | ) |
int wmp_queue_tx_remove_head | ( | void | ) |
void wmpEnableIntControl | ( | void | ) |
Enable RT-WMP SIGINT control (CTRL^C will show an alive message)
void wmpForceBurst | ( | int | port | ) |
void wmpForceTopology | ( | char * | name, |
int | parameter | ||
) |
int wmpGetActiveSearch | ( | void | ) |
Returns the status of the active search capability
Definition at line 145 of file core/wmp_misc.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 * | dist | ) |
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.
int wmpGetMessageReschedule | ( | void | ) |
Definition at line 133 of file interface.c.
unsigned int wmpGetMTU | ( | void | ) |
Returns the Maximum Transmission Unit for USER data
Definition at line 127 of file core/wmp_misc.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.
int wmpGetNumOfElementsInRXQueue | ( | int | port | ) |
int wmpGetNumOfElementsInTXQueue | ( | void | ) |
char wmpGetNumOfNodes | ( | void | ) |
Returns the total number of nodes of the network
Definition at line 46 of file interface.c.
int wmpGetPrimBasedRouting | ( | void | ) |
Definition at line 513 of file wmp_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 wmpInmediateExit | ( | void | ) |
int wmpIsKernelSpace | ( | void | ) |
int wmpIsNetworkConnected | ( | void | ) |
int wmpIsNetworkConnectedBlocking | ( | int | timeout_ms | ) |
Allows knowing if the network is connected (i.e. all the nodes are up and working and connected among them and if not, blocks the caller thread until connected
timeout_ms | specify the maximum wait for connection (if timeout_ms = 0 wait forever) |
int wmpNonBlockingPop | ( | Msg * | p | ) |
int wmpPopData | ( | unsigned int | port, |
char ** | p, | ||
unsigned int * | size, | ||
unsigned char * | src, | ||
signed char * | priority | ||
) |
int wmpPopDataCopy | ( | unsigned int | port, |
char * | p, | ||
unsigned int * | size, | ||
unsigned char * | src, | ||
signed char * | priority | ||
) |
void wmpPopDataDone | ( | int | id | ) |
int wmpPopDataTimeout | ( | unsigned int | port, |
char ** | p, | ||
unsigned int * | size, | ||
unsigned char * | src, | ||
signed char * | priority, | ||
int | to | ||
) |
int wmpPopDataTimeoutCopy | ( | unsigned int | port, |
char * | p, | ||
unsigned int * | size, | ||
unsigned char * | src, | ||
signed char * | priority, | ||
int | to | ||
) |
int wmpPushData | ( | unsigned int | port, |
char * | p, | ||
unsigned int | size, | ||
unsigned int | dest, | ||
signed char | priority | ||
) |
void wmpRun | ( | void | ) |
void wmpRunBG | ( | void | ) |
void wmpSetActiveSearch | ( | int | val | ) |
Set / Unset the active search capability (default:on)
Definition at line 141 of file core/wmp_misc.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 wmpSetPrimBasedRouting | ( | int | val | ) |
Definition at line 149 of file core/wmp_misc.c.
void wmpSetQuiet | ( | void | ) |
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 wmpSetRxError | ( | char * | name, |
int | rate | ||
) |
int wmpSetTaskMinimumSeparation | ( | int | port, |
int | period | ||
) |
Definition at line 189 of file task_timing.c.
void wmpSetTimeout | ( | int | val | ) |
Sets the reception timeout
val | time in milliseconds |
Definition at line 86 of file interface.c.
int wmpSetup | ( | char | node_id, |
char | active_nodes | ||
) |
int wmpSetupList | ( | int | _node_id, |
int | _num_nodes, | ||
int | nparam, | ||
... | |||
) |
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.
int wmpTimedPop | ( | Msg * | p, |
int | timeout_ms | ||
) |
Dequeue a message from the RX Queue if already in the queue or enqueued within timeous_ms milliseconds. If there are not message to dequeue, returns a negative value
p | the message to pop |
timeout_ms | pop timeout in milliseconds |
int wmpWaitData | ( | unsigned int | port, |
int | to | ||
) |