GNU Radio's DSD Package
nxdn96_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/*
19 * NXDN AMBE interleave schedule
20 */
21
22#ifndef _MAIN
23extern const int nW[36];
24extern const int nX[36];
25extern const int nY[36];
26extern const int nZ[36];
27
28#else
29
30const int nW[36] = { 0, 1, 0, 1, 0, 1,
31 0, 1, 0, 1, 0, 1,
32 0, 1, 0, 1, 0, 1,
33 0, 1, 0, 1, 0, 2,
34 0, 2, 0, 2, 0, 2,
35 0, 2, 0, 2, 0, 2
36};
37
38const int nX[36] = { 23, 10, 22, 9, 21, 8,
39 20, 7, 19, 6, 18, 5,
40 17, 4, 16, 3, 15, 2,
41 14, 1, 13, 0, 12, 10,
42 11, 9, 10, 8, 9, 7,
43 8, 6, 7, 5, 6, 4
44};
45
46const int nY[36] = { 0, 2, 0, 2, 0, 2,
47 0, 2, 0, 3, 0, 3,
48 1, 3, 1, 3, 1, 3,
49 1, 3, 1, 3, 1, 3,
50 1, 3, 1, 3, 1, 3,
51 1, 3, 1, 3, 1, 3
52};
53
54const int nZ[36] = { 5, 3, 4, 2, 3, 1,
55 2, 0, 1, 13, 0, 12,
56 22, 11, 21, 10, 20, 9,
57 19, 8, 18, 7, 17, 6,
58 16, 5, 15, 4, 14, 3,
59 13, 2, 12, 1, 11, 0
60};
61
62#endif
const int nZ[36]
const int nW[36]
const int nX[36]
const int nY[36]