GNU Radio Manual and C++ API Reference
3.9.4.0
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(
int
mask,
int
seed,
int
len);
43
};
44
45
}
/* namespace digital */
46
}
/* namespace gr */
47
48
#endif
/* INCLUDED_GR_SCRAMBLER_BB_H */
gr::digital::scrambler_bb::sptr
std::shared_ptr< scrambler_bb > sptr
Definition:
scrambler_bb.h:33
gr::sync_block
synchronous 1:1 input to output with history
Definition:
sync_block.h:25
DIGITAL_API
#define DIGITAL_API
Definition:
gr-digital/include/gnuradio/digital/api.h:18
sync_block.h
api.h
gr::digital::scrambler_bb
Scramble an input stream using an LFSR.
Definition:
scrambler_bb.h:29
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
gr-digital
include
gnuradio
digital
scrambler_bb.h
Generated by
1.8.17