GNU Radio's TEST Package
axis.h
Go to the documentation of this file.
1 /*
2  * axis.h
3  *
4  * Logic to deal with various axises
5  *
6  * Copyright (C) 2013-2014 Sylvain Munaut
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef __FOSPHOR_AXIS_H__
23 #define __FOSPHOR_AXIS_H__
24 
25 /*! \defgroup axis
26  * @{
27  */
28 
29 /*! \file axis.h
30  * \brief Logic to deal with various axises
31  */
32 
33 struct freq_axis
34 {
35  double center;
36  double span;
37  double step;
38  int mode;
39  char abs_fmt[16];
40  double abs_scale;
41  char rel_fmt[16];
42  double rel_step;
43 };
44 
45 void freq_axis_build(struct freq_axis *fx, double center, double span, int n_div);
46 void freq_axis_render(struct freq_axis *fx, char *str, int step);
47 
48 /*! @} */
49 
50 #endif /* __FOSPHOR_AXIS_H__ */
freq_axis::span
double span
Definition: axis.h:36
freq_axis::rel_fmt
char rel_fmt[16]
Definition: axis.h:41
freq_axis
Definition: axis.h:34
freq_axis::rel_step
double rel_step
Definition: axis.h:42
freq_axis::mode
int mode
Definition: axis.h:38
freq_axis::abs_fmt
char abs_fmt[16]
Definition: axis.h:39
freq_axis_build
void freq_axis_build(struct freq_axis *fx, double center, double span, int n_div)
freq_axis_render
void freq_axis_render(struct freq_axis *fx, char *str, int step)
freq_axis::abs_scale
double abs_scale
Definition: axis.h:40
freq_axis::center
double center
Definition: axis.h:35
freq_axis::step
double step
Definition: axis.h:37