GNU Radio Manual and C++ API Reference
3.9.1.0
The Free & Open Software Radio Ecosystem
add_const_ss.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2004,2012,2015 Free Software Foundation, Inc.
4
*
5
* This file is part of GNU Radio
6
*
7
* SPDX-License-Identifier: GPL-3.0-or-later
8
*
9
*/
10
11
#ifndef ADD_CONST_SS
12
#define ADD_CONST_SS
13
14
#include <
gnuradio/blocks/api.h
>
15
#include <
gnuradio/sync_block.h
>
16
17
namespace
gr
{
18
namespace
blocks {
19
20
/*!
21
* \brief output = input + constant
22
* \ingroup math_operators_blk
23
*/
24
class
BLOCKS_API
add_const_ss
:
virtual
public
sync_block
25
{
26
public
:
27
// gr::blocks::add_const_ss::sptr
28
typedef
std::shared_ptr<add_const_ss>
sptr
;
29
30
/*!
31
* \brief Create an instance of add_const_ss
32
* \param k additive constant
33
*/
34
static
sptr
make(
short
k);
35
36
/*!
37
* \brief Return additive constant
38
*/
39
virtual
short
k()
const
= 0;
40
41
/*!
42
* \brief Set additive constant
43
*/
44
virtual
void
set_k(
short
k) = 0;
45
};
46
47
}
// namespace blocks
48
}
// namespace gr
49
50
#endif
/* ADD_CONST_SS */
api.h
gr::blocks::add_const_ss::sptr
std::shared_ptr< add_const_ss > sptr
Definition:
add_const_ss.h:28
BLOCKS_API
#define BLOCKS_API
Definition:
gr-blocks/include/gnuradio/blocks/api.h:18
gr::sync_block
synchronous 1:1 input to output with history
Definition:
sync_block.h:25
sync_block.h
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
gr::blocks::add_const_ss
output = input + constant
Definition:
add_const_ss.h:24
gr-blocks
include
gnuradio
blocks
add_const_ss.h
Generated by
1.8.17