Hello,

During my studies in building C++ blocks I came up with the need of one block 
which needs two input signatures. The input should consist of two inputs: the 
first one a vector of pkt_len*sizeof(float) and the second one 
sync_word_len*sizeof(float).

pkt_len and sync_word_len are unsigned integers.

In the tutorials I have read that for different type or size io signatures the 
way to proceed would be:


std::vector<int> inp_sizes;
input_sizes.push_back(pkt_len*sizeof(float));         ---> Defined before and 
outside the private constructor
input_sizes.push_back(sync_word_len*sizeof(float));

gr_sync_block("my block", gr_make_io_signaturev(2, 2, input_sizes), 
gr_make_io_signature(1, 1, sizeof(float)))

But in this case, pkt_len and sync_word_len are input parameters and hence they 
are defined only in the constructor body.

My question is, is there any way to tackle this? Like, any way to be able to 
define different size for input signatures, where the size of the vector is 
determined by input parameters?

Thanks before hand.
Best Rgeards,

Gabriele Galiero
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to