SoDaRadio-5.0.3-master:8901fb5
Public Member Functions | Private Attributes | List of all members
SoDa::ReSample625to48 Class Reference

Resampler for 625KHz to 48KHz data stream, built on rational ReSampler class. More...

#include <ReSamplers625x48.hxx>

Inheritance diagram for SoDa::ReSample625to48:
SoDa::SoDaBase

Public Member Functions

 ReSample625to48 (unsigned int inbufsize, float _gain=1.0)
 Constructor. More...
 
 ~ReSample625to48 ()
 
void apply (std::complex< float > *in, std::complex< float > *out)
 Perform the resampling on a complex float buffer. More...
 
void apply (float *in, float *out)
 Perform the resampling on a real float buffer. More...
 
- Public Member Functions inherited from SoDa::SoDaBase
 SoDaBase (const std::string &oname)
 The constructor – pass a name for the object. More...
 
std::string & getObjName ()
 get the name of this object More...
 
SoDaBasefindSoDaObject (const std::string &oname)
 find a SoDa Object by name. More...
 
double getTime ()
 Get a time stamp in nS resolution that monotonically increases and that is very inexpensive (typically < 100nS). More...
 

Private Attributes

unsigned int N
 
unsigned int MN
 
SoDa::ReSamplerrs45a
 
SoDa::ReSamplerrs45b
 
SoDa::ReSamplerrs35
 
SoDa::ReSamplerrs15
 
std::complex< float > * inter1
 
std::complex< float > * inter2
 
float * finter1
 
float * finter2
 
float gain
 the gain to be applied to the final transform result. More...
 

Detailed Description

Resampler for 625KHz to 48KHz data stream, built on rational ReSampler class.

Definition at line 81 of file ReSamplers625x48.hxx.

Constructor & Destructor Documentation

◆ ReSample625to48()

SoDa::ReSample625to48::ReSample625to48 ( unsigned int  inbufsize,
float  _gain = 1.0 
)

Constructor.

Parameters
inbufsizethe size of the input buffer, output buffer will be 48 * inbufsize / 625
_gainmultiply output by gain factor

Definition at line 101 of file ReSamplers625x48.cxx.

References finter1, finter2, gain, inter1, inter2, MN, N, rs15, rs35, rs45a, and rs45b.

◆ ~ReSample625to48()

SoDa::ReSample625to48::~ReSample625to48 ( )

Definition at line 137 of file ReSamplers625x48.cxx.

References rs15, rs35, rs45a, and rs45b.

Member Function Documentation

◆ apply() [1/2]

void SoDa::ReSample625to48::apply ( std::complex< float > *  in,
std::complex< float > *  out 
)

Perform the resampling on a complex float buffer.

Parameters
ininput buffer
outoutput buffer

Definition at line 146 of file ReSamplers625x48.cxx.

References SoDa::ReSampler::apply(), gain, inter1, inter2, rs15, rs35, rs45a, and rs45b.

Referenced by aliasingPlot(), SoDa::BaseBandRX::demodulate(), SoDa::BaseBandRX::demodulateWBFM(), and test625x48().

◆ apply() [2/2]

void SoDa::ReSample625to48::apply ( float *  in,
float *  out 
)

Perform the resampling on a real float buffer.

Parameters
ininput buffer
outoutput buffer

Definition at line 154 of file ReSamplers625x48.cxx.

References SoDa::ReSampler::apply(), finter1, finter2, gain, rs15, rs35, rs45a, and rs45b.

Member Data Documentation

◆ finter1

float* SoDa::ReSample625to48::finter1
private

Definition at line 113 of file ReSamplers625x48.hxx.

Referenced by apply(), and ReSample625to48().

◆ finter2

float * SoDa::ReSample625to48::finter2
private

Definition at line 113 of file ReSamplers625x48.hxx.

Referenced by apply(), and ReSample625to48().

◆ gain

float SoDa::ReSample625to48::gain
private

the gain to be applied to the final transform result.

Definition at line 115 of file ReSamplers625x48.hxx.

Referenced by apply(), and ReSample625to48().

◆ inter1

std::complex<float>* SoDa::ReSample625to48::inter1
private

Definition at line 112 of file ReSamplers625x48.hxx.

Referenced by apply(), and ReSample625to48().

◆ inter2

std::complex<float> * SoDa::ReSample625to48::inter2
private

Definition at line 112 of file ReSamplers625x48.hxx.

Referenced by apply(), and ReSample625to48().

◆ MN

unsigned int SoDa::ReSample625to48::MN
private

Definition at line 106 of file ReSamplers625x48.hxx.

Referenced by ReSample625to48().

◆ N

unsigned int SoDa::ReSample625to48::N
private

Definition at line 106 of file ReSamplers625x48.hxx.

Referenced by ReSample625to48().

◆ rs15

SoDa::ReSampler * SoDa::ReSample625to48::rs15
private

Definition at line 109 of file ReSamplers625x48.hxx.

Referenced by apply(), ReSample625to48(), and ~ReSample625to48().

◆ rs35

SoDa::ReSampler * SoDa::ReSample625to48::rs35
private

Definition at line 109 of file ReSamplers625x48.hxx.

Referenced by apply(), ReSample625to48(), and ~ReSample625to48().

◆ rs45a

SoDa::ReSampler* SoDa::ReSample625to48::rs45a
private

Definition at line 109 of file ReSamplers625x48.hxx.

Referenced by apply(), ReSample625to48(), and ~ReSample625to48().

◆ rs45b

SoDa::ReSampler * SoDa::ReSample625to48::rs45b
private

Definition at line 109 of file ReSamplers625x48.hxx.

Referenced by apply(), ReSample625to48(), and ~ReSample625to48().


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