23 #ifndef INCLUDED_GR_CHECK_LFSR_32K_S_IMPL_H
24 #define INCLUDED_GR_CHECK_LFSR_32K_S_IMPL_H
44 unsigned int d_history;
50 static const int BUFSIZE = 2048 - 1;
52 unsigned short d_buffer[BUFSIZE];
54 void enter_SEARCHING();
62 d_history = (d_history << 1) | 0x1;
69 d_history = (d_history << 1) | 0x0;
73 bool right_three_times() {
return (d_history & 0x7) == 0x7; }
74 bool wrong_three_times() {
return (d_history & 0x7) == 0x0; }
76 void log_error(
unsigned short expected,
unsigned short actual);
82 int work(
int noutput_items,
86 long ntotal()
const {
return d_ntotal; }
87 long nright()
const {
return d_nright; }