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 | Private Attributes | List of all members
leansdr::nearest_sampler< T > Struct Template Reference

#include <sdr.h>

+ Inheritance diagram for leansdr::nearest_sampler< T >:
+ Collaboration diagram for leansdr::nearest_sampler< T >:

Public Member Functions

int readahead ()
 
complex< T > interp (const complex< T > *pin, float mu, float phase)
 
- Public Member Functions inherited from leansdr::sampler_interface< T >
virtual ~sampler_interface ()
 
virtual void update_freq (float freqw, int period=1)
 

Private Attributes

trig16 trig
 

Detailed Description

template<typename T>
struct leansdr::nearest_sampler< T >

Definition at line 906 of file sdr.h.

Member Function Documentation

◆ interp()

template<typename T >
complex<T> leansdr::nearest_sampler< T >::interp ( const complex< T > *  pin,
float  mu,
float  phase 
)
inlinevirtual

Implements leansdr::sampler_interface< T >.

Definition at line 913 of file sdr.h.

914  {
915  (void) mu;
916  return pin[0] * trig.expi(-phase);
917  }
const complex< float > & expi(uint16_t a) const
Definition: math.h:146

◆ readahead()

template<typename T >
int leansdr::nearest_sampler< T >::readahead ( )
inlinevirtual

Implements leansdr::sampler_interface< T >.

Definition at line 908 of file sdr.h.

909  {
910  return 0;
911  }

Member Data Documentation

◆ trig

template<typename T >
trig16 leansdr::nearest_sampler< T >::trig
private

Definition at line 920 of file sdr.h.


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