comparison spandsp-0.0.6pre17/tests/modem_monitor.h @ 4:26cd8f1ef0b1

import spandsp-0.0.6pre17
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 15:50:58 +0200
parents
children
comparison
equal deleted inserted replaced
3:c6c5a16ce2f2 4:26cd8f1ef0b1
1 /*
2 * SpanDSP - a series of DSP components for telephony
3 *
4 * constel.h - Display QAM constellations, using the FLTK toolkit.
5 *
6 * Written by Steve Underwood <steveu@coppice.org>
7 *
8 * Copyright (C) 2004 Steve Underwood
9 *
10 * All rights reserved.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2, as
14 * published by the Free Software Foundation.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 *
25 * $Id: modem_monitor.h,v 1.16 2008/09/03 13:41:42 steveu Exp $
26 */
27
28 /*! \page constel_page Modem performance monitoring
29 \section constel_page_sec_1 What does it do?
30 This code controls a GUI window, which provides monitoring of the internal status
31 of a modem. It shows, graphically:
32
33 - the constellation, for PSK, QAM and other similar modulations.
34 - the equalizer status, for modems with adaptive equalizers.
35 - the carrier frequency.
36 - the symbol timing correction.
37
38 \section constel_page_sec_2 How does it work?
39 This code uses the FLTK cross platform GUI toolkit. It works on X11 and Windows platforms.
40 In addition to the basic FLTK toolkit, fltk_cartesian is also required.
41 */
42
43 #if !defined(_MODEM_MONITOR_H_)
44 #define _MODEM_MONITOR_H_
45
46 struct qam_monitor_s;
47
48 typedef struct qam_monitor_s qam_monitor_t;
49
50 #if defined(__cplusplus)
51 extern "C"
52 {
53 #endif
54
55 qam_monitor_t *qam_monitor_init(float constel_width, const char *tag);
56 int qam_monitor_clear_constel(qam_monitor_t *s);
57 int qam_monitor_update_constel(qam_monitor_t *s, const complexf_t *pt);
58 int qam_monitor_update_equalizer(qam_monitor_t *s, const complexf_t *coeffs, int len);
59 int qam_monitor_update_int_equalizer(qam_monitor_t *s, const complexi16_t *coeffs, int len);
60 int qam_monitor_update_symbol_tracking(qam_monitor_t *s, float total_correction);
61 int qam_monitor_update_carrier_tracking(qam_monitor_t *s, float carrier);
62 int qam_monitor_update_audio_level(qam_monitor_t *s, const int16_t amp[], int len);
63 void qam_wait_to_end(qam_monitor_t *s);
64
65 #if defined(__cplusplus)
66 }
67 #endif
68
69 #endif
70 /*- End of file ------------------------------------------------------------*/

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.