NCO - numerically controlled oscillator (fixed point) - wrapper for a SIM::nco
Core function: SCI::sci_nco.proc()
More...
NCO - numerically controlled oscillator (fixed point) - wrapper for a SIM::nco
Core function: SCI::sci_nco.proc()
| SCI::sci_nco::sci_nco |
( |
| ) |
|
| SCI::sci_nco::~sci_nco |
( |
| ) |
|
| sci_nco* SCI::sci_nco::create |
( |
int |
sci_type | ) |
|
|
inline |
| void SCI::sci_nco::destroy |
( |
| ) |
|
|
inlinevirtual |
| void SCI::sci_nco::exec |
( |
int |
command | ) |
|
|
virtual |
execute command for an instance of NCO
Supported commands:
none
- Parameters
-
| [in] | command | - to be executed |
Reimplemented from SCI::sci_base.
| sci_var * SCI::sci_nco::get |
( |
int |
param | ) |
|
|
virtual |
create new sci_var object and assign a its value to fixed point NCO parameter
Supported parameters:
SCI_TYPE, sci_var [int]
SCI_PARAM_N, sci_var [int] number of bits in fixed point fractional format Q1.N
SCI_ACC, sci_var [double] phase accumulator state in double fractional format
SCI_OUTPUT, sci_var [vec] initial output value y0 = [cy|ph]
- Parameters
-
| [in] | param | - parameter to get |
- Returns
- - pointer to created sci_var, actual object type depends on input parameter
Reimplemented from SCI::sci_base.
return NCO output [y]=[cy|ph] in newly created sci_var [mat]
for active [ce] ticks, fractional phase accumulator sums fractional frequency control words in [x]
- Parameters
-
| [in] | p_v_ce | - pointer to ce - sci_var [bvec] |
| [in] | p_v_x | - pointer to x - sci_var [vec] |
- Returns
- - pointer to y - created sci_var [mat]=[cy|ph]
Reimplemented from SCI::sci_base.
| void SCI::sci_nco::set |
( |
int |
param, |
|
|
sci_var * |
p_v |
|
) |
| |
|
virtual |
set parameters of a fixed point NCO - numerically controlled oscillator
Supported parameters:
SCI_PARAM_N, sci_var [int] number of bits in fixed point fractional format Q1.N
SCI_ACC, sci_var [double] phase accumulator state in double fractional format
SCI_OUTPUT, sci_var [vec] initial output value y0 = [cy|ph]
- Parameters
-
| [in] | param | - parameter to set |
| [in] | p_v | - pointer to sci_var object with value of the parameter |
Reimplemented from SCI::sci_base.
The documentation for this class was generated from the following files:
- C:/jobs/vcc/itpp_sci/include/sci/sci_nco.hpp
- C:/jobs/vcc/itpp_sci/sci_lib/code/sci_nco.cpp