1 // ----------------------------------------------------------------------------
2 // Copyright (C) 2014
3 //              David Freese, W1HKJ
4 //
5 // This file is part of flrig.
6 //
7 // flrig is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // flrig is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // aunsigned long int with this program.  If not, see <http://www.gnu.org/licenses/>.
19 // ----------------------------------------------------------------------------
20 
21 #ifndef _RAY152_H
22 #define _RAY152_H
23 
24 #include "rigbase.h"
25 #include "rigpanel.h"
26 
27 class RIG_RAY152 : public rigbase {
28 public:
29 	RIG_RAY152();
~RIG_RAY152()30 	~RIG_RAY152(){}
31 
32 	void initialize();
33 	void shutdown();
34 
35 	void get_data();
36 
37 	bool check();
38 
39 	unsigned long int get_vfoA();
40 	void set_vfoA(unsigned long int);
41 	unsigned long int get_vfoB();
42 	void set_vfoB(unsigned long int);
43 	void set_PTT_control(int val);
44 	void set_modeA(int val);
45 	int  get_modeA();
46 	void set_modeB(int val);
47 	int  get_modeB();
48 	int  get_modetype(int n);
49 
get_volume_control()50 	int  get_volume_control() {return vol;}
get_vol_min_max_step(int & min,int & max,int & step)51 	void get_vol_min_max_step(int &min, int &max, int &step) {
52 		min = 0; max = 100; step = 1; }
53 	void set_volume_control(int val);
54 
55 	void set_rf_gain(int val);
get_rf_gain()56 	int  get_rf_gain() {return rfg;}
get_rf_min_max_step(int & min,int & max,int & step)57 	void get_rf_min_max_step(int &min, int &max, int &step) {
58 		min = 0; max = 100; step = 1; }
59 
60 	void setRit(int v);
61 	int  getRit();
get_RIT_min_max_step(int & min,int & max,int & step)62 	void get_RIT_min_max_step(int &min, int &max, int &step) {
63 		min = -200; max = 200; step = 10; }
64 
65 	int  get_smeter(void);
66 	int  get_power_out(void);
67 
68 	void set_squelch(int val);
69 	int  get_squelch();
70 
71 	void set_noise(bool on);
72 	int  get_noise();
73 
74 	void set_auto_notch(int v);
75 	int  get_auto_notch();
76 
adjust_bandwidths(int m)77 	int  adjust_bandwidths(int m) { return 0; }
78 
79 private:
80 	int vol;
81 	int rfg;
82 	int squelch;
83 	int nb;
84 	int nb_set;
85 	int agc;
86 	bool dumpdata;
87 };
88 
89 #endif
90