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.
projector.h
Go to the documentation of this file.
1 // Copyright (C) 2017 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 #include "export.h"
20 #include "dsptypes.h"
21 
23 {
24 public:
26  {
27  ProjectionReal = 0,
38  nbProjectionTypes
39  };
40 
41  Projector(ProjectionType projectionType);
42  ~Projector();
43 
44  ProjectionType getProjectionType() const { return m_projectionType; }
45  void settProjectionType(ProjectionType projectionType) { m_projectionType = projectionType; }
46  void setCache(Real *cache) { m_cache = cache; }
47  void setCacheMaster(bool cacheMaster) { m_cacheMaster = cacheMaster; }
48 
49  Real run(const Sample& s);
50 
51 private:
52  static Real normalizeAngle(Real angle);
57 };
ProjectionType m_projectionType
Definition: projector.h:53
Calculate logarithmic (dB) of squared magnitude.
Definition: projector.h:31
void setCache(Real *cache)
Definition: projector.h:46
ProjectionType
Definition: projector.h:25
Phase comparator 8-PSK evaluation.
Definition: projector.h:36
Phase comparator 16-PSK evaluation.
Definition: projector.h:37
Phase comparator BPSK evaluation.
Definition: projector.h:34
Calculate phase.
Definition: projector.h:32
Real * m_cache
Definition: projector.h:55
Calculate linear magnitude or modulus.
Definition: projector.h:29
Calculate linear squared magnitude or power.
Definition: projector.h:30
void settProjectionType(ProjectionType projectionType)
Definition: projector.h:45
Real m_prevArg
Definition: projector.h:54
Calculate phase derivative i.e. instantaneous frequency scaled to sample rate.
Definition: projector.h:33
bool m_cacheMaster
Definition: projector.h:56
ProjectionType getProjectionType() const
Definition: projector.h:44
Extract imaginary part.
Definition: projector.h:28
#define SDRBASE_API
Definition: export.h:40
void setCacheMaster(bool cacheMaster)
Definition: projector.h:47
float Real
Definition: dsptypes.h:42
Phase comparator QPSK evaluation.
Definition: projector.h:35