comparison spandsp-0.0.6pre17/src/v29tx_constellation_maps.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 * v29tx_constellation_maps.h - ITU V.29 modem transmit part.
5 * Constellation mapping.
6 *
7 * Written by Steve Underwood <steveu@coppice.org>
8 *
9 * Copyright (C) 2008 Steve Underwood
10 *
11 * All rights reserved.
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU Lesser General Public License version 2.1,
15 * as published by the Free Software Foundation.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this program; if not, write to the Free Software
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 *
26 * $Id: v29tx_constellation_maps.h,v 1.2 2008/09/04 14:40:05 steveu Exp $
27 */
28
29 #if defined(SPANDSP_USE_FIXED_POINT)
30 static const complexi16_t v29_abab_constellation[6] =
31 #else
32 static const complexf_t v29_abab_constellation[6] =
33 #endif
34 {
35 { 3, -3}, /* 315deg high 9600 */
36 {-3, 0}, /* 180deg low */
37 { 1, -1}, /* 315deg low 7200 */
38 {-3, 0}, /* 180deg low */
39 { 0, -3}, /* 270deg low 4800 */
40 {-3, 0} /* 180deg low */
41 };
42
43 #if defined(SPANDSP_USE_FIXED_POINT)
44 static const complexi16_t v29_cdcd_constellation[6] =
45 #else
46 static const complexf_t v29_cdcd_constellation[6] =
47 #endif
48 {
49 { 3, 0}, /* 0deg low 9600 */
50 {-3, 3}, /* 135deg high */
51 { 3, 0}, /* 0deg low 7200 */
52 {-1, 1}, /* 135deg low */
53 { 3, 0}, /* 0deg low 4800 */
54 { 0, 3} /* 90deg low */
55 };
56
57 #if defined(SPANDSP_USE_FIXED_POINT)
58 static const complexi16_t v29_9600_constellation[16] =
59 #else
60 static const complexf_t v29_9600_constellation[16] =
61 #endif
62 {
63 { 3, 0}, /* 0deg low */
64 { 1, 1}, /* 45deg low */
65 { 0, 3}, /* 90deg low */
66 {-1, 1}, /* 135deg low */
67 {-3, 0}, /* 180deg low */
68 {-1, -1}, /* 225deg low */
69 { 0, -3}, /* 270deg low */
70 { 1, -1}, /* 315deg low */
71 { 5, 0}, /* 0deg high */
72 { 3, 3}, /* 45deg high */
73 { 0, 5}, /* 90deg high */
74 {-3, 3}, /* 135deg high */
75 {-5, 0}, /* 180deg high */
76 {-3, -3}, /* 225deg high */
77 { 0, -5}, /* 270deg high */
78 { 3, -3} /* 315deg high */
79 };
80
81 /*- End of file ------------------------------------------------------------*/

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