freesrp_common.h
Go to the documentation of this file.
#ifndef INCLUDED_FREESRP_COMMON_H
#define INCLUDED_FREESRP_COMMON_H
#include <memory>
#include <vector>
#include <string>
#include "osmosdr/ranges.h"
#include <freesrp.hpp>
class freesrp_common
{
protected:
freesrp_common(const std::string &args);
public:
static std::vector<std::string> get_devices();
size_t get_num_channels( void );
osmosdr::meta_range_t get_sample_rates( void );
osmosdr::freq_range_t get_freq_range( size_t chan = 0 );
osmosdr::freq_range_t get_bandwidth_range( size_t chan = 0 );
double set_freq_corr( double ppm, size_t chan = 0 );
double get_freq_corr( size_t chan = 0 );
protected:
static std::shared_ptr<::FreeSRP::FreeSRP> _srp;
bool _ignore_overflow = false;
};
#endif
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)
osmosdr::freq_range_t
meta_range_t freq_range_t
Definition ranges.h:125
ranges.h
osmosdr::meta_range_t
Definition ranges.h:75