|
HARDT - The Ham Radio DSP Toolkit
|
1 #ifndef __HFIRDECIMATOR_H
2 #define __HFIRDECIMATOR_H
6 #include "hwriterconsumer.h"
32 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
HFirDecimator(HWriter< T > *writer, int factor, float *coefficients, int points, size_t blocksize, bool collect=true, HProbe< T > *probe=nullptr)
Definition: hfirdecimator.cpp:7
~HFirDecimator()
Definition: hfirdecimator.cpp:50
int Read(T *dest, size_t blocksize)
Definition: hfirdecimator.cpp:109
virtual bool Stop()
Definition: hreader.h:41
bool Stop()
Definition: hfirdecimator.h:138
virtual bool Start()
Definition: hreader.h:35
virtual bool Command(HCommand *command)=0
virtual bool Start()
Definition: hwriter.h:21
Definition: hcommand.h:81
int Write(T *src, size_t blocksize)
Definition: hfirdecimator.cpp:76
virtual bool Stop()
Definition: hwriter.h:27
void SetWriter(HWriter< T > *writer)
Definition: hfirdecimator.h:95
bool Command(HCommand *command)
Definition: hfirdecimator.h:153
Definition: hfirdecimator.h:14
bool Start()
Definition: hfirdecimator.h:123
Definition: hwriterconsumer.h:8