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

binary to integer converter - wrapper for a SIM::bin2int
Core function: SCI::sci_bin2int.proc()
More...

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

Public Member Functions

 sci_bin2int ()
 
 ~sci_bin2int ()
 
sci_bin2intcreate (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::bin2int
 bin2int ()
 
 ~bin2int ()
 
void set_symbol_size (int W)
 
void set_msb_flag (bool msb)
 
void set_output (int yout)
 
int get_symbol_size ()
 
bool get_msb_flag ()
 
int get_output ()
 
ivec process (const bvec &ce, const bmat &x)
 

Detailed Description

binary to integer converter - wrapper for a SIM::bin2int
Core function: SCI::sci_bin2int.proc()

Constructor & Destructor Documentation

SCI::sci_bin2int::sci_bin2int ( )
SCI::sci_bin2int::~sci_bin2int ( )

Member Function Documentation

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

destroy SCI object

Reimplemented from SCI::sci_base.

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

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

Parameters
[in]command- to be executed

Reimplemented from SCI::sci_base.

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

create new sci_var object and assign its value to a parameter of the BIN2INT

Supported parameters:
SCI_TYPE,          sci_var [int]   
SCI_SYMBOL_SIZE, sci_var [int] size of the symbol in bits
SCI_MSB_FLAG, sci_var [bool] msb flag - x[0]=MSB
SCI_OUTPUT, sci_var [int] output for ce=0
Parameters
[in]param- parameter to get
Returns
- pointer to sci_var object with the value of the parameter

Reimplemented from SCI::sci_base.

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

for active [ce] ticks, convert bvec x[i,:] into integer y[i]

Parameters
[in]p_v_ce- pointer to ce - sci_var [bvec]
[in]p_v_x- pointer to x - sci_var [bmat]
Returns
- pointer to y - new sci_var [ivec]

Reimplemented from SCI::sci_base.

void SCI::sci_bin2int::set ( int  param,
sci_var p_v 
)
virtual

set parameters of a BIN2INT

Supported parameters:
SCI_SYMBOL_SIZE,   sci_var [int]  size of the symbol in bits
SCI_MSB_FLAG, sci_var [bool] msb flag - x[0]=MSB
SCI_OUTPUT, sci_var [int] output for ce=0
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: