itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
Public Member Functions | List of all members
SCI::sci_vco Class Reference

VCO - numerically controlled oscillator (floating point) - wrapper for a SIM::vco
Core function: SCI::sci_vco.proc() More...

Inheritance diagram for SCI::sci_vco:
Inheritance graph
[legend]

Public Member Functions

 sci_vco ()
 
 ~sci_vco ()
 
sci_vcocreate (int sci_type)
 
void destroy ()
 destroy SCI object More...
 
void set (int param, sci_var *p_v)
 
sci_varget (int param)
 
void exec (int command)
 
sci_varproc (sci_var *p_v_ce, sci_var *p_v_x)
 
- Public Member Functions inherited from SCI::sci_base
 sci_base ()
 constructor More...
 
virtual ~sci_base ()
 virtual destructor More...
 
sci_basecreate (int sci_type)
 creates SCI object and returns pointer to it More...
 
virtual sci_vargen (sci_var *p_v_ce)
 generate data using a SCI object More...
 
- Public Member Functions inherited from SIM::vco
 vco ()
 
 ~vco ()
 
void set_acc (double a)
 
void set_output (const vec &yout)
 
double get_acc ()
 
vec get_output (void)
 
mat process (const bvec &ce, const vec &x)
 

Detailed Description

VCO - numerically controlled oscillator (floating point) - wrapper for a SIM::vco
Core function: SCI::sci_vco.proc()

Constructor & Destructor Documentation

SCI::sci_vco::sci_vco ( )
SCI::sci_vco::~sci_vco ( )

Member Function Documentation

sci_vco* SCI::sci_vco::create ( int  sci_type)
inline
void SCI::sci_vco::destroy ( )
inlinevirtual

destroy SCI object

Reimplemented from SCI::sci_base.

void SCI::sci_vco::exec ( int  command)
virtual

execute command for an instance of a VCO
Supported commands:
none

Parameters
[in]command- to be executed

Reimplemented from SCI::sci_base.

sci_var * SCI::sci_vco::get ( int  param)
virtual

create new sci_var object and assign a its value to floating point NCO parameter

Supported parameters:
SCI_TYPE,    sci_var [int] 
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.

sci_var * SCI::sci_vco::proc ( sci_var p_v_ce,
sci_var p_v_x 
)
virtual

return VCO output [y]=[cy|ph] in newly created sci_var [mat] for active [ce] ticks, double 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_vco::set ( int  param,
sci_var p_v 
)
virtual

set parameters of a floating point NCO - numerically controlled oscillator

Supported parameters:
SCI_ACC,     sci_var [double] phase accumulator 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: