22 #ifndef INCLUDED_GR_CHECK_LFSR_32K_S_H
23 #define INCLUDED_GR_CHECK_LFSR_32K_S_H
54 unsigned int d_history;
60 static const int BUFSIZE = 2048 - 1;
62 unsigned short d_buffer[BUFSIZE];
67 void enter_SEARCHING ();
74 d_history = (d_history << 1) | 0x1;
80 d_history = (d_history << 1) | 0x0;
84 bool right_three_times () {
return (d_history & 0x7) == 0x7; }
85 bool wrong_three_times () {
return (d_history & 0x7) == 0x0; }
87 void log_error (
unsigned short expected,
unsigned short actual);
91 int work (
int noutput_items,
95 long ntotal ()
const {
return d_ntotal; }
96 long nright ()
const {
return d_nright; }