|
HARDT - The Ham Radio DSP Toolkit
|
1 #ifndef __HIQDECIMATOR_H
2 #define __HIQDECIMATOR_H
6 #include "hwriterconsumer.h"
101 int Write(T* src,
size_t blocksize);
109 int Read(T* dest,
size_t blocksize);
115 if( _writer !=
nullptr )
117 return _writer->
Start();
119 if( _reader !=
nullptr )
121 return _reader->
Start();
130 if( _writer !=
nullptr )
132 return _writer->
Stop();
134 if( _reader !=
nullptr )
136 return _reader->
Stop();
145 if( _writer !=
nullptr )
147 return _writer->
Command(command);
149 if( _reader !=
nullptr )
151 return _reader->
Command(command);
virtual bool Command(HCommand *command)=0
void SetWriter(HWriter< T > *writer)
Definition: hiqdecimator.h:86
~HIqDecimator()
Definition: hiqdecimator.cpp:56
int Read(T *dest, size_t blocksize)
Definition: hiqdecimator.cpp:95
virtual bool Stop()
Definition: hreader.h:41
bool Start()
Definition: hiqdecimator.h:114
bool Stop()
Definition: hiqdecimator.h:129
virtual bool Start()
Definition: hreader.h:35
int Write(T *src, size_t blocksize)
Definition: hiqdecimator.cpp:72
Definition: hiqdecimator.h:13
virtual bool Command(HCommand *command)=0
virtual bool Start()
Definition: hwriter.h:21
Definition: hcommand.h:81
bool Command(HCommand *command)
Definition: hiqdecimator.h:144
virtual bool Stop()
Definition: hwriter.h:27
HIqDecimator(HWriter< T > *writer, int factor, size_t blocksize, bool collect=true, HProbe< T > *probe=nullptr)
Definition: hiqdecimator.cpp:10
void SetFactor(int factor)
Definition: hiqdecimator.h:162
Definition: hwriterconsumer.h:8