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

QAM demodulator
Core function: SIM::qam_dem.process()
. More...

Inheritance diagram for SIM::qam_dem:
Inheritance graph
[legend]

Public Member Functions

 qam_dem ()
 
 ~qam_dem ()
 
void set_size (int m)
 
void set_scale (double s)
 
void set_output (int yout)
 
int get_size ()
 
double get_scale ()
 
int get_output ()
 
ivec process (const bvec &ce, const cvec &x)
 

Detailed Description

QAM demodulator
Core function: SIM::qam_dem.process()
.

Constructor & Destructor Documentation

SIM::qam_dem::qam_dem ( )
inline
SIM::qam_dem::~qam_dem ( )
inline

Member Function Documentation

int SIM::qam_dem::get_output ( void  )

get output

Returns
- [int] y0
double SIM::qam_dem::get_scale ( )

get scale

Returns
- scale factor
int SIM::qam_dem::get_size ( void  )

get M - square constellation size 4,16,64,256,...

Returns
- constellation size
ivec SIM::qam_dem::process ( const bvec &  ce,
const cvec &  x 
)

for active clock ticks ce[i] return symbol code y[i] for a sliced complex input x[i]=I+j*Q

Parameters
ce- bvec - clock_enable vector
x- cvec - iq complex symbol - normalized [I,Q] = [(-1..+1),(-1..+1)]
Returns
y - ivec - symbol code vector
void SIM::qam_dem::set_output ( int  yout)

set output value y0

Parameters
[in]yout- [int] => y0
void SIM::qam_dem::set_scale ( double  s)

set scaling - default scaling is IQ[-1..+1][-1..+1] and set by set_size()

Parameters
[in]s- scale
void SIM::qam_dem::set_size ( int  m)

set size - square constellation size M=4,16,64,256,...

Parameters
[in]m- constellation size

The documentation for this class was generated from the following files: