GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
correctiq_man.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2020 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef INCLUDED_CORRECTIQ_CORRECTIQ_MAN_H
12#define INCLUDED_CORRECTIQ_CORRECTIQ_MAN_H
13
14#include <gnuradio/blocks/api.h>
15#include <gnuradio/sync_block.h>
16
17namespace gr {
18namespace blocks {
19
20/*!
21 * \brief This block provides a mechanism to manually provide a real and
22 * \p imaginary signal offset. Very similar to a complex add block,
23 * \p the block supports dynamic updating on the values.
24 * \ingroup iq_correction
25 *
26 */
28{
29public:
30 typedef std::shared_ptr<correctiq_man> sptr;
31
32 /*!
33 * \brief Return a shared_ptr to a new instance of correctiq::correctiq_man.
34 *
35 * To avoid accidental use of raw pointers, correctiq::correctiq_man's
36 * constructor is in a private implementation
37 * class. correctiq::correctiq_man::make is the public interface for
38 * creating new instances.
39 */
40
41 virtual float get_real() const = 0;
42 virtual float get_imag() const = 0;
43
44 virtual void set_real(float newValue) = 0;
45 virtual void set_imag(float newValue) = 0;
46
47 static sptr make(float real, float imag);
48};
49
50} // namespace blocks
51} // namespace gr
52
53#endif /* INCLUDED_CORRECTIQ_CORRECTIQ_MAN_H */
This block provides a mechanism to manually provide a real and imaginary signal offset....
Definition: correctiq_man.h:28
virtual void set_imag(float newValue)=0
static sptr make(float real, float imag)
std::shared_ptr< correctiq_man > sptr
Definition: correctiq_man.h:30
virtual float get_imag() const =0
virtual void set_real(float newValue)=0
virtual float get_real() const =0
Return a shared_ptr to a new instance of correctiq::correctiq_man.
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29