Defines | Functions | Variables
wmp_utils.c File Reference
#include "config/compiler.h"
#include "include/wmp_utils.h"
#include "include/wmp_misc.h"
#include "include/lqm.h"
#include "interface/wmp_interface.h"
Include dependency graph for wmp_utils.c:

Go to the source code of this file.

Defines

#define NET_DEBUG

Functions

void lqmToString (char **lqm, char *s, int nnodes)
int ms_to_us (int n)
int us_to_ms (int n)
void wmp_add_ms (struct timespec *ts, int ms)
unsigned int wmp_calculate_frame_duration_ms (int rate, int size)
unsigned int wmp_calculate_frame_duration_us (int rate, int size)
long long wmp_elapsed_ms (struct timespec *begin, struct timespec *end)
void wmp_print (const char *format,...)
void wmp_print_append (wmpFrame *p)
void wmp_print_clean (wmpFrame *p)
int wmp_print_get_size (void)
void wmp_print_lqm (char **lqm, char *s, int nnodes)
void wmp_print_lqmn (char *s, int d)
int wmp_print_put (wmpFrame *p)
void wmp_print_reset (void)
int wmp_time_diff_ms (int i, int j)
long long wmp_time_diff_us (int i, int j)
void wmp_time_print_diff_ms (int i, int j, char *txt)
void wmp_time_print_diff_us (int i, int j, char *txt)
void wmp_time_print_ms (int i, char *txt)
void wmp_time_print_us (int i, char *txt)
void wmp_time_store (int i)
void wmp_time_subtract (int i)
void wmp_time_subtract_and_print_ms (int i, char *txt)
void wmp_time_subtract_and_print_us (int i, char *txt)
long long wmp_timespec_to_ns (struct timespec *ts)
int wmpGetFrameHash (wmpFrame *p)
int wmpGetFrameHashNoRetry (wmpFrame *p)

Variables

static char buffer [1000]
static int buffer_idx = 0
unsigned long long s_time [10]

Define Documentation

#define NET_DEBUG

Definition at line 44 of file wmp_utils.c.


Function Documentation

void lqmToString ( char **  lqm,
char *  s,
int  nnodes 
)

Definition at line 89 of file wmp_utils.c.

int ms_to_us ( int  n) [inline]

Definition at line 180 of file wmp_utils.c.

int us_to_ms ( int  n) [inline]

Definition at line 183 of file wmp_utils.c.

void wmp_add_ms ( struct timespec *  ts,
int  ms 
)

Definition at line 56 of file wmp_utils.c.

unsigned int wmp_calculate_frame_duration_ms ( int  rate,
int  size 
)

Definition at line 66 of file wmp_utils.c.

unsigned int wmp_calculate_frame_duration_us ( int  rate,
int  size 
)

Definition at line 75 of file wmp_utils.c.

long long wmp_elapsed_ms ( struct timespec *  begin,
struct timespec *  end 
)

Definition at line 51 of file wmp_utils.c.

void wmp_print ( const char *  format,
  ... 
)

Definition at line 192 of file wmp_utils.c.

void wmp_print_append ( wmpFrame *  p)

Definition at line 200 of file wmp_utils.c.

void wmp_print_clean ( wmpFrame *  p)

Definition at line 217 of file wmp_utils.c.

int wmp_print_get_size ( void  )

Definition at line 209 of file wmp_utils.c.

void wmp_print_lqm ( char **  lqm,
char *  s,
int  nnodes 
)

Definition at line 120 of file wmp_utils.c.

void wmp_print_lqmn ( char *  s,
int  d 
)

Definition at line 126 of file wmp_utils.c.

int wmp_print_put ( wmpFrame *  p)

Definition at line 225 of file wmp_utils.c.

void wmp_print_reset ( void  )

Definition at line 212 of file wmp_utils.c.

int wmp_time_diff_ms ( int  i,
int  j 
)

Definition at line 144 of file wmp_utils.c.

long long wmp_time_diff_us ( int  i,
int  j 
)

Definition at line 139 of file wmp_utils.c.

void wmp_time_print_diff_ms ( int  i,
int  j,
char *  txt 
)

Definition at line 149 of file wmp_utils.c.

void wmp_time_print_diff_us ( int  i,
int  j,
char *  txt 
)

Definition at line 152 of file wmp_utils.c.

void wmp_time_print_ms ( int  i,
char *  txt 
)

Definition at line 165 of file wmp_utils.c.

void wmp_time_print_us ( int  i,
char *  txt 
)

Definition at line 161 of file wmp_utils.c.

void wmp_time_store ( int  i)

Definition at line 135 of file wmp_utils.c.

void wmp_time_subtract ( int  i)

Definition at line 156 of file wmp_utils.c.

void wmp_time_subtract_and_print_ms ( int  i,
char *  txt 
)

Definition at line 175 of file wmp_utils.c.

void wmp_time_subtract_and_print_us ( int  i,
char *  txt 
)

Definition at line 170 of file wmp_utils.c.

long long wmp_timespec_to_ns ( struct timespec *  ts)

Definition at line 46 of file wmp_utils.c.

int wmpGetFrameHash ( wmpFrame *  p)

Definition at line 80 of file wmp_utils.c.

int wmpGetFrameHashNoRetry ( wmpFrame *  p)

Definition at line 85 of file wmp_utils.c.


Variable Documentation

char buffer[1000] [static]

Definition at line 190 of file wmp_utils.c.

int buffer_idx = 0 [static]

Definition at line 191 of file wmp_utils.c.

unsigned long long s_time[10]

Definition at line 133 of file wmp_utils.c.



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