[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] MSB
From: |
Davide Anastasia |
Subject: |
Re: [Discuss-gnuradio] MSB |
Date: |
Fri, 16 Mar 2007 13:26:08 +0100 |
Il giorno gio, 15/03/2007 alle 12.17 -0700, Eric Blossom ha scritto:
> I think you'll find it easier to do the unpacking in a separate block
> downstream from the usrp1_source_s. Modifying usrp1_source* to handle
> samples smaller than 1 byte is going to take quite a bit of work.
> Part of the problem is that the code is written in terms of functions
> such as sizeof_basic_sample() which returns a size in bytes. In your
> case, your basic sample is smaller than a byte. The current code
> doesn't know how to deal with that.
I'm think about this question since I turn on my PC today. :)
Ok, I receive from USRP a stream of samples. They are raw, not packed.
So, if I use a 1 bit quantization, I have 8 samples in a byte; with 2
bit, 4 samples... and so on! But any module in GNU radio uses only char,
short, gr_complex (std::complex, is the same?). If I change
usrp1_source* to return always * samples, I reach my purpose. And then,
after usrp1_source*, I can use every module in the library I need.
What's my fault(s) in this reasoning?
--
Davide Anastasia
web: http://www.davideanastasia.com/
email: address@hidden
- [Discuss-gnuradio] MSB, Davide Anastasia, 2007/03/15
- Re: [Discuss-gnuradio] MSB, Eric Blossom, 2007/03/15
- Re: [Discuss-gnuradio] MSB, Davide Anastasia, 2007/03/15
- Re: [Discuss-gnuradio] MSB, Eric Blossom, 2007/03/15
- Re: [Discuss-gnuradio] MSB, Davide Anastasia, 2007/03/15
- Re: [Discuss-gnuradio] MSB, Eric Blossom, 2007/03/15
- Re: [Discuss-gnuradio] MSB, Davide Anastasia, 2007/03/16
- Re: [Discuss-gnuradio] MSB,
Davide Anastasia <=
- Re: [Discuss-gnuradio] MSB, Eric Blossom, 2007/03/16
- Re: [Discuss-gnuradio] MSB, Davide Anastasia, 2007/03/19
- Re: [Discuss-gnuradio] MSB, Matt Ettus, 2007/03/19
- Re: [Discuss-gnuradio] MSB, Davide Anastasia, 2007/03/20
- Re: [Discuss-gnuradio] MSB, Davide Anastasia, 2007/03/22
- Re: [Discuss-gnuradio] MSB, Davide Anastasia, 2007/03/23
- [Discuss-gnuradio] Sampling rate of USRP board, eenrti, 2007/03/26
- Re: [Discuss-gnuradio] Sampling rate of USRP board, Hans Glitsch, 2007/03/26
- [Discuss-gnuradio] Intrerleave output from usrp_rx_cfile.py, eenrti, 2007/03/29
- [Discuss-gnuradio] Asking info about the Interleaving of samples, eenrti, 2007/03/29