forked from jks-prv/Beagle_SDR_GPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdx.h
56 lines (45 loc) · 1.58 KB
/
dx.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
/*
--------------------------------------------------------------------------------
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301, USA.
--------------------------------------------------------------------------------
*/
// Copyright (c) 2016 John Seamons, ZL/KF6VO
#pragma once
#include "types.h"
// DX list
struct dx_t {
float freq; // must be first for qsort_floatcomp()
const char *ident;
const char *notes;
int flags;
union { float offset; float low_cut; };
float high_cut;
};
struct dxlist_t {
dx_t *list;
int len;
bool hidden_used;
};
extern dxlist_t dx;
#define DX_MODE 0x000f
#define DX_TYPE 0x00f0
#define WL 0x0010 // on watchlist, i.e. not actually heard yet, marked as a signal to watch for
#define SB 0x0020 // a sub-band, not a station
#define DG 0x0030 // DGPS
#define NoN 0x0040 // MRHS NoN
#define XX 0x0050 // interference
#define DX_FLAG 0xff00
#define PB 0x0100 // passband specified
void dx_reload();
void dx_save_as_json();