GNU Radio 3.7.1 C++ API
|
Galois LFSR pseudo-random source. More...
#include <glfsr_source_b.h>
Public Types | |
typedef boost::shared_ptr < glfsr_source_b > | sptr |
Public Member Functions | |
virtual unsigned int | period () const =0 |
virtual int | mask () const =0 |
Static Public Member Functions | |
static sptr | make (int degree, bool repeat=true, int mask=0, int seed=1) |
Galois LFSR pseudo-random source.
static sptr gr::digital::glfsr_source_b::make | ( | int | degree, |
bool | repeat = true , |
||
int | mask = 0 , |
||
int | seed = 1 |
||
) | [static] |
Make a Galois LFSR pseudo-random source block.
degree | Degree of shift register must be in [1, 32]. If mask is 0, the degree determines a default mask (see digital_impl_glfsr.cc for the mapping). |
repeat | Set to repeat sequence. |
mask | Allows a user-defined bit mask for indexes of the shift register to feed back. |
seed | Initial setting for values in shift register. |
virtual int gr::digital::glfsr_source_b::mask | ( | ) | const [pure virtual] |
virtual unsigned int gr::digital::glfsr_source_b::period | ( | ) | const [pure virtual] |