|
GNU Radio 3.6.2 C++ API
|
Galois LFSR pseudo-random source. More...
#include <digital_glfsr_source_b.h>
Public Member Functions | |
| ~digital_glfsr_source_b () | |
| int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
| just like gr_block::general_work, only this arranges to call consume_each for you | |
| unsigned int | period () const |
| int | mask () const |
Friends | |
| DIGITAL_API digital_glfsr_source_b_sptr | digital_make_glfsr_source_b (int degree, bool repeat, int mask, int seed) |
Galois LFSR pseudo-random source.
| 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. |
| digital_glfsr_source_b::~digital_glfsr_source_b | ( | ) |
| int digital_glfsr_source_b::mask | ( | ) | const |
| unsigned int digital_glfsr_source_b::period | ( | ) | const [inline] |
| int digital_glfsr_source_b::work | ( | int | noutput_items, |
| gr_vector_const_void_star & | input_items, | ||
| gr_vector_void_star & | output_items | ||
| ) | [virtual] |
just like gr_block::general_work, only this arranges to call consume_each for you
The user must override work to define the signal processing code
Implements gr_sync_block.
| DIGITAL_API digital_glfsr_source_b_sptr digital_make_glfsr_source_b | ( | int | degree, |
| bool | repeat, | ||
| int | mask, | ||
| int | seed | ||
| ) | [friend] |