fcdpp_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_FCDPP_CONTROL_IMPL_H
#define INCLUDED_FUNCUBE_FCDPP_CONTROL_IMPL_H
#include "hidapi/hidapi.h"
#include <funcube/fcdpp_control.h>
namespace gr {
namespace funcube {
class FUNCUBE_API fcdpp_control_impl : public fcdpp_control
{
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 */
public:
fcdpp_control_impl();
~fcdpp_control_impl();
/* Public API functions documented in include/funcube/fcdpp_control.h */
void set_freq(double freq) override;
void set_lna(int gain) override;
void set_mixer_gain(int gain) override;
void set_if_gain(int gain);
void set_frequency_msg(pmt::pmt_t msg);
};
} // namespace funcube
} // namespace gr
#endif /* INCLUDED_FUNCUBE_FCDPP_CONTROL_IMPL_H */
FUNCUBE_API
#define FUNCUBE_API
Definition api.h:19
gr::funcube::fcdpp_control_impl
Definition fcdpp_control_impl.h:18
gr::funcube::fcdpp_control_impl::set_frequency_msg
void set_frequency_msg(pmt::pmt_t msg)
gr::funcube::fcdpp_control_impl::set_if_gain
void set_if_gain(int gain)
Set If gain.
gr::funcube::fcdpp_control_impl::set_lna
void set_lna(int gain) override
Switches the LNA on/off.
gr::funcube::fcdpp_control_impl::~fcdpp_control_impl
~fcdpp_control_impl()
gr::funcube::fcdpp_control_impl::set_freq
void set_freq(double freq) override
Sets the frequency .
gr::funcube::fcdpp_control_impl::fcdpp_control_impl
fcdpp_control_impl()
gr::funcube::fcdpp_control_impl::set_mixer_gain
void set_mixer_gain(int gain) override
Switches mixer gain onf/off.
gr::funcube::fcdpp_control
<+description of block+>
Definition fcdpp_control.h:23
fcdpp_control.h
gr
Definition fcd.h:14