GNU Radio 3.4.0 C++ API
msdd6000.h
Go to the documentation of this file.
00001 #ifndef MSDD6000_H
00002 #define MSDD6000_H
00003 
00004 #include <boost/scoped_ptr.hpp>
00005 
00006 class MSDD6000 {
00007   class detail;
00008 
00009   //! holds objects with system dependent types
00010   boost::scoped_ptr<detail>     d_detail;  
00011 
00012 public:
00013 
00014   enum state {
00015     STATE_STOPPED, STATE_STARTED,
00016   };
00017 
00018   MSDD6000(char* ip_addr);
00019   ~MSDD6000();
00020 
00021   void set_decim(int decim_pow2);
00022   void set_fc(int center_mhz, int offset_hz);   
00023   void set_ddc_gain(int gain);
00024   void set_rf_attn(int attn);
00025 
00026   void set_output(int mode, void* arg);
00027 
00028   void start();
00029   void stop();
00030         
00031   void send_request(float,float,float,float,float);     
00032   int read(char*, int);
00033 
00034   int d_decim;
00035   int d_fc_mhz;
00036   int d_offset_hz;
00037   int d_rf_attn;
00038   int d_ddc_gain;
00039   int d_sock;
00040   state d_state;
00041 
00042 };
00043 
00044 
00045 #endif