In, why use host_items for storing samples?

Hi Eric,

I read the that in opeartor() of
and file_writer_32fc, samples are copied to an array host_items and then
write to file from this array. But why not just write to file from the
*items pointer?


Because data coming across from the USRP2 is in network order
(big-endian), it must be converted to the proper endianness for the
host. If you look in you’ll see the
copy_u2_16sc_to_host_16sc and copy_u2_16sc_to_host_32fc use the ntoh
(network to host) functions to ensure the conversion is done (if

On Fri, Sep 11, 2009 at 6:51 AM, hanwen [email protected] wrote:

Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page

Doug G.
[email protected]