Fixes the replotting update. It's now based on a QTimer so it's in the event buffer...
[debian/gnuradio] / gr-msdd6000 / src / msdd6000_rs.h
1 #ifndef MSDD_RS__RS_6000_H
2 #define MSDD_RS__RS_6000_H
3
4 #include <boost/scoped_ptr.hpp>
5
6 class MSDD6000_RS {
7   class detail;
8
9   //! holds objects with system dependent types
10   boost::scoped_ptr<detail>     d_detail;  
11
12 public:
13
14   enum state {
15     STATE_STOPPED, STATE_STARTED
16   };
17
18   MSDD6000_RS(char* ip_addr);
19   ~MSDD6000_RS();
20
21   /* set functions -- sets digitizer parameters */
22  
23  // void set_output(int mode, void* arg);
24
25   void set_rf_attn(int attn);
26   void set_ddc_gain(int gain);
27   void set_fc(int center_mhz, int offset_hz);
28   void set_ddc_samp_rate(float sample_rate_khz);
29   void set_ddc_bw(float bw_khz);
30
31   void start();
32   void stop();
33
34   /* function starts the flow of data from the digitizer */
35   int start_data();
36   /* function stops the flow of data from the digitizer */
37   int stop_data();
38   
39   /* query functions -- queries digitizer 'actual' parameters */
40   float pull_ddc_samp_rate();
41   float pull_ddc_bw();
42   float pull_rx_freq();
43   int   pull_ddc_gain();
44   int   pull_rf_atten();
45         
46   void send_request(float,float,float,float,float,float,float); 
47   int read(char*, int);
48
49   int parse_control(char*, int);
50
51 private:
52   // parameters for a receiver object.
53   int   d_fc_mhz;
54   int   d_offset_hz;
55   int   d_rf_attn;
56   int   d_ddc_gain;
57   float d_ddc_sample_rate_khz;
58   float d_ddc_bw_khz;
59   int   d_start;
60   int   d_sock;
61   state d_state;
62
63 };
64
65
66 #endif