complex sample rate converter with sinc reconstruction filter
Core function: SIM::src_x.process()
More...
complex sample rate converter with sinc reconstruction filter
Core function: SIM::src_x.process()
default complex SRC uses two I,Q fir filters with 15 taps sinc kernels and hanning windows
| complex< double > SIM::src_x::get_output |
( |
void |
| ) |
|
get output
- Returns
- - [double] y0
| int SIM::src_x::get_size |
( |
void |
| ) |
|
get sinc kernel size
- Returns
- - [int] sinc fir kernel size
| int SIM::src_x::get_win_type |
( |
void |
| ) |
|
get sinc window type
- Returns
- - [int] sinc fir kernel window type WIN_HANNING=1, WIN_KAISER_BESSEL=2, WIN_FLAT_TOP=3
| cvec SIM::src_x::process |
( |
const bmat & |
ceio, |
|
|
const cmat & |
xt |
|
) |
| |
process input complex samples xt[0,i]=I+jQ for active input clock ticks ce[0,i]
for active output clock tick ce[1,i] reconstruct complex output y[i]=I+jQ for a given fractional time xt[1,i]
- Parameters
-
| ceio | - [bmat] - input/output [cei|ceo] clock enable matrix |
| xt | - [cmat] - input samples and fractional time xt=[x|t] matrix, time is real - common for both I,Q signals |
- Returns
- y - [cvec] - complex output samples vector
| void SIM::src_x::set_output |
( |
complexd |
yout | ) |
|
set output value y0
- Parameters
-
| [in] | yout | - [complex] => y0 |
| void SIM::src_x::set_size |
( |
int |
n | ) |
|
set sinc kernel size
- Parameters
-
| void SIM::src_x::set_win_type |
( |
int |
w | ) |
|
set window type
- Parameters
-
| [in] | w | - [int] window type WIN_HANNING=1, WIN_KAISER_BESSEL=2, WIN_FLAT_TOP=3 |
The documentation for this class was generated from the following files:
- C:/jobs/vcc/itpp_sci/include/sim/sim_src_x.hpp
- C:/jobs/vcc/itpp_sci/sim_lib/code/sim_src_x.cpp