GNU Radio 3.6.4.1 C++ API
gr_block_gateway.h File Reference
#include <gr_core_api.h>
#include <gr_block.h>
#include <gr_feval.h>

Go to the source code of this file.

Classes

struct  gr_block_gw_message_type
 
class  gr_block_gateway
 

Enumerations

enum  gr_block_gw_work_type { GR_BLOCK_GW_WORK_GENERAL, GR_BLOCK_GW_WORK_SYNC, GR_BLOCK_GW_WORK_DECIM, GR_BLOCK_GW_WORK_INTERP }
 

Functions

GR_CORE_API boost::shared_ptr
< gr_block_gateway
gr_make_block_gateway (gr_feval_ll *handler, const std::string &name, gr_io_signature_sptr in_sig, gr_io_signature_sptr out_sig, const gr_block_gw_work_type work_type, const unsigned factor)
 

Enumeration Type Documentation

The work type enum tells the gateway what kind of block to implement. The choices are familiar gnuradio block overloads (sync, decim, interp).

Enumerator
GR_BLOCK_GW_WORK_GENERAL 
GR_BLOCK_GW_WORK_SYNC 
GR_BLOCK_GW_WORK_DECIM 
GR_BLOCK_GW_WORK_INTERP 

Function Documentation

GR_CORE_API boost::shared_ptr<gr_block_gateway> gr_make_block_gateway ( gr_feval_ll handler,
const std::string &  name,
gr_io_signature_sptr  in_sig,
gr_io_signature_sptr  out_sig,
const gr_block_gw_work_type  work_type,
const unsigned  factor 
)

Make a new gateway block.

Parameters
handlerthe swig director object with callback
namethe name of the block (Ex: "Shirley")
in_sigthe input signature for this block
out_sigthe output signature for this block
work_typethe type of block overload to implement
factorthe decimation or interpolation factor
Returns
a new gateway block