20 #ifndef INCLUDED_OSMOSDR_SINK_IMPL_H
21 #define INCLUDED_OSMOSDR_SINK_IMPL_H
51 double set_gain(
double gain,
size_t chan = 0 );
52 double set_gain(
double gain,
const std::string & name,
size_t chan = 0 );
54 double get_gain(
const std::string & name,
size_t chan = 0 );
60 std::string
set_antenna(
const std::string & antenna,
size_t chan = 0 );
63 void set_dc_offset(
const std::complex<double> &offset,
size_t chan = 0 );
81 void set_time_now(const ::osmosdr::time_spec_t &time_spec,
size_t mboard = 0);
86 std::vector< sink_iface * > _devs;
90 std::map< size_t, double > _center_freq;
91 std::map< size_t, double > _freq_corr;
92 std::map< size_t, bool > _gain_mode;
93 std::map< size_t, double > _gain;
94 std::map< size_t, double > _if_gain;
95 std::map< size_t, double > _bb_gain;
96 std::map< size_t, std::string > _antenna;
97 std::map< size_t, double > _bandwidth;
Takes a stream of complex samples.
Definition: sink.h:39
Definition: time_spec.h:39
Definition: sink_impl.h:30
double set_bandwidth(double bandwidth, size_t chan=0)
osmosdr::freq_range_t get_bandwidth_range(size_t chan=0)
std::vector< std::string > get_gain_names(size_t chan=0)
bool get_gain_mode(size_t chan=0)
double get_gain(size_t chan=0)
void set_time_now(const ::osmosdr::time_spec_t &time_spec, size_t mboard=0)
double get_gain(const std::string &name, size_t chan=0)
std::string set_antenna(const std::string &antenna, size_t chan=0)
::osmosdr::time_spec_t get_time_now(size_t mboard=0)
osmosdr::freq_range_t get_freq_range(size_t chan=0)
void set_time_next_pps(const ::osmosdr::time_spec_t &time_spec)
void set_dc_offset(const std::complex< double > &offset, size_t chan=0)
std::string get_clock_source(const size_t mboard)
double set_if_gain(double gain, size_t chan=0)
double set_center_freq(double freq, size_t chan=0)
double get_clock_rate(size_t mboard=0)
::osmosdr::time_spec_t get_time_last_pps(size_t mboard=0)
double get_freq_corr(size_t chan=0)
double set_gain(double gain, size_t chan=0)
bool set_gain_mode(bool automatic, size_t chan=0)
std::string get_time_source(const size_t mboard)
std::string get_antenna(size_t chan=0)
osmosdr::meta_range_t get_sample_rates(void)
double set_sample_rate(double rate)
void set_clock_source(const std::string &source, const size_t mboard=0)
double get_bandwidth(size_t chan=0)
std::vector< std::string > get_time_sources(const size_t mboard)
size_t get_num_channels(void)
void set_time_unknown_pps(const ::osmosdr::time_spec_t &time_spec)
double set_freq_corr(double ppm, size_t chan=0)
double set_gain(double gain, const std::string &name, size_t chan=0)
std::vector< std::string > get_antennas(size_t chan=0)
double get_center_freq(size_t chan=0)
osmosdr::gain_range_t get_gain_range(const std::string &name, size_t chan=0)
void set_iq_balance(const std::complex< double > &balance, size_t chan=0)
double get_sample_rate(void)
void set_clock_rate(double rate, size_t mboard=0)
std::vector< std::string > get_clock_sources(const size_t mboard)
sink_impl(const std::string &args)
osmosdr::gain_range_t get_gain_range(size_t chan=0)
void set_time_source(const std::string &source, const size_t mboard=0)
double set_bb_gain(double gain, size_t chan=0)