GNU Radio Manual and C++ API Reference  3.9.2.0
The Free & Open Software Radio Ecosystem
diff_encoder_bb.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2006,2012 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_GR_DIFF_ENCODER_BB_H
12 #define INCLUDED_GR_DIFF_ENCODER_BB_H
13 
14 #include <gnuradio/digital/api.h>
15 #include <gnuradio/sync_block.h>
16 
17 namespace gr {
18 namespace digital {
19 
20 /*!
21  * \brief Differential decoder: y[0] = (x[0] + y[-1]) % M
22  * \ingroup symbol_coding_blk
23  *
24  * \details
25  * Uses current and previous symbols and the alphabet modulus to
26  * perform differential encoding.
27  */
28 class DIGITAL_API diff_encoder_bb : virtual public sync_block
29 {
30 public:
31  // gr::digital::diff_encoder_bb::sptr
32  typedef std::shared_ptr<diff_encoder_bb> sptr;
33 
34  /*!
35  * Make a differential encoder block.
36  *
37  * \param modulus Modulus of code's alphabet
38  */
39  static sptr make(unsigned int modulus);
40 };
41 
42 } /* namespace digital */
43 } /* namespace gr */
44 
45 #endif /* INCLUDED_GR_DIFF_ENCODER_BB_H */
Differential decoder: y[0] = (x[0] + y[-1]) % M.
Definition: diff_encoder_bb.h:29
static sptr make(unsigned int modulus)
std::shared_ptr< diff_encoder_bb > sptr
Definition: diff_encoder_bb.h:32
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
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:29