22 #ifndef __FOSPHOR_FOSPHOR_H__ 23 #define __FOSPHOR_FOSPHOR_H__ 55 #define FOSPHOR_MAX_CHANNELS 8 64 #define FRO_LIVE (1<<0) 65 #define FRO_MAX_HOLD (1<<1) 66 #define FRO_HISTO (1<<2) 67 #define FRO_WATERFALL (1<<3) 68 #define FRO_LABEL_FREQ (1<<4) 69 #define FRO_LABEL_PWR (1<<5) 70 #define FRO_LABEL_TIME (1<<6) 71 #define FRO_CHANNELS (1<<7) 72 #define FRO_COLOR_SCALE (1<<8) #define FOSPHOR_MAX_CHANNELS
Definition: fosphor.h:55
void fosphor_render_defaults(struct fosphor_render *render)
void fosphor_release(struct fosphor *self)
void fosphor_set_fft_window(struct fosphor *self, float *win)
float wf_span
Waterfall time zoom ]0,1].
Definition: fosphor.h:87
float _x_label
(private) X location for labels
Definition: fosphor.h:97
int pos_x
X origin (lower left corner)
Definition: fosphor.h:78
float freq_start
Frequency zoom start [0,1[.
Definition: fosphor.h:85
float _x_div
(private) X divisions width
Definition: fosphor.h:95
struct fosphor * fosphor_init(void)
int _wf_pos
(private) Waterfall position
Definition: fosphor.h:93
int enabled
Showed (1) or hidden (0)
Definition: fosphor.h:59
int width
Width.
Definition: fosphor.h:80
void fosphor_set_frequency_range(struct fosphor *self, double center, double span)
double center
Definition: private.h:65
void fosphor_set_fft_window_default(struct fosphor *self)
void fosphor_set_power_range(struct fosphor *self, int db_ref, int db_per_div)
float _y_label
(private) Y location for label
Definition: fosphor.h:102
int db_per_div
Definition: private.h:59
int options
Options (See FRO_??? constants)
Definition: fosphor.h:82
int height
Height.
Definition: fosphor.h:81
int fosphor_process(struct fosphor *self, void *samples, int len)
float _y_histo_div
(private) Y histogram divisions height
Definition: fosphor.h:99
float freq_stop
Frequency zoom stop ]0,1].
Definition: fosphor.h:86
int db_ref
Definition: private.h:58
fosphor render options
Definition: fosphor.h:75
void fosphor_render_refresh(struct fosphor_render *render)
int freq_n_div
Number of frequency divisions.
Definition: fosphor.h:84
void fosphor_draw(struct fosphor *self, struct fosphor_render *render)
int pos_y
Y origin (lower left corner)
Definition: fosphor.h:79
double span
Definition: private.h:66
float width
Normalized bandwidth.
Definition: fosphor.h:61
float center
Normalized center frequency.
Definition: fosphor.h:60
float histo_wf_ratio
Ratio histogram/waterfall ]0,1[.
Definition: fosphor.h:83