SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
sdrbase
dsp
filtermbe.h
Go to the documentation of this file.
1
// Copyright (C) 2016 F4EXB //
3
// written by Edouard Griffiths //
4
// //
5
// This program is free software; you can redistribute it and/or modify //
6
// it under the terms of the GNU General Public License as published by //
7
// the Free Software Foundation as version 3 of the License, or //
8
// (at your option) any later version. //
9
// //
10
// This program is distributed in the hope that it will be useful, //
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
13
// GNU General Public License V3 for more details. //
14
// //
15
// You should have received a copy of the GNU General Public License //
16
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
18
19
#ifndef SDRBASE_DSP_FILTERMBE_H_
20
#define SDRBASE_DSP_FILTERMBE_H_
21
61
#include "
iirfilter.h
"
62
#include "
export.h
"
63
64
class
SDRBASE_API
MBEAudioInterpolatorFilter
65
{
66
public
:
67
MBEAudioInterpolatorFilter
();
68
~
MBEAudioInterpolatorFilter
();
69
70
void
useHP
(
bool
useHP) { m_useHP =
useHP
; }
71
bool
usesHP
()
const
{
return
m_useHP; }
72
float
run(
const
float
& sample);
73
float
runHP(
const
float
& sample);
74
float
runLP(
const
float
& sample);
75
76
private
:
77
IIRFilter<float, 2>
m_filterLP
;
78
IIRFilter<float, 2>
m_filterHP
;
79
bool
m_useHP
;
80
// low pass coefficients
81
static
const
float
m_lpa[3];
82
static
const
float
m_lpb[3];
83
// band pass coefficients
84
static
const
float
m_hpa[3];
85
static
const
float
m_hpb[3];
86
};
87
88
89
#endif
/* SDRBASE_DSP_FILTERMBE_H_ */
MBEAudioInterpolatorFilter
Definition:
filtermbe.h:64
IIRFilter< float, 2 >
MBEAudioInterpolatorFilter::usesHP
bool usesHP() const
Definition:
filtermbe.h:71
export.h
MBEAudioInterpolatorFilter::m_filterHP
IIRFilter< float, 2 > m_filterHP
Definition:
filtermbe.h:78
MBEAudioInterpolatorFilter::m_filterLP
IIRFilter< float, 2 > m_filterLP
Definition:
filtermbe.h:77
MBEAudioInterpolatorFilter::useHP
void useHP(bool useHP)
Definition:
filtermbe.h:70
iirfilter.h
SDRBASE_API
#define SDRBASE_API
Definition:
export.h:40
MBEAudioInterpolatorFilter::m_useHP
bool m_useHP
Definition:
filtermbe.h:79
Generated on Fri Aug 2 2019 17:56:33 for SDRAngel by
1.8.13