![]() |
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 <nco.h>
Public Member Functions | |
| NCO () | |
| void | setFreq (Real freq, Real sampleRate) |
| void | setPhase (int phase) |
| void | nextPhase () |
| Real | next () |
| Return next real sample. More... | |
| Complex | nextIQ () |
| Return next complex sample. More... | |
| Complex | nextQI () |
| Return next complex sample (reversed) More... | |
| void | nextIQMul (Real &i, Real &q) |
| multiply I,Q separately with next sample More... | |
| Real | get () |
| Return current real sample (no phase increment) More... | |
| Complex | getIQ () |
| Return current complex sample (no phase increment) More... | |
| void | getIQ (Complex &c) |
| Sets to the current complex sample (no phase increment) More... | |
| Complex | getQI () |
| Return current complex sample (no phase increment, reversed) More... | |
| void | getQI (Complex &c) |
| Sets to the current complex sample (no phase increment, reversed) More... | |
Private Types | |
| enum | { TableSize = (1 << 12) } |
Static Private Member Functions | |
| static void | initTable () |
Private Attributes | |
| int | m_phaseIncrement |
| int | m_phase |
Static Private Attributes | |
| static Real | m_table [TableSize] |
| static bool | m_tableInitialized = false |
| NCO::NCO | ( | ) |
Definition at line 42 of file nco.cpp.
References initTable(), m_phase, and m_phaseIncrement.
Here is the call graph for this function:| float NCO::get | ( | ) |
| Complex NCO::getIQ | ( | ) |
| void NCO::getIQ | ( | Complex & | c | ) |
| Complex NCO::getQI | ( | ) |
| void NCO::getQI | ( | Complex & | c | ) |
|
staticprivate |
| float NCO::next | ( | ) |
Return next real sample.
Definition at line 55 of file nco.cpp.
References m_phase, m_table, and nextPhase().
Here is the call graph for this function:| Complex NCO::nextIQ | ( | ) |
Return next complex sample.
Definition at line 61 of file nco.cpp.
References m_phase, m_table, nextPhase(), and TableSize.
Referenced by LoRaDemod::feed(), WFMDemod::feed(), AMDemod::feed(), DSDDemod::feed(), UDPSink::feed(), NFMDemod::feed(), BFMDemod::feed(), DATVDemod::feed(), ATVDemod::feed(), UDPSource::pull(), AMMod::pull(), WFMMod::pull(), NFMMod::pull(), and ATVMod::pullFinalize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| Complex NCO::nextQI | ( | ) |
Definition at line 49 of file nco.cpp.
References m_phaseIncrement, and TableSize.
Referenced by WFMDemod::applyChannelSettings(), AMDemod::applyChannelSettings(), UDPSink::applyChannelSettings(), UDPSource::applyChannelSettings(), NFMDemod::applyChannelSettings(), DSDDemod::applyChannelSettings(), BFMDemod::applyChannelSettings(), WFMMod::applyChannelSettings(), AMMod::applyChannelSettings(), NFMMod::applyChannelSettings(), DATVDemod::applyChannelSettings(), ATVMod::applyChannelSettings(), DATVDemod::applySettings(), ATVDemod::applySettings(), LoRaDemod::handleMessage(), LoRaDemod::LoRaDemod(), and UDPSink::UDPSink().
Here is the caller graph for this function:
|
private |
|
private |
|
staticprivate |
Definition at line 30 of file nco.h.
Referenced by get(), getIQ(), getQI(), initTable(), next(), nextIQ(), nextIQMul(), and nextQI().
|
staticprivate |
Definition at line 31 of file nco.h.
Referenced by initTable().
1.8.13