-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4acadbf
commit bc132da
Showing
28 changed files
with
1,538 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# | ||
/* | ||
* Copyright (C) 2016 .. 2023 | ||
* Jan van Katwijk ([email protected]) | ||
* Lazy Chair Computing | ||
* | ||
* This file is part of Qt-DAB | ||
* | ||
* Qt-DAB is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Qt-DAB is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Qt-DAB; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <cstdint> | ||
#include "dab-params.h" | ||
#include <complex> | ||
#include <vector> | ||
#include "dab-constants.h" | ||
#include "fft-handler.h" | ||
class QSettings; | ||
|
||
class TII_Detector_A { | ||
public: | ||
TII_Detector_A (uint8_t dabMode, QSettings *); | ||
~TII_Detector_A (); | ||
void reset (); | ||
void setMode (bool); | ||
void addBuffer (std::vector<Complex>); | ||
std::vector<tiiResult> processNULL (bool); | ||
|
||
private: | ||
QSettings *dabSettings; | ||
dabParams params; | ||
int16_t T_u; | ||
int16_t carriers; | ||
fftHandler my_fftHandler; | ||
void resetBuffer (); | ||
void collapse (Complex *, Complex *, Complex *); | ||
|
||
bool collisions = false; | ||
uint8_t invTable [256]; | ||
Complex decodedBuffer[768]; | ||
|
||
std::vector<Complex > theBuffer; | ||
std::vector<DABFLOAT> window; | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# | ||
/* | ||
* Copyright (C) 2016 .. 2023 | ||
* Jan van Katwijk ([email protected]) | ||
* Lazy Chair Computing | ||
* | ||
* This file is part of Qt-DAB | ||
* | ||
* Qt-DAB is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Qt-DAB is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Qt-DAB; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <cstdint> | ||
#include "dab-params.h" | ||
#include <complex> | ||
#include <vector> | ||
#include "dab-constants.h" | ||
#include "fft-handler.h" | ||
class QSettings; | ||
|
||
class TII_Detector_B { | ||
public: | ||
TII_Detector_B (uint8_t dabMode, QSettings *); | ||
~TII_Detector_B (); | ||
void reset (); | ||
void setMode (bool); | ||
void addBuffer (std::vector<Complex>); | ||
std::vector<tiiResult> processNULL (bool); | ||
|
||
private: | ||
QSettings *dabSettings; | ||
dabParams params; | ||
int16_t T_u; | ||
int16_t carriers; | ||
fftHandler my_fftHandler; | ||
void resetBuffer (); | ||
void collapse (std::vector<Complex> &inVec, float *outVec); | ||
|
||
bool collisions = false; | ||
uint8_t invTable [256]; | ||
Complex decodedBuffer[768]; | ||
|
||
bool detectMode_new; | ||
std::vector<Complex > theBuffer; | ||
std::vector<DABFLOAT> window; | ||
}; | ||
|
||
|
0
includes/ofdm/tii-detector.h → includes/ofdm/tii-detector.h-old
100755 → 100644
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.