|
HARDT - The Ham Radio DSP Toolkit
|
#include <hfilter.h>


Public Member Functions | |
| ~HFilter () | |
| int | Write (T *src, size_t blocksize) |
| int | Read (T *dest, size_t blocksize) |
| virtual void | Filter (T *src, T *dest, size_t blocksize)=0 |
| bool | Start () |
| bool | Stop () |
| bool | Command (HCommand *command) |
| void | Enable () |
| void | Disable () |
| bool | GetEnabled () |
Public Member Functions inherited from HObject | |
| HObject () | |
Public Member Functions inherited from HWriter< T > | |
| virtual | ~HWriter ()=default |
| HWriter< T > * | Writer () |
Public Member Functions inherited from HReader< T > | |
| virtual | ~HReader ()=default |
| HReader< T > * | Reader () |
Public Member Functions inherited from HWriterConsumer< T > | |
| HWriterConsumer< T > * | Consumer () |
Static Public Member Functions | |
| static std::vector< float > | ReadCoeffsFromFile (std::string filename) |
| static std::vector< float > | ReadCoeffsFromFile (char *filename) |
Protected Member Functions | |
| HFilter (HWriter< T > *writer, size_t blocksize, HProbe< T > *probe=NULL) | |
| HFilter (HWriterConsumer< T > *consumer, size_t blocksize, HProbe< T > *probe=NULL) | |
| HFilter (HReader< T > *reader, size_t blocksize, HProbe< T > *probe=NULL) | |
| void | SetWriter (HWriter< T > *writer) |
Protected Attributes | |
| int | _blocksize |
Base class for filter implementations. This class defines a pure virtual method, Filter(), which must be implemented by classes inheriting this class.
The constructor is protected, this class cannot be instantianted directly.
|
inlineprotected |
Construct a new HFilter that writes to a writer
|
inlineprotected |
Construct a new HFilter that registers with an upstream writer
|
inlineprotected |
Construct a new HFilter that reads from a reader
Execute or carry through a command
Implements HReader< T >.
|
inline |
Disable the filter
|
inline |
Enable the filter (the filter is always enabled after construction)
|
pure virtual |
Run a block of samples through the filter
Implements HFilterBase< T >.
Implemented in HDelay< T >, HGaussianFilter< T >, HAgc< T >, HHumFilter< T >, HIqTranslateByFour< T >, HTranslateByFour< T >, HMovingAverageFilter< T >, HBaseband< T >, HHilbertFilter< T >, HCombFilter< T >, HIirFilter< T >, HIqTranslateByTwo< T >, HTranslateByTwo< T >, HIqFirFilter< T >, HFirFilter< T >, HBiQuadFilter< BIQUAD, T >, HBiQuadFilter< HLowpassBiQuad< T >, T >, HBiQuadFilter< HHighpassBiQuad< T >, T >, HMute< T >, HFade< T >, HBreaker< T >, HClickRemovingFilter< T >, HGain< T >, HPassThrough< T >, and HComplexFilter< T >.
|
inline |
Returns true if the filter is enabled (filter is always enabled after construction), false otherwise
|
inlinevirtual |
Read a block of samples
Implements HReader< T >.
|
inlinestatic |
Utility function that reads a list of floating point coefficients from a file
It can handle files with one parameter on each line or several parameters on each line separated by comma, blankspace or semicolon. It will ignore other junk (characters) and terminates a line on a c-style single line comment ('//')
|
inlinestatic |
Utility function that reads a list of floating point coefficients from a file
It can handle files with one parameter on each line or several parameters on each line separated by comma, blankspace or semicolon. It will ignore other junk (characters) and terminates a line on a c-style single line comment ('//')
Implements HWriterConsumer::SetWriter()
Implements HWriterConsumer< T >.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Write a block of samples
Implements HWriter< T >.
|
protected |
The filters set blocksize
1.8.17