fcd_control_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_CONTROL_IMPL_H
#define INCLUDED_FUNCUBE_FCD_CONTROL_IMPL_H
#include <funcube/fcd_control.h>
#include "hidapi/hidapi.h"
namespace gr {
namespace funcube {
class FUNCUBE_API fcd_control_impl : public fcd_control
{
public:
fcd_control_impl();
~fcd_control_impl();
/* Public API functions documented in include/funcube/fcd_control.h */
void set_freq(double freq) override;
void set_lna_gain(float gain) override;
void set_mixer_gain(float gain) override;
void set_dc_corr(double _dci, double _dcq) override;
void set_iq_corr(double _gain, double _phase) override;
void set_frequency_msg(pmt::pmt_t msg);
private:
hid_device* d_control_handle; /*!< handle to control the device, set frequency, etc */
unsigned char aucBuf[65]; /*!< Buffers to read/write control messages to the dongle */
};
} // namespace funcube
} // namespace gr
#endif /* INCLUDED_FUNCUBE_FCD_CONTROL_IMPL_H */
FUNCUBE_API
#define FUNCUBE_API
Definition api.h:19
gr::funcube::fcd_control_impl::fcd_control_impl
fcd_control_impl()
gr::funcube::fcd_control_impl::~fcd_control_impl
~fcd_control_impl()
gr::funcube::fcd_control_impl::set_mixer_gain
void set_mixer_gain(float gain) override
Set mixer gain.
gr::funcube::fcd_control_impl::set_dc_corr
void set_dc_corr(double _dci, double _dcq) override
Set DC offset correction.
gr::funcube::fcd_control_impl::set_freq
void set_freq(double freq) override
Set frequency with Hz resolution.
gr::funcube::fcd_control_impl::set_lna_gain
void set_lna_gain(float gain) override
Set LNA gain.
gr::funcube::fcd_control_impl::set_frequency_msg
void set_frequency_msg(pmt::pmt_t msg)
gr::funcube::fcd_control_impl::set_iq_corr
void set_iq_corr(double _gain, double _phase) override
Set IQ phase and gain balance.
gr::funcube::fcd_control
<+description of block+>
Definition fcd_control.h:23
fcd_control.h
gr::funcube
Definition fcd.h:15
gr
Definition fcd.h:14