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

QAM modulator
Core function: SIM::qam_mod.process()
. More...

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

Public Member Functions

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

Detailed Description

QAM modulator
Core function: SIM::qam_mod.process()
.

Constructor & Destructor Documentation

SIM::qam_mod::qam_mod ( )
inline
SIM::qam_mod::~qam_mod ( )
inline

Member Function Documentation

complexd SIM::qam_mod::get_output ( void  )

get output

Returns
- [double] y0
double SIM::qam_mod::get_scale ( )

get scale

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

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

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

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

Parameters
ce- bvec - clock_enable vector
x- ivec - symbol code vector
Returns
y - cvec - iq complex symbol normalized iq = [-1..+1][-1..+1] ;
void SIM::qam_mod::set_output ( complexd  yout)

set output value y0

Parameters
[in]yout- [complex] => y0
void SIM::qam_mod::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_mod::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: