ofdm mapper: convert metadaata to tags
This commit is contained in:
@@ -138,6 +138,14 @@ int general_work(int noutput, gr_vector_int& ninput_items,
|
|||||||
add_item_tag(0, nitems_written(0), pmt::mp("encoding"),
|
add_item_tag(0, nitems_written(0), pmt::mp("encoding"),
|
||||||
encoding, srcid);
|
encoding, srcid);
|
||||||
|
|
||||||
|
pmt::pmt_t dict_items(pmt::dict_items(pmt::car(msg)));
|
||||||
|
while (!pmt::is_null(dict_items)) {
|
||||||
|
pmt::pmt_t this_item(pmt::car(dict_items));
|
||||||
|
|
||||||
|
add_item_tag(0, nitems_written(0), pmt::car(this_item),
|
||||||
|
pmt::cdr(this_item), srcid);
|
||||||
|
dict_items = pmt::cdr(dict_items);
|
||||||
|
}
|
||||||
|
|
||||||
free(data_bits);
|
free(data_bits);
|
||||||
free(scrambled_data);
|
free(scrambled_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user