[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] questions about get_tags_in_range

From: xianda
Subject: [Discuss-gnuradio] questions about get_tags_in_range
Date: Thu, 7 Aug 2014 14:10:35 +0800 (CST)

Hi all:
        I'm reading the source code ofdm_chanest_vcvc_impl.cc.And I don't know this command:
        // Propagate tags
        std::vector<gr::tag_t> tags;
        get_tags_in_range(tags, 0,nitems_read(0), nitems_read(0)+framesize);

       I will try my best to explain my question more clearly.
  1. I read:
      void ofdm_chanest_vcvc_impl::forecast (int noutput_items, gr_vector_int &ninput_items_required)
       ninput_items_required[0] = (noutput_items/d_n_data_syms) * (d_n_data_syms + d_n_sync_syms);
     And I think ninput_items_required[0] = (1/1) * (1 + 2)=3.
     Then nitems_read(0)=3.Is it right?(nitems_read:Return the number of items read on input stream which_input. )
  2. const int framesize = d_n_sync_syms + d_n_data_syms; 
     Then framesize=2+1=3.
  3.Then get_tags_in_range(tags, 0,nitems_read(0), nitems_read(0)+framesize);---->>>get_tags_in_range(tags, 0,3, 6);
     {0 1 2}--->>>blk--->>>{0}
     It don't have 3 4 5 item.Can someone explain it to me?Thank you.
Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]