discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] skiphead block with reset


From: Michael Berman
Subject: Re: [Discuss-gnuradio] skiphead block with reset
Date: Tue, 28 Oct 2014 11:12:45 -0700

Taking a quick look at a branch of that hash tag, the Reset function simply sets d_nitems = 0.  There are 4 helper functions within the Skip Head block of old that are not in the current one; namely setting the number of items to skip, checking how many items are to be skipped, checking how many items have currently been skipped, and resetting the block.  The code below is from the hash tag given, and should be trivial to implement into the current block (the variable names are even still the same).

void
gr_skiphead::set_nitems_to_skip(uint64_t nitems_to_skip)
{
  d_nitems_to_skip = nitems_to_skip;
  reset();
}

uint64_t
gr_skiphead::nitems_to_skip() const
{
  return d_nitems_to_skip;
}

uint64_t
gr_skiphead::nitems_skiped() const
{
  return d_nitems;
}

void
gr_skiphead::reset()
{
  d_nitems = 0;
}

Michael Berman

On Tue, Oct 28, 2014 at 10:59 AM, Martin Braun <address@hidden> wrote:
Doug,

that commit is in master. Note that it's old, and committed *before* the
3.7 API change, so the changes are moved to the corresponding new block
in gr-blocks.

M

On 10/28/2014 06:54 PM, Anderson, Douglas J. wrote:
> Hi all,
>
> I was looking into the possibility of adding a reset ability (ala the
> head block) to skiphead.
>
> In my search to find out if it had already been done, I came up with
> this commit message:
>
> commit 9aabbe0601919c9fecd46e4e418e5c94183fca45
> Author: Tom Rondeau <address@hidden>
> Date:   Thu Jul 5 22:01:45 2012 -0400
>
>     core: adding ability to change and reset skiphead parameters.
>
> But I couldn't find that capability or commit in the current github code.
>
> Does anyone have a hint at where I could find that modification or,
> barring that, any hints on how to accomplish it myself? I'm hoping it
> will be as straightforward as pull the reset bits from the head block.
>
> -Doug
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

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