GNU Radio's TEST 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 <memory>
5#include <vector>
6#include <string>
7
8#include "osmosdr/ranges.h"
9
10#include <freesrp.hpp>
11
12 class freesrp_common
13{
14 protected:
15 freesrp_common(const std::string &args);
16 public:
17 static std::vector<std::string> get_devices();
18
19 size_t get_num_channels( void );
20 osmosdr::meta_range_t get_sample_rates( void );
21 osmosdr::freq_range_t get_freq_range( size_t chan = 0 );
22 osmosdr::freq_range_t get_bandwidth_range( size_t chan = 0 );
23 double set_freq_corr( double ppm, size_t chan = 0 );
24 double get_freq_corr( size_t chan = 0 );
25 protected:
26 static std::shared_ptr<::FreeSRP::FreeSRP> _srp;
27 bool _ignore_overflow = false;
28};
29
30#endif
freesrp_common
Definition: freesrp_common.h:13
freesrp_common::_srp
static std::shared_ptr<::FreeSRP::FreeSRP > _srp
Definition: freesrp_common.h:26
freesrp_common::get_freq_corr
double get_freq_corr(size_t chan=0)
freesrp_common::get_devices
static std::vector< std::string > get_devices()
freesrp_common::get_bandwidth_range
osmosdr::freq_range_t get_bandwidth_range(size_t chan=0)
freesrp_common::freesrp_common
freesrp_common(const std::string &args)
freesrp_common::set_freq_corr
double set_freq_corr(double ppm, size_t chan=0)
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)
freesrp_common::_ignore_overflow
bool _ignore_overflow
Definition: freesrp_common.h:27
freesrp_common::get_sample_rates
osmosdr::meta_range_t get_sample_rates(void)
ranges.h
osmosdr::meta_range_t
Definition: ranges.h:75