GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
descrambler_bb.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2008,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_DESCRAMBLER_BB_H
12 #define INCLUDED_GR_DESCRAMBLER_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 Descramber an input stream using an LFSR.
22  * \ingroup coding_blk
23  *
24  * \details
25  * Descramble an input stream using an LFSR. This block works on
26  * the LSB only of the input data stream, i.e., on an "unpacked
27  * binary" stream, and produces the same format on its output.
28  */
29 class DIGITAL_API descrambler_bb : virtual public sync_block
30 {
31 public:
32  // gr::digital::descrambler_bb::sptr
33  typedef std::shared_ptr<descrambler_bb> sptr;
34 
35  /*!
36  * \brief Make a descrambler block.
37  *
38  * \param mask Polynomial mask for LFSR
39  * \param seed Initial shift register contents
40  * \param len Shift register length
41  */
42  static sptr make(uint64_t mask, uint64_t seed, uint8_t len);
43 };
44 
45 } /* namespace digital */
46 } /* namespace gr */
47 
48 #endif /* INCLUDED_GR_DESCRAMBLER_BB_H */
Descramber an input stream using an LFSR.
Definition: descrambler_bb.h:30
std::shared_ptr< descrambler_bb > sptr
Definition: descrambler_bb.h:33
static sptr make(uint64_t mask, uint64_t seed, uint8_t len)
Make a descrambler block.
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.
Definition: basic_block.h:29