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


Public Member Functions | |
| HInterpolator (HWriter< T > *writer, int factor, float *coefficients, int length, size_t blocksize, HProbe< T > *probe=nullptr) | |
| HInterpolator (HWriterConsumer< T > *consumer, int factor, float *coefficients, int length, size_t blocksize, HProbe< T > *probe=nullptr) | |
| HInterpolator (HReader< T > *reader, int factor, float *coefficients, int length, size_t blocksize, HProbe< T > *probe=nullptr) | |
| void | SetWriter (HWriter< T > *writer) |
| ~HInterpolator () | |
| int | Write (T *src, size_t blocksize) |
| int | Read (T *dest, size_t blocksize) |
| bool | Start () |
| bool | Stop () |
| bool | Command (HCommand *command) |
Public Member Functions inherited from HReader< T > | |
| virtual | ~HReader ()=default |
| HReader< T > * | Reader () |
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 HWriterConsumer< T > | |
| HWriterConsumer< T > * | Consumer () |
Protected Member Functions | |
| HInterpolator (HWriter< T > *writer, int factor, size_t blocksize, HProbe< T > *probe=nullptr) | |
| HInterpolator (HWriterConsumer< T > *consumer, int factor, size_t blocksize, HProbe< T > *probe=nullptr) | |
| HInterpolator (HReader< T > *reader, int factor, size_t blocksize, HProbe< T > *probe=nullptr) | |
Impements an interpolator that can increase the incomming samplerate by a given factor
|
protected |
Construct a new HInterpolator that handle writers.
| writer | The downstream writer |
| factor | Interpolation factor, 1 or larger |
| blocksize | The expected input and output blocksize |
| probe | Probe |
|
protected |
Construct a new HInterpolator that handle writer consumers.
| consumer | The upstream consumer to receive this as a writer |
| factor | Interpolation factor, 1 or larger |
| blocksize | The expected input and output blocksize |
| probe | Probe |
|
protected |
Construct a new HInterpolator that handle readers.
| reader | The upstream reader |
| factor | Interpolation factor, 1 or larger |
| blocksize | The expected input and output blocksize |
| probe | Probe |
| HInterpolator< T >::HInterpolator | ( | HWriter< T > * | writer, |
| int | factor, | ||
| float * | coefficients, | ||
| int | length, | ||
| size_t | blocksize, | ||
| HProbe< T > * | probe = nullptr |
||
| ) |
Construct a new HInterpolator that handle writers.
| writer | The downstream writer |
| factor | Interpolation factor, 1 or larger |
| coefficients | FIR coefficients for the lowpass FIR filter that removes spectral copies of the baseband signal |
| length | Number of FIR coefficients |
| blocksize | The expected input and output blocksize |
| probe | Probe |
| HInterpolator< T >::HInterpolator | ( | HWriterConsumer< T > * | consumer, |
| int | factor, | ||
| float * | coefficients, | ||
| int | length, | ||
| size_t | blocksize, | ||
| HProbe< T > * | probe = nullptr |
||
| ) |
Construct a new HInterpolator that handle writer consumers.
| consumer | The upstream consumer to receive this as a writer |
| factor | Interpolation factor, 1 or larger |
| coefficients | FIR coefficients for the lowpass FIR filter that removes spectral copies of the baseband signal |
| length | Number of FIR coefficients |
| blocksize | The expected input and output blocksize |
| probe | Probe |
| HInterpolator< T >::HInterpolator | ( | HReader< T > * | reader, |
| int | factor, | ||
| float * | coefficients, | ||
| int | length, | ||
| size_t | blocksize, | ||
| HProbe< T > * | probe = nullptr |
||
| ) |
Construct a new HInterpolator that handle readers.
| reader | The upstream reader |
| factor | Interpolation factor, 1 or larger |
| coefficients | FIR coefficients for the lowpass FIR filter that removes spectral copies of the baseband signal |
| length | Number of FIR coefficients |
| blocksize | The expected input and output blocksize |
| probe | Probe |
| HInterpolator< T >::~HInterpolator |
Default destructor
|
inlinevirtual |
|
virtual |
Read a block of samples
| dest | Destination buffer |
| blocksize | Number of samples to read into the buffer |
Implements HReader< T >.
|
inlinevirtual |
Implements HWriterConsumer::SetWriter()
| writer | Downstream writer |
Implements HWriterConsumer< T >.
|
inlinevirtual |
Call Start() on up- or downstream components
Reimplemented from HReader< T >.
|
inlinevirtual |
Reimplemented from HReader< T >.
|
virtual |
Write a block of samples
| src | Source buffer |
| blocksize | Number of samples in the buffer |
Implements HWriter< T >.
1.8.17