/**************************************************************************** Copyright 2005,2006 Virginia Polytechnic Institute and State University This file is part of the OSSIE Signal Processing Library. OSSIE Signal Processing Library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. OSSIE Signal Processing Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OSSIE Signal Processing Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ****************************************************************************/ /**Converted to C by ismael.gomez at tsc.upc.edu */ #define MODULATE 0 #define DEMODULATE 1 #define MOD_BPSK 0 #define MOD_QPSK 1 #define MOD_QAM4 2 #define MOD_PSK8 3 #define MOD_QAM16 4 #define MOD_ASK 5 #define ASK_LEVEL 10000 #define BPSK_LEVEL 10000 ///< BPSK amplitude (RMS=10000) #define QPSK_LEVEL 10000 ///< QPSK amplitude (RMS=10000) #define QAM4_LEVEL 7071 ///< QAM4 amplitude (RMS=10000) #define PSK8_LEVEL_1 7071 ///< Low 8-PSK amplitude (RMS=10000) #define PSK8_LEVEL_2 10000 ///< High 8-PSK amplitude (RMS=10000) #define QAM16_LEVEL_1 3162 ///< Low 16-QAM amplitude (RMS=10000) #define QAM16_LEVEL_2 9487 ///< High 16-QAM amplitude (RMS=10000) #define PAM4_LEVEL_1 4472 ///< Low 4-PAM amplitude (RMS=10000) #define PAM4_LEVEL_2 13416 ///< High 4-PAM amplitude (RMS=10000) #define DEMOD_COS_22_5 0.923879532511287 #define DEMOD_SIN_22_5 0.382683432365090 #define QAM16_THRESHOLD 6324 ///< 16-QAM threshold for RMS=10000 signal #define PAM4_THRESHOLD 8944 ///< 4-PAM threshold for RMS=10000 signal