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

« back to all changes in this revision

Viewing changes to src/include/TT588.h

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa
  • Date: 2014-06-07 11:28:52 UTC
  • Revision ID: package-import@ubuntu.com-20140607112852-v4d5tb1m3h3vi0dl
Tags: upstream-1.3.15
ImportĀ upstreamĀ versionĀ 1.3.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _TT588_H
 
2
#define _TT588_H
 
3
 
 
4
#include "rigbase.h"
 
5
 
 
6
class RIG_TT588 : public rigbase {
 
7
private:
 
8
        double fwdpwr;
 
9
        double refpwr;
 
10
        double fwdv;
 
11
        double refv;
 
12
        double VfoAdj;
 
13
        int    vfo_corr;
 
14
        int    atten_level;
 
15
        int    an_;
 
16
        int    nb_;
 
17
 
 
18
public:
 
19
        RIG_TT588();
 
20
        ~RIG_TT588(){}
 
21
 
 
22
        void initialize();
 
23
 
 
24
        long get_vfoA();
 
25
        void set_vfoA(long);
 
26
        long get_vfoB();
 
27
        void set_vfoB(long);
 
28
        void setVfoAdj(double v);
 
29
 
 
30
        void set_modeA(int val);
 
31
        int  get_modeA();
 
32
        int  get_modetype(int n);
 
33
        void set_bwA(int val);
 
34
        int  get_bwA();
 
35
 
 
36
        void set_modeB(int val);
 
37
        int  get_modeB();
 
38
        void set_bwB(int val);
 
39
        int  get_bwB();
 
40
 
 
41
        bool twovfos() {return true;}
 
42
 
 
43
        int  get_smeter();
 
44
 
 
45
        void set_volume_control(int val);
 
46
        int  get_volume_control();
 
47
        void set_attenuator(int val);
 
48
        int  get_attenuator();
 
49
        void set_rf_gain(int val);
 
50
        int  get_rf_gain();
 
51
        void set_if_shift(int val);
 
52
        bool get_if_shift(int &val);
 
53
        void get_if_min_max_step(int &min, int &max, int &step);
 
54
 
 
55
        void set_squelch(int val);
 
56
        int  get_squelch();
 
57
        void get_squelch_min_max_step(int &min, int &max, int &step) {
 
58
                min = 0; max = 100; step = 1; }
 
59
 
 
60
//      void set_auto_notch(int);
 
61
//      int  get_auto_notch();
 
62
 
 
63
        void set_noise(bool);
 
64
        int  get_noise();
 
65
 
 
66
        void set_split(bool val);
 
67
        int  get_split();
 
68
 
 
69
        int  get_swr();
 
70
        int  get_power_out();
 
71
 
 
72
//      int  get_power_control(void);
 
73
//      void set_power_control(double val);
 
74
//      void get_pc_min_max_step(double &min, double &max, double &step) {
 
75
//              min = 0; max = 100; step = 1; }
 
76
 
 
77
        void set_PTT_control(int val);
 
78
 
 
79
//      void tune_rig();
 
80
//      void set_preamp(int val);
 
81
//      int  get_preamp();
 
82
//      void set_notch(bool on, int val);
 
83
//      bool get_notch(int &val);
 
84
//      void get_notch_min_max_step(int &min, int &max, int &step);
 
85
//      void set_mic_gain(int val);
 
86
//      int  get_mic_gain();
 
87
//      void get_mic_min_max_step(int &min, int &max, int &step);
 
88
        void checkresponse(string s);
 
89
        void shutdown();
 
90
 
 
91
        int  adjust_bandwidth(int m);
 
92
        int  def_bandwidth(int m);
 
93
 
 
94
};
 
95
 
 
96
 
 
97
#endif