SPUC::fir_interp< Numeric, Coeff > Class Template Reference
[SPUC double templatesFIR filtersInterpolation filters]

template class fir_decim based on FIR class More...

#include <fir_interp.h>

Inheritance diagram for SPUC::fir_interp< Numeric, Coeff >:

Inheritance graph
[legend]
Collaboration diagram for SPUC::fir_interp< Numeric, Coeff >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void skip ()
 Skip output sample but increment phase.
void set_rate (long r)
 Set interpolation rate.
void set_automatic (void)
void set_manual (int def_phase=0)
 fir_interp (const char *i)
 Constructor.
 fir_interp (void)
 fir_interp (long n)
void reset ()
 Reset.
Coeff coeff_sum ()
 Get sum of coefficients.
void input (Numeric in)
Numeric clock (long set_phase)
 Explicitly set the phase.
Numeric clock (void)

Public Attributes

long num_low
long rate
long phase
 upsampling rate
long auto_mode
 current polyphase phase

Detailed Description

template<class Numeric, class Coeff = float_type>
class SPUC::fir_interp< Numeric, Coeff >

template class fir_decim based on FIR class

created to support polyphase FIR interpolation

Author:
Tony Kirke


Constructor & Destructor Documentation

template<class Numeric, class Coeff = float_type>
SPUC::fir_interp< Numeric, Coeff >::fir_interp ( const char *  i  )  [inline]

Constructor.

template<class Numeric, class Coeff = float_type>
SPUC::fir_interp< Numeric, Coeff >::fir_interp ( void   )  [inline]

template<class Numeric, class Coeff = float_type>
SPUC::fir_interp< Numeric, Coeff >::fir_interp ( long  n  )  [inline]


Member Function Documentation

template<class Numeric, class Coeff = float_type>
Numeric SPUC::fir_interp< Numeric, Coeff >::clock ( void   )  [inline]

Phase increments when in automatic mode Otherwise phase does not change

template<class Numeric, class Coeff = float_type>
Numeric SPUC::fir_interp< Numeric, Coeff >::clock ( long  set_phase  )  [inline]

Explicitly set the phase.

template<class Numeric, class Coeff = float_type>
Coeff SPUC::fir_interp< Numeric, Coeff >::coeff_sum (  )  [inline]

Get sum of coefficients.

Reimplemented from SPUC::fir< Numeric, Coeff >.

template<class Numeric, class Coeff = float_type>
void SPUC::fir_interp< Numeric, Coeff >::input ( Numeric  in  )  [inline]

template<class Numeric, class Coeff = float_type>
void SPUC::fir_interp< Numeric, Coeff >::reset ( void   )  [inline]

Reset.

Reimplemented from SPUC::fir< Numeric, Coeff >.

template<class Numeric, class Coeff = float_type>
void SPUC::fir_interp< Numeric, Coeff >::set_automatic ( void   )  [inline]

template<class Numeric, class Coeff = float_type>
void SPUC::fir_interp< Numeric, Coeff >::set_manual ( int  def_phase = 0  )  [inline]

template<class Numeric, class Coeff = float_type>
void SPUC::fir_interp< Numeric, Coeff >::set_rate ( long  r  )  [inline]

Set interpolation rate.

template<class Numeric, class Coeff = float_type>
void SPUC::fir_interp< Numeric, Coeff >::skip (  )  [inline]

Skip output sample but increment phase.


Member Data Documentation

template<class Numeric, class Coeff = float_type>
long SPUC::fir_interp< Numeric, Coeff >::auto_mode

current polyphase phase

template<class Numeric, class Coeff = float_type>
long SPUC::fir_interp< Numeric, Coeff >::num_low

template<class Numeric, class Coeff = float_type>
long SPUC::fir_interp< Numeric, Coeff >::phase

upsampling rate

template<class Numeric, class Coeff = float_type>
long SPUC::fir_interp< Numeric, Coeff >::rate


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 19:40:41 2008 for DSPTemplates by  doxygen 1.4.7