GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
correctiq_swapiq.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_SWAPIQ_H
12#define INCLUDED_CORRECTIQ_SWAPIQ_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 will transpose the I and Q channels (Swap IQ) to
22 * \p correct for spectrally inverted inputs.
23 * \ingroup iq_correction
24 *
25 */
26class BLOCKS_API swap_iq : virtual public gr::sync_block
27{
28public:
29 typedef std::shared_ptr<swap_iq> sptr;
30
31 /*!
32 * \brief Return a shared_ptr to a new instance of correctiq::swap_iq.
33 *
34 * To avoid accidental use of raw pointers, correctiq::swap_iq's
35 * constructor is in a private implementation
36 * class. correctiq::swap_iq::make is the public interface for
37 * creating new instances.
38 */
39 static sptr make(int datatype, int datasize);
40};
41
42} // namespace blocks
43} // namespace gr
44
45#endif /* INCLUDED_CORRECTIQ_SWAPIQ_H */
This block will transpose the I and Q channels (Swap IQ) to correct for spectrally inverted inputs.
Definition: correctiq_swapiq.h:27
std::shared_ptr< swap_iq > sptr
Definition: correctiq_swapiq.h:29
static sptr make(int datatype, int datasize)
Return a shared_ptr to a new instance of correctiq::swap_iq.
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