GNU Radio's DSD Package
nxdn_const.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010 DSD Author
3 * GPG Key ID: 0x3F1D7FD0 (74EF 430D F7F2 0A48 FCE6 F630 FAA2 635D 3F1D 7FD0)
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
16 */
17
18#ifndef _MAIN
19extern const int nW[36];
20extern const int nX[36];
21extern const int nY[36];
22extern const int nZ[36];
23extern const char nxdnpr[145];
24
25#else
26/*
27 * pseudorandom bit sequence
28 */
29const char nxdnpr[145] = { 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1 };
30
31/*
32 * NXDN AMBE interleave schedule
33 */
34const int nW[36] = { 0, 1, 0, 1, 0, 1,
35 0, 1, 0, 1, 0, 1,
36 0, 1, 0, 1, 0, 1,
37 0, 1, 0, 1, 0, 2,
38 0, 2, 0, 2, 0, 2,
39 0, 2, 0, 2, 0, 2
40};
41
42const int nX[36] = { 23, 10, 22, 9, 21, 8,
43 20, 7, 19, 6, 18, 5,
44 17, 4, 16, 3, 15, 2,
45 14, 1, 13, 0, 12, 10,
46 11, 9, 10, 8, 9, 7,
47 8, 6, 7, 5, 6, 4
48};
49
50const int nY[36] = { 0, 2, 0, 2, 0, 2,
51 0, 2, 0, 3, 0, 3,
52 1, 3, 1, 3, 1, 3,
53 1, 3, 1, 3, 1, 3,
54 1, 3, 1, 3, 1, 3,
55 1, 3, 1, 3, 1, 3
56};
57
58const int nZ[36] = { 5, 3, 4, 2, 3, 1,
59 2, 0, 1, 13, 0, 12,
60 22, 11, 21, 10, 20, 9,
61 19, 8, 18, 7, 17, 6,
62 16, 5, 15, 4, 14, 3,
63 13, 2, 12, 1, 11, 0
64};
65
66#endif
const int nZ[36]
const int nW[36]
const int nX[36]
const int nY[36]
const char nxdnpr[145]