Merge commit 'v3.3.0' into upstream
[debian/gnuradio] / gr-msdd6000 / src / msdd6000.h
1 #ifndef MSDD6000_H
2 #define MSDD6000_H
3
4 #include <boost/scoped_ptr.hpp>
5
6 class MSDD6000 {
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(char* ip_addr);
19   ~MSDD6000();
20
21   void set_decim(int decim_pow2);
22   void set_fc(int center_mhz, int offset_hz);   
23   void set_ddc_gain(int gain);
24   void set_rf_attn(int attn);
25
26   void set_output(int mode, void* arg);
27
28   void start();
29   void stop();
30         
31   void send_request(float,float,float,float,float);     
32   int read(char*, int);
33
34   int d_decim;
35   int d_fc_mhz;
36   int d_offset_hz;
37   int d_rf_attn;
38   int d_ddc_gain;
39   int d_sock;
40   state d_state;
41
42 };
43
44
45 #endif