GNU Radio's GNMAX2769 Package
gnmax_source_cc_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2020 Wojciech Kazubski.
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3, or (at your option)
8  * any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; see the file COPYING. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef INCLUDED_GNMAX2769_GNMAX_SOURCE_CC_IMPL_H
22 #define INCLUDED_GNMAX2769_GNMAX_SOURCE_CC_IMPL_H
23 
25 #include "gnmax_source.h"
26 
27 namespace gr {
28  namespace gnMAX2769 {
29 
31  {
32  private:
33  /* Create the GNMAX object*/
34  gnmax_Source *gnmax_drv;
35  gnmax_ms_packet packet;
36  gnmax_settings settings;
37 
38  public:
39  gnmax_source_cc_impl(int bias, int ant, float freq, int bw, int zeroif);
41 
42  // Where all the action really happens
43  int work(
44  int noutput_items,
45  gr_vector_const_void_star &input_items,
46  gr_vector_void_star &output_items
47  );
48 
49  int bias() const { return settings.bias; };
50  void set_bias (int bias);
51  int ant () const { return settings.ant; };
52  void set_ant (int ant);
53  float freq () const { return settings.freq; };
54  void set_freq (float freq);
55  int bw () const { return settings.bw; };
56  void set_bw (int bw);
57  };
58 
59  } // namespace gnMAX2769
60 } // namespace gr
61 
62 #endif /* INCLUDED_GNMAX2769_GNMAX_SOURCE_CC_IMPL_H */
63 
void set_ant(int ant)
Set antenna selection.
int bias
Definition: gnmax_defines.h:28
float freq() const
Return RF frequency.
Definition: gnmax_source_cc_impl.h:53
int bw() const
Return IF bandwidth setting.
Definition: gnmax_source_cc_impl.h:55
int ant() const
Return antenna selection.
Definition: gnmax_source_cc_impl.h:51
int ant
Definition: gnmax_defines.h:29
gnmax_source_cc_impl(int bias, int ant, float freq, int bw, int zeroif)
void set_bias(int bias)
Set active antenna bias.
void set_bw(int bw)
Set IF bandwidth.
Definition: gnmax_defines.h:25
int bw
Definition: gnmax_defines.h:31
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
Definition: gnmax_source_cc_impl.h:30
Definition: gnmax_source_cc.h:27
linked list structure for circular FIFO buffer
Definition: gnmax_defines.h:16
int bias() const
Return active antenna bias state.
Definition: gnmax_source_cc_impl.h:49
int freq
Definition: gnmax_defines.h:30
Definition: gnmax_source.h:39
<+description of block+>
Definition: gnmax_source_cc.h:35
void set_freq(float freq)
Set RF frequency.