GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
diff_decoder_bb.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2006,2012 Free Software Foundation, Inc.
4  * Copyright 2021 Daniel Estevez <daniel@destevez.net>
5  *
6  * This file is part of GNU Radio
7  *
8  * SPDX-License-Identifier: GPL-3.0-or-later
9  *
10  */
11 
12 #ifndef INCLUDED_GR_DIFF_DECODER_BB_H
13 #define INCLUDED_GR_DIFF_DECODER_BB_H
14 
15 #include <gnuradio/digital/api.h>
17 #include <gnuradio/sync_block.h>
18 
19 namespace gr {
20 namespace digital {
21 
22 /*!
23  * \brief Differential encoder: y[0] = (x[0] - x[-1]) % M
24  * \ingroup symbol_coding_blk
25  *
26  * \details
27  * Uses current and previous symbols and the alphabet modulus to
28  * perform differential decoding.
29  */
30 class DIGITAL_API diff_decoder_bb : virtual public sync_block
31 {
32 public:
33  // gr::digital::diff_decoder_bb::sptr
34  typedef std::shared_ptr<diff_decoder_bb> sptr;
35 
36  /*!
37  * Make a differential decoder block.
38  *
39  * \param modulus Modulus of code's alphabet
40  * \param coding Differential coding type
41  */
42  static sptr make(unsigned int modulus,
43  enum diff_coding_type coding = DIFF_DIFFERENTIAL);
44 };
45 
46 } /* namespace digital */
47 } /* namespace gr */
48 
49 #endif /* INCLUDED_GR_DIFF_DECODER_BB_H */
Differential encoder: y[0] = (x[0] - x[-1]) % M.
Definition: diff_decoder_bb.h:31
std::shared_ptr< diff_decoder_bb > sptr
Definition: diff_decoder_bb.h:34
static sptr make(unsigned int modulus, enum diff_coding_type coding=DIFF_DIFFERENTIAL)
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
diff_coding_type
Definition: diff_coding_type.h:18
@ DIFF_DIFFERENTIAL
Definition: diff_coding_type.h:19
GNU Radio logging wrapper.
Definition: basic_block.h:29