discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] variable type while creating a block


From: Johnathan Corgan
Subject: Re: [Discuss-gnuradio] variable type while creating a block
Date: Tue, 16 Jun 2015 16:18:53 -0700

On Tue, Jun 16, 2015 at 2:17 PM, Marbellys <address@hidden> wrote:
 
If i set the input of my block as a byte, means that the block will handle 8
bits at a time and each item correspond to one bit of that byte?

in[0] is the first bit and so on?


No, this isn't automatic.  You would also have to precede your block with a block like gr::blocks::unpack_k_bits_bb or ::repack_k_bits_bb to generate such a stream from a packed byte format.

--
Johnathan Corgan
Corgan Labs - SDR Training and Development Services
Intro to SDR Class - June 29-30, El Segundo, CA
http://corganlabs.com

reply via email to

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