1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
/* -*- 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 */
|