|
HARDT - The Ham Radio DSP Toolkit
|
1 #ifndef __HINTERPOLATOR_H
2 #define __HINTERPOLATOR_H
6 #include "hwriterconsumer.h"
28 float * _coefficients;
30 std::vector<HFir<T>*> _firs;
32 void Init(
float* coefficients =
nullptr);
124 int Write(T* src,
size_t blocksize);
132 int Read(T* dest,
size_t blocksize);
138 if( _writer !=
nullptr )
140 return _writer->
Start();
142 if( _reader !=
nullptr )
144 return _reader->
Start();
153 if( _writer !=
nullptr )
155 return _writer->
Stop();
157 if( _reader !=
nullptr )
159 return _reader->
Stop();
170 if( _writer !=
nullptr )
172 return _writer->
Command(command);
174 if( _reader !=
nullptr )
176 return _reader->
Command(command);
virtual bool Command(HCommand *command)=0
Definition: hinterpolator.h:13
bool Stop()
Definition: hinterpolator.h:152
virtual bool Stop()
Definition: hreader.h:41
virtual bool Start()
Definition: hreader.h:35
HInterpolator(HWriter< T > *writer, int factor, size_t blocksize, HProbe< T > *probe=nullptr)
Definition: hinterpolator.cpp:9
virtual bool Command(HCommand *command)=0
virtual bool Start()
Definition: hwriter.h:21
void SetWriter(HWriter< T > *writer)
Definition: hinterpolator.h:109
Definition: hcommand.h:81
int Read(T *dest, size_t blocksize)
Definition: hinterpolator.cpp:197
virtual bool Stop()
Definition: hwriter.h:27
int Write(T *src, size_t blocksize)
Definition: hinterpolator.cpp:151
bool Start()
Definition: hinterpolator.h:137
bool Command(HCommand *command)
Definition: hinterpolator.h:169
Definition: hwriterconsumer.h:8
~HInterpolator()
Definition: hinterpolator.cpp:101