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 * SPDX-License-Identifier: GPL-3.0-or-later
11 */
12
13#ifndef INCLUDED_GNMAX2769_GNMAX_SOURCE_CC_IMPL_H
14#define INCLUDED_GNMAX2769_GNMAX_SOURCE_CC_IMPL_H
15
17#include "gnmax_source.h"
18
19namespace gr {
20 namespace gnMAX2769 {
21
23 {
24 private:
25 /* Create the GNMAX object*/
26 gnmax_Source *gnmax_drv;
27 gnmax_ms_packet packet;
28 gnmax_settings settings;
29
30 public:
31 gnmax_source_cc_impl(int bias, int ant, float freq, int bw, int zeroif);
33
34 // Where all the action really happens
35 int work(
36 int noutput_items,
37 gr_vector_const_void_star &input_items,
38 gr_vector_void_star &output_items
39 );
40
41 int bias() const { return settings.bias; };
42 void set_bias (int bias);
43 int ant () const { return settings.ant; };
44 void set_ant (int ant);
45 float freq () const { return settings.freq; };
46 void set_freq (float freq);
47 int bw () const { return settings.bw; };
48 void set_bw (int bw);
49 };
50
51 } // namespace gnMAX2769
52} // namespace gr
53
54#endif /* INCLUDED_GNMAX2769_GNMAX_SOURCE_CC_IMPL_H */
55
Definition gnmax_source.h:40
void set_freq(float freq)
Set RF frequency.
void set_bias(int bias)
Set active antenna bias.
void set_ant(int ant)
Set antenna selection.
int bias() const
Return active antenna bias state.
Definition gnmax_source_cc_impl.h:41
void set_bw(int bw)
Set IF bandwidth.
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
int bw() const
Return IF bandwidth setting.
Definition gnmax_source_cc_impl.h:47
float freq() const
Return RF frequency.
Definition gnmax_source_cc_impl.h:45
int ant() const
Return antenna selection.
Definition gnmax_source_cc_impl.h:43
gnmax_source_cc_impl(int bias, int ant, float freq, int bw, int zeroif)
<+description of block+>
Definition gnmax_source_cc.h:26
Definition gnmax_source_cc.h:18
Definition gnmax_source_cc.h:17
linked list structure for circular FIFO buffer
Definition gnmax_defines.h:16
Definition gnmax_defines.h:25