GNU Radio C++ API Reference: diff_encoder_bb.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
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
15#include <gnuradio/digital/api.h>
16#include <gnuradio/digital/diff_coding_type.h>
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 */
30 class DIGITAL_API diff_encoder_bb : virtual public sync_block
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,
43 enum diff_coding_type coding = DIFF_DIFFERENTIAL);
44};
45
46} /* namespace digital */
47} /* namespace gr */
48
49#endif /* INCLUDED_GR_DIFF_ENCODER_BB_H */
gr::digital::diff_encoder_bb
Differential decoder: y[0] = (x[0] + y[-1]) % M.
Definition diff_encoder_bb.h:31
gr::digital::diff_encoder_bb::make
static sptr make(unsigned int modulus, enum diff_coding_type coding=DIFF_DIFFERENTIAL)
gr::digital::diff_encoder_bb::sptr
std::shared_ptr< diff_encoder_bb > sptr
Definition diff_encoder_bb.h:34
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
diff_coding_type.h
api.h
DIGITAL_API
#define DIGITAL_API
Definition gr-digital/include/gnuradio/digital/api.h:18
gr::digital
Definition adaptive_algorithm.h:22
gr::digital::diff_coding_type
diff_coding_type
Definition diff_coding_type.h:18
gr::digital::DIFF_DIFFERENTIAL
@ DIFF_DIFFERENTIAL
Definition diff_coding_type.h:19
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h