diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-12-29 13:07:03 -0500 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-12-29 13:07:03 -0500 |
commit | ccebbe0a028158df250aae02c1dd893dd1551dda (patch) | |
tree | 7fef8be51ce8daea9a27504f8bc9d9396cac4208 /gr-blocks/include/gnuradio/blocks/repack_bits_bb.h | |
parent | d0d286d33d2dd2b1c3f0813a9703f600f692943f (diff) |
blocks: added endianness toggle to repack bits.
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/repack_bits_bb.h')
-rw-r--r-- | gr-blocks/include/gnuradio/blocks/repack_bits_bb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/repack_bits_bb.h b/gr-blocks/include/gnuradio/blocks/repack_bits_bb.h index e094e6815a..83bd771e0b 100644 --- a/gr-blocks/include/gnuradio/blocks/repack_bits_bb.h +++ b/gr-blocks/include/gnuradio/blocks/repack_bits_bb.h @@ -25,6 +25,7 @@ #include <gnuradio/blocks/api.h> #include <gnuradio/tagged_stream_block.h> +#include <gnuradio/endianness.h> namespace gr { namespace blocks { @@ -75,12 +76,13 @@ namespace gr { * \param tsb_tag_key If not empty, this is the key for the length tag. * \param align_output If tsb_tag_key is given, this controls if the input * or the output is aligned. + * \param endianness The endianness of the output data stream (LSB or MSB). */ - static sptr make(int k, int l=8, const std::string &tsb_tag_key="", bool align_output=false); + static sptr make(int k, int l=8, const std::string &tsb_tag_key="", + bool align_output=false, endianness_t endianness=GR_LSB_FIRST); }; } // namespace blocks } // namespace gr #endif /* INCLUDED_BLOCKS_REPACK_BITS_BB_H */ - |