GNU Radio's OSMOSDR Package
freesrp_common.h
Go to the documentation of this file.
1 #ifndef INCLUDED_FREESRP_COMMON_H
2 #define INCLUDED_FREESRP_COMMON_H
3 
4 #include <vector>
5 #include <string>
6 
7 #include "osmosdr/ranges.h"
8 
9 #include <freesrp.hpp>
10 
12 {
13 protected:
14  freesrp_common(const std::string &args);
15 public:
16  static std::vector<std::string> get_devices();
17 
18  size_t get_num_channels( void );
20  osmosdr::freq_range_t get_freq_range( size_t chan = 0 );
21  osmosdr::freq_range_t get_bandwidth_range( size_t chan = 0 );
22  double set_freq_corr( double ppm, size_t chan = 0 );
23  double get_freq_corr( size_t chan = 0 );
24 protected:
25  static boost::shared_ptr<::FreeSRP::FreeSRP> _srp;
26  bool _ignore_overflow = false;
27 };
28 
29 #endif
bool _ignore_overflow
Definition: freesrp_common.h:26
static std::vector< std::string > get_devices()
double set_freq_corr(double ppm, size_t chan=0)
Definition: ranges.h:75
Definition: freesrp_common.h:11
freesrp_common(const std::string &args)
osmosdr::freq_range_t get_freq_range(size_t chan=0)
osmosdr::meta_range_t get_sample_rates(void)
osmosdr::freq_range_t get_bandwidth_range(size_t chan=0)
double get_freq_corr(size_t chan=0)
size_t get_num_channels(void)
static boost::shared_ptr<::FreeSRP::FreeSRP > _srp
Definition: freesrp_common.h:25