GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
scrambler_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_SCRAMBLER_BB_H
12 #define INCLUDED_GR_SCRAMBLER_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 Scramble an input stream using an LFSR.
22  * \ingroup coding_blk
23  *
24  * \details
25  * This block works on the LSB only of the input data stream,
26  * i.e., on an "unpacked binary" stream, and produces the same
27  * format on its output.
28  */
29 class DIGITAL_API scrambler_bb : virtual public sync_block
30 {
31 public:
32  // gr::digital::scrambler_bb::sptr
33  typedef std::shared_ptr<scrambler_bb> sptr;
34 
35  /*!
36  * Make a scramber 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_SCRAMBLER_BB_H */
Scramble an input stream using an LFSR.
Definition: scrambler_bb.h:30
std::shared_ptr< scrambler_bb > sptr
Definition: scrambler_bb.h:33
static sptr make(uint64_t mask, uint64_t seed, uint8_t len)
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