GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
constellation_encoder_bc.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_DIGITAL_CONSTELLATION_ENCODER_BC_H
12 #define INCLUDED_DIGITAL_CONSTELLATION_ENCODER_BC_H
13 
14 #include <gnuradio/digital/api.h>
17 
18 namespace gr {
19 namespace digital {
20 
21 /*!
22  * \brief Constellation Encoder
23  * \ingroup symbol_coding_blk
24  *
25  * \details
26  * Encode index of constellation points into a constellation's complex
27  * space based on the map of the \p constellation object.
28  */
30 {
31 public:
32  // gr::digital::constellation_encoder_bc::sptr
33  typedef std::shared_ptr<constellation_encoder_bc> sptr;
34 
35  /*!
36  * \brief Make constellation encoder block.
37  *
38  * \param constellation A constellation derived from class
39  * 'constellation'. Use base() method to get a shared pointer to
40  * this base class type.
41  */
42  static sptr make(constellation_sptr constellation);
43 
44  /*!
45  * Set a new constellation object for encoding
46  *
47  * \param constellation A constellation derived from class
48  * 'constellation'. Use base() method to get a shared pointer to
49  * this base class type.
50  */
51  virtual void set_constellation(constellation_sptr constellation) = 0;
52 };
53 
54 } /* namespace digital */
55 } /* namespace gr */
56 
57 #endif /* INCLUDED_DIGITAL_CONSTELLATION_ENCODER_BC_H */
Constellation Encoder.
Definition: constellation_encoder_bc.h:30
virtual void set_constellation(constellation_sptr constellation)=0
std::shared_ptr< constellation_encoder_bc > sptr
Definition: constellation_encoder_bc.h:33
static sptr make(constellation_sptr constellation)
Make constellation encoder block.
An abstracted constellation object.
Definition: constellation.h:50
synchronous 1:N input to output with history
Definition: sync_interpolator.h:26
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29