forked from g0orx/pihpsdr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathband.h
99 lines (88 loc) · 2.34 KB
/
band.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/* Copyright (C)
* 2015 - John Melton, G0ORX/N6LYT
*
* 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; either version 2
* of the License, or (at your option) any later version.
*
* 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 for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef _BAND_H
#define _BAND_H
#include <gtk/gtk.h>
#include "bandstack.h"
#define band160 0
#define band80 1
#define band60 2
#define band40 3
#define band30 4
#define band20 5
#define band17 6
#define band15 7
#define band12 8
#define band10 9
#define band6 10
#ifdef LIMESDR
#define band70 11
#define band220 13
#define band430 14
#define band902 15
#define band1240 16
#define band2300 17
#define band3400 18
#define bandAIR 19
#define bandGen 20
#define bandWWV 21
#define band136 22
#define band472 23
#define BANDS 24
#else
#define bandGen 11
#define bandWWV 12
#define band136 13
#define band472 14
#define BANDS 15
#endif
#define XVTRS 8
/* --------------------------------------------------------------------------*/
/**
* @brief Band definition
*/
struct _BAND {
char title[16];
BANDSTACK *bandstack;
unsigned char OCrx;
unsigned char OCtx;
int preamp;
int alexRxAntenna;
int alexTxAntenna;
int alexAttenuation;
double pa_calibration;
long long frequencyMin;
long long frequencyMax;
long long frequencyLO;
int disablePA;
};
typedef struct _BAND BAND;
int band;
gboolean displayHF;
extern int band_get_current();
extern BAND *band_get_current_band();
extern BAND *band_get_band(int b);
extern BAND *band_set_current(int b);
extern int get_band_from_frequency(long long f);
extern BANDSTACK *bandstack_get_bandstack(int band);
extern BANDSTACK_ENTRY *bandstack_get_bandstack_entry(int band,int entry);
extern BANDSTACK_ENTRY *bandstack_entry_next();
extern BANDSTACK_ENTRY *bandstack_entry_previous();
extern BANDSTACK_ENTRY *bandstack_entry_get_current();
#endif