GNU Radio's FUNCUBE Package
fcdpp_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_FCDPP_CONTROL_IMPL_H
9 #define INCLUDED_FUNCUBE_FCDPP_CONTROL_IMPL_H
10 
11 #include "hidapi/hidapi.h"
12 #include <funcube/fcdpp_control.h>
13 
14 namespace gr {
15 namespace funcube {
16 
18 {
19 private:
20  hid_device* d_control_handle; /*!< handle to control the device, set frequency, etc */
21  unsigned char aucBuf[65]; /*!< Buffers to read/write control messages to the dongle */
22 
23 public:
26 
27  /* Public API functions documented in include/funcube/fcdpp_control.h */
28  void set_freq(float freq);
29  void set_lna(int gain);
30  void set_mixer_gain(int gain);
31  void set_if_gain(int gain);
32  void set_frequency_msg(pmt::pmt_t msg);
33 };
34 
35 } // namespace funcube
36 } // namespace gr
37 
38 #endif /* INCLUDED_FUNCUBE_FCDPP_CONTROL_IMPL_H */
Definition: fcdpp_control_impl.h:18
void set_freq(float freq)
Sets the frequency .
void set_frequency_msg(pmt::pmt_t msg)
void set_if_gain(int gain)
Set If gain.
void set_lna(int gain)
Switches the LNA on/off.
void set_mixer_gain(int gain)
Switches mixer gain onf/off.
<+description of block+>
Definition: fcdpp_control.h:23
Definition: fcd.h:14