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/lib/repack_bits_bb_impl.h | |
parent | d0d286d33d2dd2b1c3f0813a9703f600f692943f (diff) |
blocks: added endianness toggle to repack bits.
Diffstat (limited to 'gr-blocks/lib/repack_bits_bb_impl.h')
-rw-r--r-- | gr-blocks/lib/repack_bits_bb_impl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gr-blocks/lib/repack_bits_bb_impl.h b/gr-blocks/lib/repack_bits_bb_impl.h index ffb8349d35..8c57c74c23 100644 --- a/gr-blocks/lib/repack_bits_bb_impl.h +++ b/gr-blocks/lib/repack_bits_bb_impl.h @@ -37,12 +37,14 @@ namespace gr { int d_in_index; // Current bit of input byte int d_out_index; // Current bit of output byte bool d_align_output; //! true if the output shall be aligned, false if the input shall be aligned + endianness_t d_endianness; protected: int calculate_output_stream_length(const gr_vector_int &ninput_items); public: - repack_bits_bb_impl(int k, int l, const std::string &len_tag_key, bool align_output); + repack_bits_bb_impl(int k, int l, const std::string &len_tag_key, + bool align_output, endianness_t endianness=GR_LSB_FIRST); ~repack_bits_bb_impl(); int work(int noutput_items, @@ -55,4 +57,3 @@ namespace gr { } // namespace gr #endif /* INCLUDED_BLOCKS_REPACK_BITS_BB_IMPL_H */ - |