GNU Radio Manual and C++ API Reference 3.10.5.1
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 * 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_ENCODER_BB_H
13#define INCLUDED_GR_DIFF_ENCODER_BB_H
14
17#include <gnuradio/sync_block.h>
18
19namespace gr {
20namespace digital {
21
22/*!
23 * \brief Differential decoder: y[0] = (x[0] + y[-1]) % M
24 * \ingroup symbol_coding_blk
25 *
26 * \details
27 * Uses current and previous symbols and the alphabet modulus to
28 * perform differential encoding.
29 */
31{
32public:
33 // gr::digital::diff_encoder_bb::sptr
34 typedef std::shared_ptr<diff_encoder_bb> sptr;
35
36 /*!
37 * Make a differential encoder block.
38 *
39 * \param modulus Modulus of code's alphabet
40 * \param coding Differential coding type
41 */
42 static sptr make(unsigned int modulus,
44};
45
46} /* namespace digital */
47} /* namespace gr */
48
49#endif /* INCLUDED_GR_DIFF_ENCODER_BB_H */
Differential decoder: y[0] = (x[0] + y[-1]) % M.
Definition: diff_encoder_bb.h:31
static sptr make(unsigned int modulus, enum diff_coding_type coding=DIFF_DIFFERENTIAL)
std::shared_ptr< diff_encoder_bb > sptr
Definition: diff_encoder_bb.h:34
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