defs.h 896 Bytes
Newer Older
1 2
#ifndef _COMMON_UTILS_T_TRACER_DEFS_H_
#define _COMMON_UTILS_T_TRACER_DEFS_H_
3

Cedric Roux's avatar
Cedric Roux committed
4 5 6
/* types of plots */
#define PLOT_VS_TIME   0
#define PLOT_IQ_POINTS 1
Cedric Roux's avatar
Cedric Roux committed
7
#define PLOT_MINMAX    2
Cedric Roux's avatar
Cedric Roux committed
8

Cedric Roux's avatar
Cedric Roux committed
9 10
void new_thread(void *(*f)(void *), void *data);

11 12 13 14 15
/* ... is { int count; int type; char *color; } for 'nplots' plots */
void *make_plot(int width, int height, char *title, int nplots, ...);
void plot_set(void *plot, float *data, int len, int pos, int pp);
void iq_plot_set(void *plot, short *data, int len, int pos, int pp);
void iq_plot_set_sized(void *_plot, short *data, int len, int pp);
Cedric Roux's avatar
Cedric Roux committed
16 17
void iq_plot_add_iq_point_loop(void *_plot, short i, short q, int pp);
void iq_plot_add_energy_point_loop(void *_plot, int e, int pp);
18

19 20 21 22 23
/* T gui functions */
void t_gui_start(void);
void t_gui_set_input_signal(int eNB, int frame, int subframe, int antenna,
    int size, void *buf);

24
#endif /* _COMMON_UTILS_T_TRACER_DEFS_H_ */