diff options
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/short_to_char.h')
-rw-r--r-- | gr-blocks/include/gnuradio/blocks/short_to_char.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/short_to_char.h b/gr-blocks/include/gnuradio/blocks/short_to_char.h index 7e72ee34a3..7cc58d2826 100644 --- a/gr-blocks/include/gnuradio/blocks/short_to_char.h +++ b/gr-blocks/include/gnuradio/blocks/short_to_char.h @@ -27,37 +27,37 @@ #include <gnuradio/sync_block.h> namespace gr { - namespace blocks { +namespace blocks { + +/*! + * \brief Convert stream of shorts to a stream of chars. + * + * This block strips off the least significant byte from the + * short value. + * + * [0x00ff, 0x0ff0, 0xff00] => [0x00, 0x0f, 0xff] + * + * \ingroup type_converters_blk + * + * \details + * Converts \p vlen length vectors of input short samples to chars, + * dividing each element by 256. + */ +class BLOCKS_API short_to_char : virtual public sync_block +{ +public: + // gr::blocks::short_to_char_ff::sptr + typedef boost::shared_ptr<short_to_char> sptr; /*! - * \brief Convert stream of shorts to a stream of chars. - * - * This block strips off the least significant byte from the - * short value. - * - * [0x00ff, 0x0ff0, 0xff00] => [0x00, 0x0f, 0xff] + * Build a short to char block. * - * \ingroup type_converters_blk - * - * \details - * Converts \p vlen length vectors of input short samples to chars, - * dividing each element by 256. + * \param vlen vector length of data streams. */ - class BLOCKS_API short_to_char : virtual public sync_block - { - public: - // gr::blocks::short_to_char_ff::sptr - typedef boost::shared_ptr<short_to_char> sptr; - - /*! - * Build a short to char block. - * - * \param vlen vector length of data streams. - */ - static sptr make(size_t vlen=1); - }; + static sptr make(size_t vlen = 1); +}; - } /* namespace blocks */ +} /* namespace blocks */ } /* namespace gr */ #endif /* INCLUDED_BLOCKS_SHORT_TO_CHAR_H */ |