|
HARDT - The Ham Radio DSP Toolkit
|
1 #ifndef __HIQFIRDECIMATOR_H
2 #define __HIQFIRDECIMATOR_H
7 #include "hwriterconsumer.h"
35 void Init(
float* coefficients,
int points);
110 int Write(T* src,
size_t blocksize);
118 int Read(T* dest,
size_t blocksize);
124 if( _writer !=
nullptr )
126 return _writer->
Start();
128 if( _reader !=
nullptr )
130 return _reader->
Start();
139 if( _writer !=
nullptr )
141 return _writer->
Stop();
143 if( _reader !=
nullptr )
145 return _reader->
Stop();
154 if( _writer !=
nullptr )
156 return _writer->
Command(command);
158 if( _reader !=
nullptr )
160 return _reader->
Command(command);
virtual bool Command(HCommand *command)=0
int Read(T *dest, size_t blocksize)
Definition: hiqfirdecimator.cpp:117
bool Command(HCommand *command)
Definition: hiqfirdecimator.h:153
virtual bool Stop()
Definition: hreader.h:41
bool Start()
Definition: hiqfirdecimator.h:123
virtual bool Start()
Definition: hreader.h:35
HIqFirDecimator(HWriter< T > *writer, int factor, float *coefficients, int points, size_t blocksize, bool collect=true, HProbe< T > *probe=nullptr)
Definition: hiqfirdecimator.cpp:9
~HIqFirDecimator()
Definition: hiqfirdecimator.cpp:52
virtual bool Command(HCommand *command)=0
virtual bool Start()
Definition: hwriter.h:21
bool Stop()
Definition: hiqfirdecimator.h:138
Definition: hcommand.h:81
void SetWriter(HWriter< T > *writer)
Definition: hiqfirdecimator.h:95
virtual bool Stop()
Definition: hwriter.h:27
int Write(T *src, size_t blocksize)
Definition: hiqfirdecimator.cpp:80
Definition: hwriterconsumer.h:8
Definition: hiqfirdecimator.h:15