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;