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

#include <hvfo.h>

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

Public Member Functions

 HVfo (H_SAMPLE_RATE rate, int frequency, T amplitude, float phase=0)
 
void SetFrequency (int frequency, float phase=0)
 
bool Command (HCommand *command)
 
- Public Member Functions inherited from HGenerator< T >
int Read (T *dest, size_t blocksize)
 
void Calculate (int frequency, T amplitude, float phase)
 
Current ()
 
Next ()
 
- Public Member Functions inherited from HReader< T >
virtual ~HReader ()=default
 
virtual bool Start ()
 
virtual bool Stop ()
 
HReader< T > * Reader ()
 
- Public Member Functions inherited from HObject
 HObject ()
 

Additional Inherited Members

- Protected Member Functions inherited from HGenerator< T >
 HGenerator (H_SAMPLE_RATE rate, int frequency, T amplitude, float phase=0)
 
 ~HGenerator ()
 

Detailed Description

template<class T>
class HVfo< T >

Generate a single sine with the given frequency and amplitude at the given sample rate.

The frequency and phase can be changed by calling the SetFrequency() function. Samples are not guaranteed to have a smooth transaction when changing frequency or phase.

Constructor & Destructor Documentation

◆ HVfo()

template<class T >
HVfo< T >::HVfo ( H_SAMPLE_RATE  rate,
int  frequency,
amplitude,
float  phase = 0 
)

Construct a new HVfo running at the given frequency and phase with the given amplitude

Member Function Documentation

◆ Command()

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

Execute and/or pass on a command

Reimplemented from HGenerator< T >.

◆ SetFrequency()

template<class T >
void HVfo< T >::SetFrequency ( int  frequency,
float  phase = 0 
)

Set the frequency and phase of the vfo


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