diff options
Diffstat (limited to 'gr-blocks')
5 files changed, 15 insertions, 5 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/char_to_short.h b/gr-blocks/include/gnuradio/blocks/char_to_short.h index 05880e0735..6f326c8da2 100644 --- a/gr-blocks/include/gnuradio/blocks/char_to_short.h +++ b/gr-blocks/include/gnuradio/blocks/char_to_short.h @@ -30,13 +30,14 @@ namespace gr { namespace blocks { /*! - * \brief Convert stream of chars to a stream of short + * \brief Convert stream of chars to a stream of shorts. * \ingroup type_converters_blk * * \details - * Converts \p vlen length vectors of input char samples to shorts: + * Converts \p vlen length vectors of input char samples to shorts, + * multiplying each element by 256: * - * \li output[0][m:m+vlen] = static_cast<short>(input[0][m:m+vlen]) + * \li output[0][m:m+vlen] = 256 * static_cast<short>(input[0][m:m+vlen]) */ class BLOCKS_API char_to_short : virtual public sync_block { diff --git a/gr-blocks/include/gnuradio/blocks/delay.h b/gr-blocks/include/gnuradio/blocks/delay.h index bae5e40a8e..fc90e22493 100644 --- a/gr-blocks/include/gnuradio/blocks/delay.h +++ b/gr-blocks/include/gnuradio/blocks/delay.h @@ -32,6 +32,9 @@ namespace gr { /*! * \brief delay the input by a certain number of samples * \ingroup misc_blk + * + * Positive delays insert zero items at the beginning of the stream. + * Negative delays discard items from the stream. */ class BLOCKS_API delay : virtual public block { diff --git a/gr-blocks/include/gnuradio/blocks/file_descriptor_sink.h b/gr-blocks/include/gnuradio/blocks/file_descriptor_sink.h index 31ec0cc142..6399aec854 100644 --- a/gr-blocks/include/gnuradio/blocks/file_descriptor_sink.h +++ b/gr-blocks/include/gnuradio/blocks/file_descriptor_sink.h @@ -40,7 +40,8 @@ namespace gr { typedef boost::shared_ptr<file_descriptor_sink> sptr; /*! - * Build a file descriptor sink block. + * Build a file descriptor sink block. The provided file descriptor will + * be closed when the sink is destroyed. * * \param itemsize item size of the incoming data stream. * \param fd file descriptor (as an integer). diff --git a/gr-blocks/include/gnuradio/blocks/file_descriptor_source.h b/gr-blocks/include/gnuradio/blocks/file_descriptor_source.h index 6292b6357b..d78b10a84f 100644 --- a/gr-blocks/include/gnuradio/blocks/file_descriptor_source.h +++ b/gr-blocks/include/gnuradio/blocks/file_descriptor_source.h @@ -46,7 +46,8 @@ namespace gr { typedef boost::shared_ptr<file_descriptor_source> sptr; /*! - * Build a file descriptor source block. + * Build a file descriptor source block. The provided file descriptor will + * be closed when the sink is destroyed. * * \param itemsize item size of the incoming data stream. * \param fd file descriptor (as an integer). diff --git a/gr-blocks/include/gnuradio/blocks/short_to_char.h b/gr-blocks/include/gnuradio/blocks/short_to_char.h index 22a157d341..a80e6dc63d 100644 --- a/gr-blocks/include/gnuradio/blocks/short_to_char.h +++ b/gr-blocks/include/gnuradio/blocks/short_to_char.h @@ -38,6 +38,10 @@ namespace gr { * [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 { |