HARDT - The Ham Radio DSP Toolkit
Public Member Functions | List of all members
HGoertzelOutput< T > Class Template Reference

#include <hgoertzeloutput.h>

Inheritance diagram for HGoertzelOutput< T >:
Inheritance graph
[legend]
Collaboration diagram for HGoertzelOutput< T >:
Collaboration graph
[legend]

Public Member Functions

 HGoertzelOutput (int size, int average, float bin, HWriter< HGoertzelResult > *writer, HWindow< T > *window)
 
 HGoertzelOutput (int size, int average, float bin, HWriterConsumer< T > *consumer, HWindow< T > *window)
 
 HGoertzelOutput (int size, int average, H_SAMPLE_RATE rate, int frequency, HWriter< HGoertzelResult > *writer, HWindow< T > *window)
 
 HGoertzelOutput (int size, int average, H_SAMPLE_RATE rate, int frequency, HWriterConsumer< T > *consumer, HWindow< T > *window)
 
 ~HGoertzelOutput ()
 
int Output (T *src, size_t size)
 
bool Command (HCommand *command)
 
- Public Member Functions inherited from HOutput< T, HGoertzelResult >
void Ready (HGoertzelResult *buffer, size_t blocksize)
 
void Ready (HGoertzelResult value)
 
void Ready ()
 
bool Start ()
 
bool Stop ()
 
 HOutput ()
 
 HOutput (HWriterConsumer< T > *consumer)
 
 HOutput (std::function< void(HGoertzelResult *, size_t)> ready)
 
 HOutput (std::function< void(HGoertzelResult *, size_t)> ready, HWriterConsumer< T > *consumer)
 
 HOutput (std::function< void(HGoertzelResult)> ready)
 
 HOutput (std::function< void(HGoertzelResult)> ready, HWriterConsumer< T > *consumer)
 
 HOutput (std::function< void()> ready)
 
 HOutput (std::function< void()> ready, HWriterConsumer< T > *consumer)
 
 HOutput (HWriter< HGoertzelResult > *writer)
 
 HOutput (HWriter< HGoertzelResult > *writer, HWriterConsumer< T > *consumer)
 
 HOutput (int chunksize)
 
 HOutput (int chunksize, HWriterConsumer< T > *consumer)
 
 HOutput (std::function< void(HGoertzelResult *, size_t)> ready, int chunksize)
 
 HOutput (std::function< void(HGoertzelResult *, size_t)> ready, int chunksize, HWriterConsumer< T > *consumer)
 
 HOutput (std::function< void(HGoertzelResult)> ready, int chunksize)
 
 HOutput (std::function< void(HGoertzelResult)> ready, int chunksize, HWriterConsumer< T > *consumer)
 
 HOutput (std::function< void()> ready, int chunksize)
 
 HOutput (std::function< void()> ready, int chunksize, HWriterConsumer< T > *consumer)
 
 HOutput (HWriter< HGoertzelResult > *writer, int chunksize)
 
 HOutput (HWriter< HGoertzelResult > *writer, int chunksize, HWriterConsumer< T > *consumer)
 
int WriteChunk (T *src, size_t blocksize)
 
void SetWriter (HWriter< HGoertzelResult > *writer)
 
- Public Member Functions inherited from HChunkWriter< T >
int Write (T *src, size_t blocksize)
 
 HChunkWriter ()
 
 HChunkWriter (int chunksize)
 
int GetChunksize ()
 
- Public Member Functions inherited from HWriter< T >
virtual ~HWriter ()=default
 
HWriter< T > * Writer ()
 
- Public Member Functions inherited from HObject
 HObject ()
 
- Public Member Functions inherited from HWriterConsumer< HGoertzelResult >
HWriterConsumer< HGoertzelResult > * Consumer ()
 

Detailed Description

template<class T>
class HGoertzelOutput< T >

Calculate one or more Goertzl spectrum results over a set of samples.

When the requested number of calculations has been performed, the result object is written to the provided HWriter (usualy a HCustomWriter)

Constructor & Destructor Documentation

◆ HGoertzelOutput() [1/4]

template<class T >
HGoertzelOutput< T >::HGoertzelOutput ( int  size,
int  average,
float  bin,
HWriter< HGoertzelResult > *  writer,
HWindow< T > *  window 
)

Construct a new HGoertzelOutput, with a given frequency bin, that writes to a writer

◆ HGoertzelOutput() [2/4]

template<class T >
HGoertzelOutput< T >::HGoertzelOutput ( int  size,
int  average,
float  bin,
HWriterConsumer< T > *  consumer,
HWindow< T > *  window 
)

Construct a new HGoertzelOutput, with a given frequency bin, that registers with an upstream writer

◆ HGoertzelOutput() [3/4]

template<class T >
HGoertzelOutput< T >::HGoertzelOutput ( int  size,
int  average,
H_SAMPLE_RATE  rate,
int  frequency,
HWriter< HGoertzelResult > *  writer,
HWindow< T > *  window 
)

Construct a new HGoertzelOutput, from the sample rate and a frequency, that writes to a writer

◆ HGoertzelOutput() [4/4]

template<class T >
HGoertzelOutput< T >::HGoertzelOutput ( int  size,
int  average,
H_SAMPLE_RATE  rate,
int  frequency,
HWriterConsumer< T > *  consumer,
HWindow< T > *  window 
)

Construct a new HGoertzelFilter, from the sample rate and a frequency, that registers with an upstream writer

◆ ~HGoertzelOutput()

template<class T >
HGoertzelOutput< T >::~HGoertzelOutput ( )
inline

Default destructor

Member Function Documentation

◆ Command()

template<class T >
bool HGoertzelOutput< T >::Command ( HCommand command)
inlinevirtual

Execute or carry through a command

Implements HChunkWriter< T >.

◆ Output()

template<class T >
int HGoertzelOutput< T >::Output ( T *  src,
size_t  size 
)
virtual

Generate output from a block of samples

Implements HOutput< T, HGoertzelResult >.


The documentation for this class was generated from the following files: