-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathdsd_state.h
75 lines (66 loc) · 2.37 KB
/
dsd_state.h
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
///////////////////////////////////////////////////////////////////////////////////
// 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/>. //
///////////////////////////////////////////////////////////////////////////////////
#ifndef DSDCC_DSD_STATE_H_
#define DSDCC_DSD_STATE_H_
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "p25p1_heuristics.h"
#include "export.h"
namespace DSDcc
{
class DSDCC_API DSDState
{
public:
DSDState();
~DSDState();
int repeat;
int maxbuf[1024];
int minbuf[1024];
int midx;
char fsubtype[16];
char ftype[16];
int symbolcnt;
int lastp25type;
int offset;
int carrier;
char tg[25][16];
int tgcount;
int lasttg;
int lastsrc;
int nac;
int mbe_file_type;
int optind;
int numtdulc;
int firstframe;
char slot0light[27];
char slot1light[27];
unsigned char ccnum;
char algid[9];
char keyid[17];
int currentslot;
int p25kid;
DSDP25Heuristics::P25Heuristics p25_heuristics; //!< Heuristics state data for +P5 signals
DSDP25Heuristics::P25Heuristics inv_p25_heuristics; //!< Heuristics state data for -P5 signals
short *output_buffer;
int output_offset;
float *output_samples;
int output_num_samples;
int output_length;
int output_finished;
};
} // namespace dsdcc
#endif /* DSDCC_DSD_STATE_H_ */