GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
meas_evm_cc.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_MEAS_EVM_CC_H
12 #define INCLUDED_DIGITAL_MEAS_EVM_CC_H
13 
14 #include <gnuradio/digital/api.h>
16 #include <gnuradio/sync_block.h>
17 
18 namespace gr {
19 namespace digital {
20 
21 /*!
22  * \brief Measures EVM of incoming symbols relative to a constellation object
23  * \ingroup equalizers
24  *
25  */
26 enum class evm_measurement_t { EVM_PERCENT = 0, EVM_DB = 1 };
27 
28 class DIGITAL_API meas_evm_cc : virtual public gr::sync_block
29 {
30 public:
31  typedef std::shared_ptr<meas_evm_cc> sptr;
32 
33  /*!
34  * \brief Return a shared_ptr to a new instance of gr::digital::meas_evm_cc.
35  *
36  * To avoid accidental use of raw pointers, equalizers::meas_evm_cc's
37  * constructor is in a private implementation
38  * class. equalizers::meas_evm_cc::make is the public interface for
39  * creating new instances.
40  */
41  static sptr make(constellation_sptr cons,
43 };
44 
45 } // namespace digital
46 } // namespace gr
47 
48 #endif /* INCLUDED_DIGITAL_MEAS_EVM_CC_H */
Definition: meas_evm_cc.h:29
static sptr make(constellation_sptr cons, evm_measurement_t meas_type=evm_measurement_t::EVM_PERCENT)
Return a shared_ptr to a new instance of gr::digital::meas_evm_cc.
std::shared_ptr< meas_evm_cc > sptr
Definition: meas_evm_cc.h:31
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:18
evm_measurement_t
Measures EVM of incoming symbols relative to a constellation object.
Definition: meas_evm_cc.h:26
GNU Radio logging wrapper.
Definition: basic_block.h:29
PMT_API pmt_t cons(const pmt_t &x, const pmt_t &y)
Return a newly allocated pair whose car is x and whose cdr is y.