~ubuntu-branches/ubuntu/wily/flrig/wily

« back to all changes in this revision

Viewing changes to src/include/FT450D.h

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa
  • Date: 2014-10-25 11:17:10 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20141025111710-n32skgya3l9u1brw
Tags: 1.3.17-1
* New upstream release (Closes: #761839)
* Debian Standards-Version: 3.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
// ----------------------------------------------------------------------------
 
20
 
 
21
#ifndef _FT450D_H
 
22
#define _FT450D_H
 
23
 
 
24
#include "rigbase.h"
 
25
 
 
26
class RIG_FT450D : public rigbase {
 
27
private:
 
28
        bool notch_on;
 
29
        int  m_60m_indx;
 
30
public:
 
31
        RIG_FT450D();
 
32
        ~RIG_FT450D(){}
 
33
        
 
34
        void initialize();
 
35
 
 
36
        long get_vfoA();
 
37
        void set_vfoA(long);
 
38
        long get_vfoB();
 
39
        void set_vfoB(long);
 
40
 
 
41
        void selectA();
 
42
        void selectB();
 
43
        void A2B();
 
44
        void set_modeA(int val);
 
45
        int  get_modeA();
 
46
        int  get_modetype(int n);
 
47
        void set_bwA(int val);
 
48
        int  get_bwA();
 
49
 
 
50
        void set_modeB(int val);
 
51
        int  get_modeB();
 
52
        void set_bwB(int val);
 
53
        int  get_bwB();
 
54
 
 
55
        bool twovfos() {return true;}
 
56
        bool can_split() {return true;}
 
57
        void set_split(bool);
 
58
        int  get_split();
 
59
 
 
60
        int  get_smeter();
 
61
        int  get_swr();
 
62
        int  get_alc();
 
63
        int  get_power_out();
 
64
        int  get_power_control();
 
65
        void get_pc_min_max_step(double &min, double &max, double &step) {
 
66
                min = 5; max = 100; step = 1; }
 
67
        void set_volume_control(int val);
 
68
        int  get_volume_control();
 
69
        void get_vol_min_max_step(int &min, int &max, int &step);
 
70
        void set_power_control(double val);
 
71
        void set_PTT_control(int val);
 
72
        void tune_rig();
 
73
        void set_attenuator(int val);
 
74
        int  get_attenuator();
 
75
        void set_preamp(int val);
 
76
        int  get_preamp();
 
77
        void set_if_shift(int val);
 
78
        bool get_if_shift(int &val);
 
79
        void get_if_min_max_step(int &min, int &max, int &step);
 
80
        void set_notch(bool on, int val);
 
81
        bool get_notch(int &val);
 
82
        void get_notch_min_max_step(int &min, int &max, int &step);
 
83
        void set_noise(bool b);
 
84
        void set_mic_gain(int val);
 
85
        int  get_mic_gain();
 
86
        void get_mic_min_max_step(int &min, int &max, int &step);
 
87
 
 
88
        void set_rf_gain(int val);
 
89
        int  get_rf_gain();
 
90
        void get_rf_min_max_step(int &min, int &max, int &step);
 
91
 
 
92
        void set_special(int v);
 
93
 
 
94
        void set_vox_onoff();
 
95
        void set_vox_gain();
 
96
        void get_vox_gain_min_max_step(int &min, int &max, int &step) {
 
97
                min = 0; max = 255; step = 1; }
 
98
        void set_vox_hang();
 
99
        void get_vox_hang_min_max_step(int &min, int &max, int &step) {
 
100
                min = 100; max = 3000; step = 100; }
 
101
 
 
102
        void get_cw_wpm_min_max(int &min, int &max) {
 
103
                min = 4; max = 60; }
 
104
 
 
105
        void set_cw_weight();
 
106
        void set_cw_wpm();
 
107
        void enable_keyer();
 
108
        void enable_break_in();
 
109
 
 
110
        void set_cw_qsk();
 
111
        void get_cw_qsk_min_max_step(double &min, double &max, double &step) {
 
112
                min = 30; max = 3000; step = 10; }
 
113
 
 
114
        void set_cw_delay();
 
115
        void get_cw_delay_min_max_step(double &min, double &max, double &step) {
 
116
                min = 30; max = 3000; step = 10; }
 
117
 
 
118
        bool set_cw_spot();
 
119
        void set_cw_spot_tone();
 
120
        void get_cw_spot_tone_min_max_step(int &min, int &max, int &step) {
 
121
                min = 400; max = 800; step = 100; }
 
122
 
 
123
        void set_band_selection(int v);
 
124
 
 
125
        void get_nr_min_max_step(int &min, int &max, int &step) {
 
126
                min = 1; max = 11; step = 1; }
 
127
 
 
128
        void set_noise_reduction_val(int val);
 
129
        int  get_noise_reduction_val();
 
130
        void set_noise_reduction(int val);
 
131
        int  get_noise_reduction();
 
132
 
 
133
        void set_xcvr_auto_on();
 
134
        void set_xcvr_auto_off();
 
135
 
 
136
        int adjust_bandwidth(int);
 
137
        int def_bandwidth(int);
 
138
        const char ** bwtable(int);
 
139
 
 
140
};
 
141
 
 
142
#endif