spandsp
0.0.6
|
00001 /* 00002 * SpanDSP - a series of DSP components for telephony 00003 * 00004 * constel.h - Display QAM constellations, using the FLTK toolkit. 00005 * 00006 * Written by Steve Underwood <steveu@coppice.org> 00007 * 00008 * Copyright (C) 2004 Steve Underwood 00009 * 00010 * All rights reserved. 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License version 2, as 00014 * published by the Free Software Foundation. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00024 */ 00025 00026 /*! \page constel_page Modem performance monitoring 00027 \section constel_page_sec_1 What does it do? 00028 This code controls a GUI window, which provides monitoring of the internal status 00029 of a modem. It shows, graphically: 00030 00031 - the constellation, for PSK, QAM and other similar modulations. 00032 - the equalizer status, for modems with adaptive equalizers. 00033 - the carrier frequency. 00034 - the symbol timing correction. 00035 00036 \section constel_page_sec_2 How does it work? 00037 This code uses the FLTK cross platform GUI toolkit. It works on X11 and Windows platforms. 00038 In addition to the basic FLTK toolkit, fltk_cartesian is also required. 00039 */ 00040 00041 #if !defined(_MODEM_MONITOR_H_) 00042 #define _MODEM_MONITOR_H_ 00043 00044 struct qam_monitor_s; 00045 00046 typedef struct qam_monitor_s qam_monitor_t; 00047 00048 #if defined(__cplusplus) 00049 extern "C" 00050 { 00051 #endif 00052 00053 qam_monitor_t *qam_monitor_init(float constel_width, const char *tag); 00054 int qam_monitor_clear_constel(qam_monitor_t *s); 00055 int qam_monitor_update_constel(qam_monitor_t *s, const complexf_t *pt); 00056 int qam_monitor_update_equalizer(qam_monitor_t *s, const complexf_t *coeffs, int len); 00057 int qam_monitor_update_int_equalizer(qam_monitor_t *s, const complexi16_t *coeffs, int len); 00058 int qam_monitor_update_symbol_tracking(qam_monitor_t *s, float total_correction); 00059 int qam_monitor_update_carrier_tracking(qam_monitor_t *s, float carrier); 00060 int qam_monitor_update_audio_level(qam_monitor_t *s, const int16_t amp[], int len); 00061 void qam_wait_to_end(qam_monitor_t *s); 00062 00063 #if defined(__cplusplus) 00064 } 00065 #endif 00066 00067 #endif 00068 /*- End of file ------------------------------------------------------------*/