SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Protected Member Functions | List of all members
SimplePhaseLock Class Reference

#include <phaselock.h>

+ Inheritance diagram for SimplePhaseLock:
+ Collaboration diagram for SimplePhaseLock:

Public Member Functions

 SimplePhaseLock (Real freq, Real bandwidth, Real minsignal)
 
virtual ~SimplePhaseLock ()
 
- Public Member Functions inherited from PhaseLock
 PhaseLock (Real freq, Real bandwidth, Real minsignal)
 
virtual ~PhaseLock ()
 
void configure (Real freq, Real bandwidth, Real minsignal)
 
void process (const std::vector< Real > &samples_in, std::vector< Real > &samples_out)
 
void process (const Real &sample_in, Real *samples_out)
 
void process (const Real &real_in, const Real &imag_in, Real *samples_out)
 
bool locked () const
 
Real get_pilot_level () const
 

Protected Member Functions

virtual void processPhase (Real *samples_out) const
 

Additional Inherited Members

- Static Public Attributes inherited from PhaseLock
static const int pilot_frequency = 19000
 
- Protected Attributes inherited from PhaseLock
Real m_phase
 
Real m_psin
 
Real m_pcos
 

Detailed Description

Definition at line 120 of file phaselock.h.

Constructor & Destructor Documentation

◆ SimplePhaseLock()

SimplePhaseLock::SimplePhaseLock ( Real  freq,
Real  bandwidth,
Real  minsignal 
)
inline

Definition at line 123 of file phaselock.h.

123  :
124  PhaseLock(freq, bandwidth, minsignal)
125  {}
PhaseLock(Real freq, Real bandwidth, Real minsignal)
Definition: phaselock.cpp:26

◆ ~SimplePhaseLock()

virtual SimplePhaseLock::~SimplePhaseLock ( )
inlinevirtual

Definition at line 127 of file phaselock.h.

128  {}

Member Function Documentation

◆ processPhase()

virtual void SimplePhaseLock::processPhase ( Real samples_out) const
inlineprotectedvirtual

Callback method to produce multiple outputs from the current phase value in m_phase and/or the sin and cos values in m_psin and m_pcos

Reimplemented from PhaseLock.

Definition at line 131 of file phaselock.h.

132  {
133  samples_out[0] = m_psin; // f Pilot
134  samples_out[1] = m_pcos; // f Pilot
135  }
Real m_psin
Definition: phaselock.h:93
Real m_pcos
Definition: phaselock.h:94

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