1 #ifndef INCLUDED_MSDD_SOURCE_SIMPLE_H
2 #define INCLUDED_MSDD_SOURCE_SIMPLE_H
5 #include <sys/socket.h>
6 #include <netinet/in.h>
9 #include <gr_sync_block.h>
13 class msdd_source_simple;
14 typedef boost::shared_ptr<msdd_source_simple> msdd_source_simple_sptr;
17 // public shared_ptr constructor
19 msdd_source_simple_sptr msdd_make_source_simple ( const char *src, unsigned short port_src);
23 class msdd_source_simple : public gr_sync_block {
25 friend msdd_source_simple_sptr
26 msdd_make_source_simple ( const char *src, unsigned short port_src);
32 msdd_source_simple (const char *src, unsigned short port_src);
35 ~msdd_source_simple ();
36 int ninput_bytes_reqd_for_noutput_items(int out);
40 bool set_decim_rate(unsigned int);
41 bool set_rx_freq(int,double);
42 bool set_pga(int,double);
44 int work(int, gr_vector_const_void_star&, gr_vector_void_star&);
48 std::vector<int> gain_range();
49 std::vector<float> freq_range();
52 #endif /* INCLUDED_MSDD_SOURCE_C_H */