GNU Radio's TEST Package
private.h
Go to the documentation of this file.
1
/*
2
* private.h
3
*
4
* Private fosphor definitions
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_PRIVATE_H__
23
#define __FOSPHOR_PRIVATE_H__
24
25
/*! \defgroup private
26
* @{
27
*/
28
29
/*! \file private.h
30
* \brief Private fosphor definitions
31
*/
32
33
34
#define FOSPHOR_FFT_LEN_LOG 10
35
#define FOSPHOR_FFT_LEN (1<<FOSPHOR_FFT_LEN_LOG)
36
37
#define FOSPHOR_FFT_MULT_BATCH 16
38
#define FOSPHOR_FFT_MAX_BATCH 1024
39
40
struct
fosphor_cl_state;
41
struct
fosphor_gl_state;
42
43
struct
fosphor
44
{
45
struct
fosphor_cl_state *
cl
;
46
struct
fosphor_gl_state *
gl
;
47
48
#define FLG_FOSPHOR_USE_CLGL_SHARING (1<<0)
49
int
flags
;
50
51
float
fft_win
[
FOSPHOR_FFT_LEN
];
52
53
float
*
img_waterfall
;
54
float
*
img_histogram
;
55
float
*
buf_spectrum
;
56
57
struct
{
58
int
db_ref
;
59
int
db_per_div
;
60
float
scale
;
61
float
offset
;
62
}
power
;
63
64
struct
{
65
double
center
;
66
double
span
;
67
}
frequency
;
68
};
69
70
71
/*! @} */
72
73
#endif
/* __FOSPHOR_PRIVATE_H__ */
fosphor::img_histogram
float * img_histogram
Definition:
private.h:54
fosphor::img_waterfall
float * img_waterfall
Definition:
private.h:53
fosphor::span
double span
Definition:
private.h:66
fosphor::gl
struct fosphor_gl_state * gl
Definition:
private.h:46
fosphor::flags
int flags
Definition:
private.h:49
fosphor::db_ref
int db_ref
Definition:
private.h:58
fosphor
Definition:
private.h:43
fosphor::power
struct fosphor::@2 power
fosphor::center
double center
Definition:
private.h:65
fosphor::db_per_div
int db_per_div
Definition:
private.h:59
FOSPHOR_FFT_LEN
#define FOSPHOR_FFT_LEN
Definition:
private.h:35
fosphor::fft_win
float fft_win[FOSPHOR_FFT_LEN]
Definition:
private.h:51
fosphor::buf_spectrum
float * buf_spectrum
Definition:
private.h:55
fosphor::frequency
struct fosphor::@3 frequency
fosphor::scale
float scale
Definition:
private.h:60
fosphor::cl
struct fosphor_cl_state * cl
Definition:
private.h:45
fosphor::offset
float offset
Definition:
private.h:61
lib
fosphor
private.h
Generated by
1.8.17