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 <ncof.h>
Public Member Functions | |
NCOF () | |
void | setFreq (Real freq, Real sampleRate) |
void | setPhase (Real phase) |
int | nextPhase () |
Real | next () |
Return next real sample. More... | |
Complex | nextIQ () |
Return next complex sample. More... | |
Complex | nextIQ (float imbalance) |
Return next complex sample with an imbalance factor on I. More... | |
Complex | nextQI () |
Return next complex sample (reversed) 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 | |
Real | m_phaseIncrement |
Real | m_phase |
Static Private Attributes | |
static Real | m_table [TableSize+1] |
static bool | m_tableInitialized = false |
static float | m_tableSizeLimit = (float) NCOF::TableSize |
NCOF::NCOF | ( | ) |
Definition at line 44 of file ncof.cpp.
References initTable(), m_phase, and m_phaseIncrement.
float NCOF::get | ( | ) |
Complex NCOF::getIQ | ( | ) |
void NCOF::getIQ | ( | Complex & | c | ) |
Complex NCOF::getQI | ( | ) |
void NCOF::getQI | ( | Complex & | c | ) |
|
staticprivate |
float NCOF::next | ( | ) |
Return next real sample.
Definition at line 57 of file ncof.cpp.
References m_table, and nextPhase().
Referenced by NFMMod::modulateSample(), TestMIThread::pullAF(), TestSourceThread::pullAF(), WFMMod::pullAF(), AMMod::pullAF(), NFMMod::pullAF(), FreeDVMod::pullAF(), and SSBMod::pullAF().
Complex NCOF::nextIQ | ( | ) |
Return next complex sample.
Definition at line 63 of file ncof.cpp.
References m_table, nextPhase(), and TableSize.
Referenced by SSBDemod::feed(), FreqTracker::feed(), FreeDVDemod::feed(), ChannelAnalyzer::feed(), TestMIThread::generate(), TestSourceThread::generate(), SSBMod::pull(), FreeDVMod::pull(), and SSBMod::pullAF().
Complex NCOF::nextIQ | ( | float | imbalance | ) |
|
inline |
Complex NCOF::nextQI | ( | ) |
Return next complex sample (reversed)
Definition at line 77 of file ncof.cpp.
References m_table, nextPhase(), and TableSize.
Referenced by SSBMod::pullAF().
Definition at line 51 of file ncof.cpp.
References m_phaseIncrement, and TableSize.
Referenced by AMMod::AMMod(), AMMod::applyAudioSampleRate(), NFMMod::applyAudioSampleRate(), SSBMod::applyAudioSampleRate(), ChannelAnalyzer::applyChannelSettings(), FreqTracker::applyChannelSettings(), WFMMod::applyChannelSettings(), SSBDemod::applyChannelSettings(), FreeDVMod::applyChannelSettings(), SSBMod::applyChannelSettings(), FreeDVDemod::applyChannelSettings(), WFMMod::applySettings(), AMMod::applySettings(), NFMMod::applySettings(), FreeDVMod::applySettings(), SSBMod::applySettings(), FreeDVMod::FreeDVMod(), NFMMod::NFMMod(), TestMIThread::setFrequencyShift(), TestSourceThread::setFrequencyShift(), TestMIThread::setSamplerate(), TestSourceThread::setSamplerate(), TestMIThread::setToneFrequency(), TestSourceThread::setToneFrequency(), SSBMod::SSBMod(), and WFMMod::WFMMod().
|
inline |
Definition at line 42 of file ncof.h.
Referenced by WFMMod::pullAF(), AMMod::pullAF(), NFMMod::pullAF(), FreeDVMod::pullAF(), and SSBMod::pullAF().
|
private |
|
private |
|
staticprivate |
|
staticprivate |
Definition at line 30 of file ncof.h.
Referenced by initTable().
|
staticprivate |