|
GNU Radio 3.6.5 C++ API
|
#include <ofdm_serializer_vcc_impl.h>

Public Member Functions | |
| ofdm_serializer_vcc_impl (int fft_len, const std::vector< std::vector< int > > &occupied_carriers, const std::string &len_tag_key, const std::string &packet_len_tag_key, int symbols_skipped, const std::string &carr_offset_key, bool input_is_shifted) | |
| ~ofdm_serializer_vcc_impl () | |
| int | work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
| Just like gr_block::general_work, but makes sure the input is valid. More... | |
Protected Member Functions | |
| int | calculate_output_stream_length (const gr_vector_int &ninput_items) |
| void | update_length_tags (int n_produced, int n_ports) |
| Set the new length tags on the output stream. More... | |
Additional Inherited Members | |
Public Types inherited from gr::digital::ofdm_serializer_vcc | |
| typedef boost::shared_ptr < ofdm_serializer_vcc > | sptr |
Static Public Member Functions inherited from gr::digital::ofdm_serializer_vcc | |
| static sptr | make (int fft_len, const std::vector< std::vector< int > > &occupied_carriers, const std::string &len_tag_key="frame_len", const std::string &packet_len_tag_key="", int symbols_skipped=0, const std::string &carr_offset_key="", bool input_is_shifted=true) |
| static sptr | make (const digital_ofdm_carrier_allocator_cvc_sptr &allocator, const std::string &packet_len_tag_key="", int symbols_skipped=0, const std::string &carr_offset_key="", bool input_is_shifted=true) |
Protected Types inherited from gr_basic_block | |
| enum | vcolor { WHITE, GREY, BLACK } |
Protected Attributes inherited from gr_tagged_stream_block | |
| std::string | d_length_tag_key_str |
| gr::digital::ofdm_serializer_vcc_impl::ofdm_serializer_vcc_impl | ( | int | fft_len, |
| const std::vector< std::vector< int > > & | occupied_carriers, | ||
| const std::string & | len_tag_key, | ||
| const std::string & | packet_len_tag_key, | ||
| int | symbols_skipped, | ||
| const std::string & | carr_offset_key, | ||
| bool | input_is_shifted | ||
| ) |
| gr::digital::ofdm_serializer_vcc_impl::~ofdm_serializer_vcc_impl | ( | ) |
|
protectedvirtual |
Calculate the number of scalar complex symbols given a number of OFDM symbols.
Reimplemented from gr_tagged_stream_block.
|
protectedvirtual |
Set the new length tags on the output stream.
Default behaviour: Set a tag with key length_tag_key and the number of produced items on every output port.
For anything else, override this.
| n_produced | Length of the new PDU |
| n_ports | Number of output ports |
Reimplemented from gr_tagged_stream_block.
|
virtual |
Just like gr_block::general_work, but makes sure the input is valid.
The user must override work to define the signal processing code. Check the documentation for general_work() to see what happens here.
Like gr_sync_block, this calls consume() for you (it consumes ninput_items[i] items from the i-th port).
A note on tag propagation: The PDU length tags are handled by other functions, but all other tags are handled just as in any other gr_block. So, most likely, you either set the tag propagation policy to TPP_DONT and handle the tag propagation manually, or you propagate tags through the scheduler and don't do anything here.
| noutput_items | The size of the writable output buffer |
| ninput_items | The exact size of the items on every input for this particular PDU. These will be consumed if a length tag key is provided! |
| input_items | See gr_block |
| output_items | See gr_block |
Implements gr_tagged_stream_block.