discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] In rx_streaming_samples.cc, why use host_items f


From: Douglas Geiger
Subject: Re: [Discuss-gnuradio] In rx_streaming_samples.cc, why use host_items for storing samples?
Date: Fri, 11 Sep 2009 08:50:58 -0400

Hanwen,
 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 copiers.cc 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
needed).
 Doug

On Fri, Sep 11, 2009 at 6:51 AM, hanwen <address@hidden> wrote:
> Hi Eric,
>
> I read the rx_streaming_samples.cc that in opeartor() of file_writer_16sc
> 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?
>
> Hanwen
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>



-- 
Doug Geiger
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]