![]() |
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.
|
#include <ctcssdetector.h>
Public Member Functions | |
| CTCSSDetector () | |
| CTCSSDetector (int _nTones, Real *tones) | |
| virtual | ~CTCSSDetector () |
| void | setCoefficients (int zN, int SampleRate) |
| void | setThreshold (double thold) |
| bool | analyze (Real *sample) |
| int | getNTones () const |
| const Real * | getToneSet () const |
| bool | getDetectedTone (int &maxTone) const |
| Real | getMaxPower () const |
| void | reset () |
Protected Member Functions | |
| virtual void | initializePower () |
| virtual void | evaluatePower () |
| void | feedback (Real sample) |
| void | feedForward () |
Private Attributes | |
| int | N |
| int | sampleRate |
| int | nTones |
| int | samplesProcessed |
| int | maxPowerIndex |
| bool | toneDetected |
| Real | maxPower |
| Real * | k |
| Real * | coef |
| Real * | toneSet |
| Real * | u0 |
| Real * | u1 |
| Real * | power |
CTCSSDetector: Continuous Tone Coded Squelch System tone detector class based on the Modified Goertzel algorithm.
Definition at line 19 of file ctcssdetector.h.
| CTCSSDetector::CTCSSDetector | ( | ) |
| CTCSSDetector::CTCSSDetector | ( | int | _nTones, |
| Real * | tones | ||
| ) |
|
virtual |
| bool CTCSSDetector::analyze | ( | Real * | sample | ) |
Definition at line 119 of file ctcssdetector.cpp.
References feedback(), feedForward(), N, and samplesProcessed.
Referenced by NFMDemod::processOneSample().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectedvirtual |
Definition at line 189 of file ctcssdetector.cpp.
References maxPower, maxPowerIndex, nTones, power, and toneDetected.
Referenced by feedForward().
Here is the caller graph for this function:
|
protected |
|
protected |
Definition at line 152 of file ctcssdetector.cpp.
References coef, evaluatePower(), initializePower(), nTones, power, u0, and u1.
Referenced by analyze().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 51 of file ctcssdetector.h.
Referenced by NFMDemod::processOneSample().
Here is the caller graph for this function:
|
inline |
Definition at line 58 of file ctcssdetector.h.
|
inline |
Definition at line 40 of file ctcssdetector.h.
Referenced by NFMDemod::getCtcssToneSet().
Here is the caller graph for this function:
|
inline |
Definition at line 45 of file ctcssdetector.h.
Referenced by NFMDemod::getCtcssToneSet(), NFMDemod::processOneSample(), and NFMDemod::webapiFormatChannelReport().
Here is the caller graph for this function:
|
protectedvirtual |
Definition at line 180 of file ctcssdetector.cpp.
Referenced by feedForward().
Here is the caller graph for this function:| void CTCSSDetector::reset | ( | ) |
Definition at line 166 of file ctcssdetector.cpp.
References maxPower, maxPowerIndex, nTones, power, samplesProcessed, toneDetected, u0, and u1.
| void CTCSSDetector::setCoefficients | ( | int | zN, |
| int | SampleRate | ||
| ) |
Definition at line 98 of file ctcssdetector.cpp.
References coef, cos(), k, M_PI, N, nTones, sampleRate, and toneSet.
Referenced by NFMDemod::applyAudioSampleRate(), and NFMDemod::NFMDemod().
Here is the call graph for this function:
Here is the caller graph for this function:| void CTCSSDetector::setThreshold | ( | double | thold | ) |
|
private |
Definition at line 81 of file ctcssdetector.h.
Referenced by CTCSSDetector(), feedback(), feedForward(), setCoefficients(), and ~CTCSSDetector().
|
private |
Definition at line 80 of file ctcssdetector.h.
Referenced by CTCSSDetector(), setCoefficients(), and ~CTCSSDetector().
|
private |
Definition at line 79 of file ctcssdetector.h.
Referenced by evaluatePower(), and reset().
|
private |
Definition at line 77 of file ctcssdetector.h.
Referenced by evaluatePower(), and reset().
|
private |
Definition at line 73 of file ctcssdetector.h.
Referenced by analyze(), and setCoefficients().
|
private |
Definition at line 75 of file ctcssdetector.h.
Referenced by CTCSSDetector(), evaluatePower(), feedback(), feedForward(), initializePower(), reset(), and setCoefficients().
|
private |
Definition at line 85 of file ctcssdetector.h.
Referenced by CTCSSDetector(), evaluatePower(), feedForward(), initializePower(), reset(), and ~CTCSSDetector().
|
private |
Definition at line 74 of file ctcssdetector.h.
Referenced by setCoefficients().
|
private |
Definition at line 76 of file ctcssdetector.h.
|
private |
Definition at line 78 of file ctcssdetector.h.
Referenced by evaluatePower(), and reset().
|
private |
Definition at line 82 of file ctcssdetector.h.
Referenced by CTCSSDetector(), setCoefficients(), and ~CTCSSDetector().
|
private |
Definition at line 83 of file ctcssdetector.h.
Referenced by CTCSSDetector(), feedback(), feedForward(), reset(), and ~CTCSSDetector().
|
private |
Definition at line 84 of file ctcssdetector.h.
Referenced by CTCSSDetector(), feedback(), feedForward(), reset(), and ~CTCSSDetector().
1.8.13