Add Const: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
m (add clarification)
No edit summary
Line 17: Line 17:


; C++ files
; C++ files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_bb_impl.cc Byte I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_cc_impl.cc Complex I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_ff_impl.cc Float I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_ii_impl.cc Int I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_ss_impl.cc Short I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_v_impl.cc Vector I/O]


; Header files
; Header files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_bb_impl.h Byte I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_cc_impl.h Complex I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_ff_impl.h Float I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_ii_impl.h Int I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_ss_impl.h Short I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/add_const_v_impl.h Vector I/O]


; Public header files
; Public header files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/add_const_bb.h Byte I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/add_const_cc.h Complex I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/add_const_ff.h Float I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/add_const_ii.h Int I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/add_const_ss.h Short I/O]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/include/gnuradio/blocks/add_const_v.h Vector I/O]


; Block definition
; Block definition
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/grc/blocks_add_const_vxx.block.yml]

Revision as of 17:04, 29 October 2019

Adds a constant value to each item that passes though. output[m] = input[m] + constant vector.

Parameters

(R): Run-time adjustable

Constant (R)
The entered value must be of the same type as the input / output ports (i.e. complex, float, etc.).

Example Flowgraph

This flowgraph shows the Add Const block adding a -1.0 to the stream.

Complex to Mag.png

Source Files

C++ files
Byte I/O
Complex I/O
Float I/O
Int I/O
Short I/O
Vector I/O
Header files
Byte I/O
Complex I/O
Float I/O
Int I/O
Short I/O
Vector I/O
Public header files
Byte I/O
Complex I/O
Float I/O
Int I/O
Short I/O
Vector I/O
Block definition
[1]