[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] digital_ofdm_cyclic_prefixer::work
From: |
Martin Braun (CEL) |
Subject: |
Re: [Discuss-gnuradio] digital_ofdm_cyclic_prefixer::work |
Date: |
Sat, 29 Jun 2013 19:03:24 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sat, Jun 29, 2013 at 01:10:31PM +0200, Stefano wrote:
> >it looks like the block inherits from gr_tagged_stream_block which
> >will will call a blocks work function with the exact number of
> >samples for one PDU with a known size in general_work and will
> >call consume for you afterwards.
For the record: No work() function should *ever* call consume,
regardless of its type (currently, that would be either gr_sync_block,
gr_sync_decimator, gr_sync_interpolator and gr_tagged_stream_block).
Only call consume() or consume_each() from general_work().
There's one exception: gr_tagged_stream_blocks may fall back to gr_block
behaviour. The cyclic prefixer you mention is such a case, because it is
a modification of an existing block, and provides gr_block style
behaviour for backward compatibility. See:
http://gnuradio.org/doc/doxygen/page_tagged_stream_blocks.html
MB
--
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)
Dipl.-Ing. Martin Braun
Research Associate
Kaiserstraße 12
Building 05.01
76131 Karlsruhe
Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu
KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association
pgpUoaPqD2ETv.pgp
Description: PGP signature