GNU Radio's DSD Package
dmr_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 rW[36];
20extern const int rX[36];
21extern const int rY[36];
22extern const int rZ[36];
23
24#else
25/*
26 * DMR AMBE interleave schedule
27 */
28const int rW[36] = {
29 0, 1, 0, 1, 0, 1,
30 0, 1, 0, 1, 0, 1,
31 0, 1, 0, 1, 0, 1,
32 0, 1, 0, 1, 0, 2,
33 0, 2, 0, 2, 0, 2,
34 0, 2, 0, 2, 0, 2
35};
36
37const int rX[36] = {
38 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 rY[36] = {
47 0, 2, 0, 2, 0, 2,
48 0, 2, 0, 3, 0, 3,
49 1, 3, 1, 3, 1, 3,
50 1, 3, 1, 3, 1, 3,
51 1, 3, 1, 3, 1, 3,
52 1, 3, 1, 3, 1, 3
53};
54
55const int rZ[36] = {
56 5, 3, 4, 2, 3, 1,
57 2, 0, 1, 13, 0, 12,
58 22, 11, 21, 10, 20, 9,
59 19, 8, 18, 7, 17, 6,
60 16, 5, 15, 4, 14, 3,
61 13, 2, 12, 1, 11, 0
62};
63
64#endif
const int rY[36]
const int rW[36]
const int rZ[36]
const int rX[36]