23 #ifndef INCLUDED_DIGITAL_GLFSR_H 24 #define INCLUDED_DIGITAL_GLFSR_H 45 glfsr(
int mask,
int seed) { d_shift_register = seed; d_mask = mask; }
48 static int glfsr_mask(
int degree);
52 unsigned char bit = d_shift_register & 1;
53 d_shift_register >>= 1;
55 d_shift_register ^= d_mask;
59 int mask()
const {
return d_mask; }
int mask() const
Definition: glfsr.h:59
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:30
glfsr(int mask, int seed)
Definition: glfsr.h:45
Galois Linear Feedback Shift Register using specified polynomial mask.
Definition: glfsr.h:38
Include this header to use the message passing features.
Definition: logger.h:695
unsigned char next_bit()
Definition: glfsr.h:50