22 #ifndef INCLUDED_GR_CHECK_LFSR_32K_S_H
23 #define INCLUDED_GR_CHECK_LFSR_32K_S_H
55 unsigned int d_history;
61 static const int BUFSIZE = 2048 - 1;
63 unsigned short d_buffer[BUFSIZE];
68 void enter_SEARCHING ();
75 d_history = (d_history << 1) | 0x1;
81 d_history = (d_history << 1) | 0x0;
85 bool right_three_times () {
return (d_history & 0x7) == 0x7; }
86 bool wrong_three_times () {
return (d_history & 0x7) == 0x0; }
88 void log_error (
unsigned short expected,
unsigned short actual);
92 int work (
int noutput_items,
96 long ntotal ()
const {
return d_ntotal; }
97 long nright ()
const {
return d_nright; }