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-2021 Sylvain Munaut
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 */
9
10#pragma once
11
12/*! \defgroup axis
13 * @{
14 */
15
16/*! \file axis.h
17 * \brief Logic to deal with various axises
18 */
19
21{
22 double center;
23 double span;
24 double step;
25 int mode;
26 char abs_fmt[16];
27 double abs_scale;
28 char rel_fmt[16];
29 double rel_step;
30};
31
32void freq_axis_build(struct freq_axis *fx, double center, double span, int n_div);
33void freq_axis_render(struct freq_axis *fx, char *str, int step);
34
35/*! @} */
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:21
int mode
Definition axis.h:25
char rel_fmt[16]
Definition axis.h:28
double rel_step
Definition axis.h:29
double center
Definition axis.h:22
double abs_scale
Definition axis.h:27
double span
Definition axis.h:23
double step
Definition axis.h:24
char abs_fmt[16]
Definition axis.h:26