diff options
author | Marcus Müller <marcus.mueller@ettus.com> | 2016-08-09 22:50:21 +0200 |
---|---|---|
committer | Marcus Müller <marcus.mueller@ettus.com> | 2016-08-09 22:54:43 +0200 |
commit | 9f8e36509959788c5333fc935a66a1311f05a4d5 (patch) | |
tree | d6922eed992ccde96646106cfe23a2946f07653f /gr-digital/lib/glfsr_source_b_impl.h | |
parent | fc1a6a88483120921936e415aba4d5d1a9b42d96 (diff) |
digital:move GLFSR from 'int' to 'uint32'. Add SWIG interface
Diffstat (limited to 'gr-digital/lib/glfsr_source_b_impl.h')
-rw-r--r-- | gr-digital/lib/glfsr_source_b_impl.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gr-digital/lib/glfsr_source_b_impl.h b/gr-digital/lib/glfsr_source_b_impl.h index a063eb7c0a..ff2b0586c2 100644 --- a/gr-digital/lib/glfsr_source_b_impl.h +++ b/gr-digital/lib/glfsr_source_b_impl.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2007,2012 Free Software Foundation, Inc. + * Copyright 2007,2012,2016 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -35,20 +35,20 @@ namespace gr { glfsr *d_glfsr; bool d_repeat; - unsigned int d_index; - unsigned int d_length; + uint32_t d_index; + uint32_t d_length; public: - glfsr_source_b_impl(int degree, bool repeat=true, - int mask=0, int seed=1); + glfsr_source_b_impl(unsigned int degree, bool repeat=true, + uint32_t mask=0, uint32_t seed=0x1); ~glfsr_source_b_impl(); int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items); - unsigned int period() const { return d_length; } - int mask() const; + uint32_t period() const { return d_length; } + uint32_t mask() const; }; } /* namespace digital */ |