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
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
45void freq_axis_build(struct freq_axis *fx, double center, double span, int n_div);
46void freq_axis_render(struct freq_axis *fx, char *str, int step);
47
48/*! @} */
49
50#endif /* __FOSPHOR_AXIS_H__ */
void freq_axis_render(struct freq_axis *fx, char *str, int step)
void freq_axis_build(struct freq_axis *fx, double center, double span, int n_div)
Definition axis.h:34
int mode
Definition axis.h:38
char rel_fmt[16]
Definition axis.h:41
double rel_step
Definition axis.h:42
double center
Definition axis.h:35
double abs_scale
Definition axis.h:40
double span
Definition axis.h:36
double step
Definition axis.h:37
char abs_fmt[16]
Definition axis.h:39