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 );
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
freesrp_common::get_freq_corr
double get_freq_corr(size_t chan=0)
freesrp_common::get_bandwidth_range
osmosdr::freq_range_t get_bandwidth_range(size_t chan=0)
freesrp_common::_srp
static boost::shared_ptr<::FreeSRP::FreeSRP > _srp
Definition: freesrp_common.h:25
freesrp_common::set_freq_corr
double set_freq_corr(double ppm, size_t chan=0)
freesrp_common
Definition: freesrp_common.h:12
freesrp_common::freesrp_common
freesrp_common(const std::string &args)
freesrp_common::get_freq_range
osmosdr::freq_range_t get_freq_range(size_t chan=0)
freesrp_common::get_num_channels
size_t get_num_channels(void)
osmosdr::meta_range_t
Definition: ranges.h:75
freesrp_common::get_devices
static std::vector< std::string > get_devices()
ranges.h
freesrp_common::get_sample_rates
osmosdr::meta_range_t get_sample_rates(void)
freesrp_common::_ignore_overflow
bool _ignore_overflow
Definition: freesrp_common.h:26