GNU Radio 3.7.1 C++ API
gr::digital::glfsr_source_b Class Reference

Galois LFSR pseudo-random source. More...

#include <glfsr_source_b.h>

Inheritance diagram for gr::digital::glfsr_source_b:

List of all members.

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)

Detailed Description

Galois LFSR pseudo-random source.


Member Typedef Documentation


Member Function Documentation

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.

Parameters:
degreeDegree 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).
repeatSet to repeat sequence.
maskAllows a user-defined bit mask for indexes of the shift register to feed back.
seedInitial 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]

The documentation for this class was generated from the following file: