GNU Radio 3.6.5 C++ API
|
Convert stream of floats to a stream of shorts. More...
#include <float_to_short.h>
Public Types | |
typedef boost::shared_ptr < float_to_short > | sptr |
Public Member Functions | |
virtual float | scale () const =0 |
virtual void | set_scale (float scale)=0 |
Static Public Member Functions | |
static sptr | make (size_t vlen=1, float scale=1.0) |
Convert stream of floats to a stream of shorts.
static sptr gr::blocks::float_to_short::make | ( | size_t | vlen = 1 , |
float | scale = 1.0 |
||
) | [static] |
Build a float to short block.
vlen | vector length of data streams. |
scale | a scalar multiplier to change the output signal scale. |
virtual float gr::blocks::float_to_short::scale | ( | ) | const [pure virtual] |
Get the scalar multiplier value.
Implemented in gr::blocks::float_to_short_impl.
virtual void gr::blocks::float_to_short::set_scale | ( | float | scale | ) | [pure virtual] |
Set the scalar multiplier value.
Implemented in gr::blocks::float_to_short_impl.