File: dsd_state.cpp

package info (click to toggle)
dsdcc 1.9.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,448 kB
  • sloc: cpp: 15,245; makefile: 46
file content (84 lines) | stat: -rw-r--r-- 2,393 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
///////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2016 Edouard Griffiths, F4EXB.                                  //
//                                                                               //
// This program is free software; you can redistribute it and/or modify          //
// it under the terms of the GNU General Public License as published by          //
// the Free Software Foundation as version 3 of the License, or                  //
//                                                                               //
// This program is distributed in the hope that it will be useful,               //
// but WITHOUT ANY WARRANTY; without even the implied warranty of                //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the                  //
// GNU General Public License V3 for more details.                               //
//                                                                               //
// You should have received a copy of the GNU General Public License             //
// along with this program. If not, see <http://www.gnu.org/licenses/>.          //
///////////////////////////////////////////////////////////////////////////////////

#include "dsd_state.h"

namespace DSDcc
{

DSDState::DSDState()
{
    int i, j;

    repeat = 0;

    for (i = 0; i < 1024; i++)
    {
        maxbuf[i] = 15000;
    }

    for (i = 0; i < 1024; i++)
    {
        minbuf[i] = -15000;
    }

    midx = 0;
    sprintf(fsubtype, "              ");
    sprintf(ftype, "             ");
    symbolcnt = 0;
    lastp25type = 0;
    offset = 0;
    carrier = 0;

    for (i = 0; i < 25; i++)
    {
        for (j = 0; j < 16; j++)
        {
            tg[i][j] = 48;
        }
    }

    tgcount = 0;
    lasttg = 0;
    lastsrc = 0;
    nac = 0;
    mbe_file_type = -1;
    optind = 0;
    numtdulc = 0;
    firstframe = 0;
    sprintf(slot0light, "                          ");
    sprintf(slot1light, "                          ");
//    samplesPerSymbol = 10;
    sprintf(algid, "________");
    sprintf(keyid, "________________");
    currentslot = 0;
    p25kid = 0;

    output_finished = 0;
    output_offset = 0;
    output_num_samples = 0;
    output_samples = 0;
    output_length = 0;
    output_buffer = 0;

    ccnum = 0;
}

DSDState::~DSDState()
{
}

} // namespace dsdcc