19 #ifndef SDRBASE_DSP_DOWNCHANNELIZER_H 20 #define SDRBASE_DSP_DOWNCHANNELIZER_H 30 #define DOWNCHANNELIZER_HB_FILTER_ORDER 48 43 m_sampleRate(samplerate),
44 m_frequencyOffset(frequencyOffset)
66 m_log2Decim(log2Decim),
67 m_filterChainHash(filterChainHash)
81 void configure(
MessageQueue* messageQueue,
int sampleRate,
int centerFrequency);
82 void set(
MessageQueue* messageQueue,
unsigned int log2Decim,
unsigned int filterChainHash);
88 virtual void feed(
const SampleVector::const_iterator& begin,
const SampleVector::const_iterator& end,
bool positiveOnly);
89 virtual bool handleMessage(
const Message& cmd);
99 #ifdef SDR_RX_SAMPLE_24BIT 116 return (m_filter->*m_workFunction)(sample);
131 void applyConfiguration();
132 void applySetting(
unsigned int log2Decim,
unsigned int filterChainHash);
133 bool signalContainsChannel(
Real sigStart,
Real sigEnd,
Real chanStart,
Real chanEnd)
const;
135 void setFilterChain(
const std::vector<unsigned int>& stageIndexes);
136 void freeFilterChain();
137 void debugFilterChain();
140 void inputSampleRateChanged();
143 #endif // SDRBASE_DSP_DOWNCHANNELIZER_H
int m_currentOutputSampleRate
int m_currentCenterFrequency
std::vector< Sample > SampleVector
unsigned int getFilterChainHash() const
MsgSetChannelizer(unsigned int log2Decim, unsigned int filterChainHash)
int getRequestedCenterFrequency() const
SampleVector m_sampleBuffer
int getSampleRate() const
int m_requestedCenterFrequency
bool m_filterChainSetMode
unsigned int m_filterChainHash
int m_requestedOutputSampleRate
FilterStages m_filterStages
#define MESSAGE_CLASS_DECLARATION
IntHalfbandFilterEO< qint32, qint32, DOWNCHANNELIZER_HB_FILTER_ORDER > * m_filter
std::list< FilterStage * > FilterStages
int getInputSampleRate() const
unsigned int getLog2Decim() const
bool work(Sample *sample)
WorkFunction m_workFunction
BasebandSampleSink * m_sampleSink
Demodulator.
MsgChannelizerNotification(int samplerate, qint64 frequencyOffset)
qint64 getFrequencyOffset() const
static MsgChannelizerNotification * create(int samplerate, qint64 frequencyOffset)