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


Public Member Functions | |
| HTranslateByTwo (HWriter< T > *writer, size_t blocksize, HProbe< T > *probe=NULL) | |
| HTranslateByTwo (HWriterConsumer< T > *consumer, size_t blocksize, HProbe< T > *probe=NULL) | |
| HTranslateByTwo (HReader< T > *reader, size_t blocksize, HProbe< T > *probe=NULL) | |
| ~HTranslateByTwo () | |
| void | Filter (T *src, T *dest, size_t blocksize) |
Public Member Functions inherited from HFilter< T > | |
| ~HFilter () | |
| int | Write (T *src, size_t blocksize) |
| int | Read (T *dest, size_t blocksize) |
| 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 () |
Additional Inherited Members | |
Static Public Member Functions inherited from HFilter< T > | |
| static std::vector< float > | ReadCoeffsFromFile (std::string filename) |
| static std::vector< float > | ReadCoeffsFromFile (char *filename) |
Protected Member Functions inherited from HFilter< T > | |
| 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 inherited from HFilter< T > | |
| int | _blocksize |
Translating the input samples by two.
This implements the common frequency translation method of translating by two (input * [1, -1, 1, -1, .... ])
The result is that the spectrum is inversed, especially usefull when doing decimation or other types of frequency translation whereby the usefull spectrum ends up inverted.
|
inline |
Construct a new HTranslateByTwo object that writes to a writer
|
inline |
Construct a new HTranslateByTwo object that registers with an upstream writer
|
inline |
Construct a new HTranslateByTwo object that reads from a reader
|
inline |
Default destructor
|
virtual |
Run a block of samples through the translator
Implements HFilter< T >.
1.8.17