[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] gr_block::set_history()
From: |
cjpatton |
Subject: |
[Discuss-gnuradio] gr_block::set_history() |
Date: |
Thu, 20 Sep 2012 14:59:01 -0700 (PDT) |
I have a general work function for which I will use GNU Radio's history
functionality. In the block's constructor, I call set_history( m ). I cast
the input buffer in the standard way:
const float *in = (const float *) input_items[0];
My question is wheere in[0] refers to in the buffer. It would make sense to
me that noutput_items is the number of new items for the block to consume
and ninput_items[0] refers to the total number of data in the buffer. So,
in[noutput_items-1] is the last element of the array, in[0] is the start of
the new items, and the in[-m] refers to the beginning of the history block.
Thus, ninput_items[0] is greater than or equal to m + noutput_items.
I don't know if this assumption is true and would be pleased if someone knew
how this works. The GNU Radio API is somewhat vague in this respect. Thanks
in advance!
--
View this message in context:
http://gnuradio.4.n7.nabble.com/gr-block-set-history-tp37687.html
Sent from the GnuRadio mailing list archive at Nabble.com.
- [Discuss-gnuradio] gr_block::set_history(),
cjpatton <=
- Re: [Discuss-gnuradio] gr_block::set_history(), Kyle Zhou, 2012/09/20
- Re: [Discuss-gnuradio] gr_block::set_history(), Tom Rondeau, 2012/09/21
- Re: [Discuss-gnuradio] gr_block::set_history(), cjpatton, 2012/09/21
- Re: [Discuss-gnuradio] gr_block::set_history(), Tom Rondeau, 2012/09/21
- Re: [Discuss-gnuradio] gr_block::set_history(), cjpatton, 2012/09/21
- Re: [Discuss-gnuradio] gr_block::set_history(), Tom Rondeau, 2012/09/21
- Re: [Discuss-gnuradio] gr_block::set_history(), cjpatton, 2012/09/24