On 09/19/2012 01:11 AM, Jose Torres Diaz wrote:
> Hi,
> 
> I'm trying to use "message passing" technique in order to create a block
> that generates 29 Octets. Currently, I'm using a block that generates 29
> Octets and then use tag streaming. In the .cc file, IO signature looks like:
> 
> gr_sync_block ("st1_pktsrc_dummy_b",
>            gr_make_io_signature (0, 0, 0),
>            gr_make_io_signature (MIN_OUT, MAX_OUT, sizeof (unsigned char)))
> 
> While, the stream tags looks like this:
> 
> add_item_tag(0, tag_pos,
>              d_burst_start_key,
>              pmt_sob,
>              d_my_unique_id)
> 
> Now, I want to change this approach to message passing as it is explained
> here: https://github.com/guruofquality/grextras/wiki/Blocks-Coding-Guide.
> So, I changed the lines indicated above, for the following:
> 
>  : gr_sync_block ("test_temporal",
>                    gr_make_io_signature(0, 0, 0),
>                    gr_make_io_signature(0, 0, 0),
>                    msg_signature(false, 1))
> 

Careful here, check the coding guide,
you need to  #include <gnuradio/block.h>
and inherit from gnuradio::block

-josh

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

Reply via email to