22 #ifndef INCLUDED_GR_CHECK_COUNTING_S_H
23 #define INCLUDED_GR_CHECK_COUNTING_S_H
50 unsigned int d_history;
51 unsigned short d_current_count;
52 unsigned int d_current_count_32bit;
60 void enter_SEARCHING ();
64 d_history = (d_history << 1) | 0x1;
68 d_history = (d_history << 1) | 0x0;
72 bool right_three_times () {
return (d_history & 0x7) == 0x7; }
73 bool wrong_three_times () {
return (d_history & 0x7) == 0x0; }
75 void log_error (
unsigned short expected,
unsigned short actual);
76 void log_error_32bit (
unsigned int expected,
unsigned int actual);
78 int check_32bit (
int noutput_items,
unsigned short * in);
79 int check_16bit (
int noutput_items,
unsigned short * in);
83 int work (
int noutput_items,
84 gr_vector_const_void_star &input_items,
85 gr_vector_void_star &output_items);
GR_CORE_API gr_check_counting_s_sptr gr_make_check_counting_s(bool do_32bit=false)
Definition: gr_sync_block.h:27
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
#define GR_CORE_API
Definition: gr_core_api.h:30
virtual 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 ...
sink that checks if its input stream consists of a counting sequence.
Definition: gr_check_counting_s.h:40