GNU Radio's FUNCUBE Package
fcd_control_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2020 dl1ksv.
4  *
5  * SPDX-License-Identifier: GPL-3.0-or-later
6  */
7 
8 #ifndef INCLUDED_FUNCUBE_FCD_CONTROL_IMPL_H
9 #define INCLUDED_FUNCUBE_FCD_CONTROL_IMPL_H
10 
11 #include <funcube/fcd_control.h>
12 
13 #include "hidapi/hidapi.h"
14 
15 namespace gr {
16 namespace funcube {
17 
19 {
20 public:
23 
24  /* Public API functions documented in include/funcube/fcd_control.h */
25  void set_freq(float freq);
26  void set_lna_gain(float gain);
27  void set_mixer_gain(float gain);
28  void set_freq_corr(int ppm);
29  void set_dc_corr(double _dci, double _dcq);
30  void set_iq_corr(double _gain, double _phase);
31  void set_frequency_msg(pmt::pmt_t msg);
32 
33 private:
34  int d_freq_corr; /*!< The frequency correction in ppm */
35  hid_device* d_control_handle; /*!< handle to control the device, set frequency, etc */
36  unsigned char aucBuf[65]; /*!< Buffers to read/write control messages to the dongle */
37 };
38 
39 } // namespace funcube
40 } // namespace gr
41 
42 #endif /* INCLUDED_FUNCUBE_FCD_CONTROL_IMPL_H */
Definition: fcd_control_impl.h:19
void set_freq_corr(int ppm)
Set new frequency correction.
void set_mixer_gain(float gain)
Set mixer gain.
void set_frequency_msg(pmt::pmt_t msg)
void set_lna_gain(float gain)
Set LNA gain.
void set_freq(float freq)
Set frequency with Hz resolution.
void set_iq_corr(double _gain, double _phase)
Set IQ phase and gain balance.
void set_dc_corr(double _dci, double _dcq)
Set DC offset correction.
<+description of block+>
Definition: fcd_control.h:23
Definition: fcd.h:14