summaryrefslogtreecommitdiff
path: root/gr-digital/lib/header_payload_demux_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* digital: header_payload_demux don't sort; get_tags_in_range is already sortedMarcus Müller2021-07-191-3/+2
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* Replace all calls to `get_initial_sptr` with `make_block_sptr`Thomas Habets2020-07-301-11/+11
| | | | | | | | | | | | | | First batch of changes: ``` find […] -print0 | xargs -0 sed -i -r '/get_initial_sptr/{:nxt N;/;/!b nxt;s/get_initial_sptr\(\s*new ([^(]+)(.*)\)\)/make_block_sptr<\1>\2)/}' ``` Then: * Back out `sptr_magic.h` edits * Change some `friend` clauses * clang-format the whole thing * Update checksums in the pybind11 bindings files
* msg_handler: Use lambdas in most componentsJohannes Demel2020-06-041-3/+2
| | | | | With this commit, all components except gr-qtgui use lambdas instead of `boost::bind` to register msg handlers.
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-487/+448
|
* Convert set_relative_rate(double) to the new integer or receiprocal callAndy Walls2018-08-231-2/+3
| | | | | | | | This is a mass conversion of existing set_relative_rate(double) calls to either the set_relative_rate(uint64_t, uint64_t) or set_inverse_relative_rate(double) calls, where ever easily possible and appropriate, to improve tag propagation precision for fixed relative rates.
* blocks: avoid potential static initialization order fiascoMarcus Müller2018-03-301-3/+7
|
* blocks: remove unnecessary call to pmt::intern at runtimeMarcus Müller2018-02-231-4/+4
| | | | | | | | | | | | | | typical usage: message_port_pub(pmt::mp("out_port"), …) which is bad, as it implies hashing of a string, allocation of memory, deallocation, finding the hashed string in the table of interned strings and returning a unique pointer (which for reasons of PMT awesomeness isn't even unique) to the interned port name. Replacing all these port name ad hoc ::mp() calls by reusing one, private, port name member.
* removed redundant unsigned int < 0 check.Marcus Müller2017-06-241-3/+0
|
* digital: Major update to header/payload demuxer (HPD)Martin Braun2016-04-301-271/+399
| | | | | | | | | | | - Added padding feature (trigger/tag can now be off by some items) - Payload offset can also be specified - Fixed some index counting bugs - More and better unit tests, cleaned up the unit test file - Cleanups: - Consistent whitespace - Consistent use of size_t and other types - Used more enums where it increases readability
* Fix an error in which the wrong header is allowed throughRichard C. Bell2015-06-141-4/+10
| | | | | | | | | | | | | | Added break statements to every case. This fixed issues we were having with this block in which the wrong header would be allowed through, sometimes seconds after start, sometimes hours after start, depending on the HPD settings used. With the break statements, general_work must be called each time a new state begins, which removes any sample offset issues that could be happening in the original fall through method. I suspect the original methods issue is caused by the check_items_available function, though I have not confirmed this. I've tested this fix against the current built-in block implementation in my own custom flowgraph, and in the rx_ofdm.grc example. The fix works in both cases.
* digital: Removed all references to remove_item_tag()Martin Braun2014-09-211-34/+37
|
* digital: HPD consume-behaviour adapted to allow for trigger jitterMartin Braun2014-01-301-2/+3
|
* digital: HPD now supports time- and other special tags, can mark rx-time of ↵Martin Braun2014-01-301-21/+133
| | | | packets
* digital: HPD fixes (burst ID tags are no more propagated; buffer sizes are ↵Martin Braun2013-11-191-1/+5
| | | | halved to est. max output size)
* digital: HPD: fixed tag propagation, minimized calls to work()Martin Braun2013-06-141-107/+139
|
* digital: HPD now uses a registered message handlerMartin Braun2013-06-141-42/+53
|
* Merge branch 'maint-ofdm' into master-ofdmMartin Braun2013-06-051-51/+73
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gr-digital/include/CMakeLists.txt gr-digital/include/digital/CMakeLists.txt gr-digital/lib/CMakeLists.txt gr-digital/lib/header_payload_demux_impl.cc gr-digital/lib/ofdm_chanest_vcvc_impl.cc gr-digital/lib/ofdm_chanest_vcvc_impl.h gr-digital/python/ofdm_txrx.py gr-digital/python/qa_ofdm_chanest_vcvc.py gr-digital/swig/digital_swig.i
| * digital: crude hack to prevent the HPD from crashing flow graphsMartin Braun2013-06-041-1/+8
| |
| * digital: bugfixes to ofdm_chanest, HPD and frame EQMartin Braun2013-05-301-50/+65
| |
* | Merge branch 'master' into nextJohnathan Corgan2013-05-221-0/+1
|\|
| * digital: context yield for header_payload_demuxJosh Blum2013-05-221-0/+1
| |
* | Merge branch 'next' into runtime_pimplJohnathan Corgan2013-05-131-1/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gr-blocks/swig/blocks_swig0.i gr-digital/lib/ofdm_chanest_vcvc_impl.cc gr-digital/lib/ofdm_frame_equalizer_vcvc_impl.cc gr-digital/lib/ofdm_frame_equalizer_vcvc_impl.h gr-digital/lib/ofdm_sync_sc_cfb_impl.cc gr-digital/lib/packet_header_default.cc gr-digital/lib/packet_headerparser_b_impl.cc
| * | Merge branch 'master-ofdm', fixed conflictsMartin Braun2013-05-121-1/+5
| |\|
| | * digital: OFDM passes all testsMartin Braun2013-05-111-1/+5
| | |
| | * Squash/rebased martin/ofdm-master onto trial merge branchMartin Braun2013-03-161-0/+292
| | | | | | | | | | Conflicts: gr-blocks/include/blocks/CMakeLists.txt
* | runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-6/+6
|/
* Merge branch 'ofdm-master' into ofdm-nextJohnathan Corgan2013-03-151-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | Added fixups for next branch changes Conflicts: CMakeLists.txt gnuradio-core/src/lib/io/gr_message_sink.cc gnuradio-core/src/lib/io/gr_message_sink.h gnuradio-core/src/lib/io/gr_message_sink.i gnuradio-core/src/lib/io/gr_message_source.cc gnuradio-core/src/lib/io/gr_message_source.h gnuradio-core/src/lib/io/gr_message_source.i gr-blocks/CMakeLists.txt gr-digital/CMakeLists.txt gr-digital/grc/digital_block_tree.xml gr-digital/include/digital/CMakeLists.txt gr-digital/include/digital_ofdm_cyclic_prefixer.h gr-digital/lib/CMakeLists.txt gr-digital/lib/digital_ofdm_cyclic_prefixer.cc gr-digital/lib/ofdm_cyclic_prefixer_impl.h gr-digital/python/CMakeLists.txt gr-digital/swig/CMakeLists.txt gr-digital/swig/digital_swig.i
* Squash/rebased martin/ofdm-master onto trial merge branchMartin Braun2013-03-151-0/+292
Conflicts: gr-blocks/include/blocks/CMakeLists.txt