fun_ofdm
1.0
802.11a Physical Layer for USRP
|
The block class template. More...
#include <block.h>
Public Member Functions | |
block (std::string block_name) | |
constructor More... | |
virtual void | work ()=0 |
The main work function. More... | |
![]() | |
block_base (std::string block_name) | |
block_base constructor More... | |
Public Attributes | |
std::vector< I > | input_buffer |
input_buffer contains new input items to be consumed More... | |
std::vector< O > | output_buffer |
output_buffer is where the output items of the block should be placed More... | |
![]() | |
std::string | name |
the public name of the block More... | |
The block class template.
This class is a template class for the blocks in the receiver chain. This class contains the input and output buffers
|
inline |
|
pure virtual |
The main work function.
This function is purely virtual. This function must consume input_buffer and fill output_buffer. In doing so it should be sure to resize the output_buffer accordingly and carryover any items from the input_buffer that it might need on its next call.
Implements fun::block_base.
Implemented in fun::frame_decoder, fun::frame_detector, fun::channel_est, fun::timing_sync, fun::fft_symbols, and fun::phase_tracker.
std::vector<I> fun::block< I, O >::input_buffer |
input_buffer contains new input items to be consumed
Contains new input items of type I. There is no guarantee on the number of items passed to the input_buffer for each call to work except that it must be less than BUFFER_MAX.
Definition at line 103 of file block.h.
Referenced by fun::block< tagged_vector< 64 >, tagged_vector< 48 > >::block(), and fun::receiver_chain::process_samples().
std::vector<O> fun::block< I, O >::output_buffer |
output_buffer is where the output items of the block should be placed
There is no restriction on the number of output items a block must produce on each call except that it must be less than BUFFER_MAX.
Definition at line 111 of file block.h.
Referenced by fun::block< tagged_vector< 64 >, tagged_vector< 48 > >::block(), and fun::receiver_chain::process_samples().