fcd_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2020 dl1ksv.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef INCLUDED_FUNCUBE_FCD_IMPL_H
#define INCLUDED_FUNCUBE_FCD_IMPL_H
#include <gnuradio/audio/source.h>
#include <gnuradio/logger.h>
#include <gnuradio/prefs.h>
#include <funcube/fcd.h>
#include <funcube/fcd_control.h>
namespace gr {
namespace funcube {
class FUNCUBE_API fcd_impl : public fcd
{
private:
// Nothing to declare in this block.
public:
fcd_impl(const std::string device_name = "");
~fcd_impl();
/* Public API functions documented in include/fcdproplus/fcd.h */
void set_freq(double freq) override;
void set_lna_gain(float gain) override;
void set_mixer_gain(float gain) override;
void set_freq_corr(double ppm) override;
void set_dc_corr(double _dci, double _dcq) override;
void set_iq_corr(double _gain, double _phase) override;
private:
gr::audio::source::sptr fcd_audio; /*!< The audio input source */
double d_freq_corr; /*!< The frequency correction in ppm */
double d_freq_req; /*!< The latest requested frequency in Hz */
fcd_control::sptr fcd_control_block; /*!< The fcd control block */
gr::logger_ptr d_logger;
};
} // namespace funcube
} // namespace gr
#endif /* INCLUDED_FUNCUBE_FCD_IMPL_H */
FUNCUBE_API
#define FUNCUBE_API
Definition api.h:19
gr::funcube::fcd_control::sptr
std::shared_ptr< fcd_control > sptr
Definition fcd_control.h:25
gr::funcube::fcd_impl::set_mixer_gain
void set_mixer_gain(float gain) override
Set mixer gain.
gr::funcube::fcd_impl::set_dc_corr
void set_dc_corr(double _dci, double _dcq) override
Set DC offset correction.
gr::funcube::fcd_impl::fcd_impl
fcd_impl(const std::string device_name="")
gr::funcube::fcd_impl::~fcd_impl
~fcd_impl()
gr::funcube::fcd_impl::set_freq
void set_freq(double freq) override
Set frequency with Hz resolution.
gr::funcube::fcd_impl::set_freq_corr
void set_freq_corr(double ppm) override
Set new frequency correction.
gr::funcube::fcd_impl::set_lna_gain
void set_lna_gain(float gain) override
Set LNA gain.
gr::funcube::fcd_impl::set_iq_corr
void set_iq_corr(double _gain, double _phase) override
Set IQ phase and gain balance.
gr::funcube::fcd
Funcube Dongle source block.
Definition fcd.h:32
fcd.h
fcd_control.h
gr::funcube
Definition fcd.h:15
gr
Definition fcd.h:14