Show
Ignore:
Timestamp:
05/30/07 12:45:15 (6 years ago)
Author:
jgaeddert
Message:

Adding modulator functions to SigProc?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • SigProc/trunk/SigProc/SigProc.h

    r4012 r4015  
    713713 
    714714 
    715 #define MOD_BPSK_LEVEL 10000    ///< BPSK amplitude (RMS=10000) 
    716  
    717 #define MOD_QPSK_LEVEL 7071     ///< QPSK amplitude (RMS=10000) 
    718  
    719 #define MOD_PSK8_LEVEL_1 7071   ///< Low 8-PSK amplitude (RMS=10000) 
    720 #define MOD_PSK8_LEVEL_2 10000  ///< High 8-PSK amplitude (RMS=10000) 
    721  
    722 #define MOD_QAM16_LEVEL_1 3162  ///< Low 16-QAM amplitude (RMS=10000) 
    723 #define MOD_QAM16_LEVEL_2 9487  ///< High 16-QAM amplitude (RMS=10000) 
    724  
    725 #define MOD_PAM4_LEVEL_1 4472   ///< Low 4-PAM amplitude (RMS=10000) 
    726 #define MOD_PAM4_LEVEL_2 13416  ///< High 4-PAM amplitude (RMS=10000) 
     715const short BPSK_LEVEL(10000);      ///< BPSK amplitude (RMS=10000) 
     716 
     717const short QPSK_LEVEL(7071);       ///< QPSK amplitude (RMS=10000) 
     718 
     719const short PSK8_LEVEL_1(7071);     ///< Low 8-PSK amplitude (RMS=10000) 
     720const short PSK8_LEVEL_2(10000);    ///< High 8-PSK amplitude (RMS=10000) 
     721 
     722const short QAM16_LEVEL_1(3162);    ///< Low 16-QAM amplitude (RMS=10000) 
     723const short QAM16_LEVEL_2(9487);    ///< High 16-QAM amplitude (RMS=10000) 
     724 
     725const short PAM4_LEVEL_1(4472);     ///< Low 4-PAM amplitude (RMS=10000) 
     726const short PAM4_LEVEL_2(13416);    ///< High 4-PAM amplitude (RMS=10000) 
    727727 
    728728/// 
    729 void ModulateBPSK(char * bits_in, unsigned int N_in, short * I_out, short * Q_out); 
     729void ModulateBPSK(short symbol, short &I_out, short &Q_out); 
    730730 
    731731/// 
    732 void ModulateQPSK(char * bits_in, unsigned int N_in, short * I_out, short * Q_out); 
     732void ModulateQPSK(short symbol, short &I_out, short &Q_out); 
    733733 
    734734/// 
    735 void Modulate8PSK(char * bits_in, unsigned int N_in, short * I_out, short * Q_out); 
     735void Modulate8PSK(short symbol, short &I_out, short &Q_out); 
    736736 
    737737/// 
    738 void Modulate16QAM(char * bits_in, unsigned int N_in, short * I_out, short * Q_out); 
     738void Modulate16QAM(short symbol, short &I_out, short &Q_out); 
    739739 
    740740/// 
    741 void Modulate4PAM(char * bits_in, unsigned int N_in, short * I_out, short * Q_out); 
     741void Modulate4PAM(short symbol, short &I_out, short &Q_out); 
    742742 
    743743}