Adding QA code for fir filter with buffer.
[debian/gnuradio] / gnuradio-core / src / lib / general / gr_ofdm_sampler.h
index 9f72fbbb63c02f79e1e2030ff8ffd57882b44946..d059636edd9097ae06a6dab373cf268d4ddfbc53 100644 (file)
@@ -29,21 +29,29 @@ class gr_ofdm_sampler;
 typedef boost::shared_ptr<gr_ofdm_sampler> gr_ofdm_sampler_sptr;
 
 gr_ofdm_sampler_sptr gr_make_ofdm_sampler (unsigned int fft_length, 
-                                          unsigned int symbol_length);
+                                          unsigned int symbol_length,
+                                          unsigned int timeout=1000);
 
 /*!
- * \brief does the rest of the OFDM stuff (fixme)
+ * \brief does the rest of the OFDM stuff
+ * \ingroup ofdm_blk
  */
-
 class gr_ofdm_sampler : public gr_block
 {
   friend gr_ofdm_sampler_sptr gr_make_ofdm_sampler (unsigned int fft_length, 
-                                                   unsigned int symbol_length);
+                                                   unsigned int symbol_length,
+                                                   unsigned int timeout);
 
   gr_ofdm_sampler (unsigned int fft_length, 
-                  unsigned int symbol_length);
+                  unsigned int symbol_length,
+                  unsigned int timeout);
 
  private:
+  enum state_t {STATE_NO_SIG, STATE_PREAMBLE, STATE_FRAME};
+
+  state_t d_state;
+  unsigned int d_timeout_max;
+  unsigned int d_timeout;
   unsigned int d_fft_length;
   unsigned int d_symbol_length;