GNU Radio Manual and C++ API Reference
3.9.1.0
The Free & Open Software Radio Ecosystem
mute.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2004,2013,2018 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
12
#ifndef MUTE_H
13
#define MUTE_H
14
15
#include <
gnuradio/blocks/api.h
>
16
#include <
gnuradio/sync_block.h
>
17
#include <cstdint>
18
19
namespace
gr
{
20
namespace
blocks {
21
22
/*!
23
* \brief output = input or zero if muted.
24
* \ingroup level_controllers_blk
25
*/
26
template
<
class
T>
27
class
BLOCKS_API
mute_blk
:
virtual
public
sync_block
28
{
29
public
:
30
typedef
std::shared_ptr<mute_blk<T>>
sptr
;
31
32
static
sptr
make(
bool
mute =
false
);
33
34
virtual
bool
mute()
const
= 0;
35
virtual
void
set_mute(
bool
mute =
false
) = 0;
36
};
37
38
typedef
mute_blk<std::int16_t>
mute_ss
;
39
typedef
mute_blk<std::int32_t>
mute_ii
;
40
typedef
mute_blk<float>
mute_ff
;
41
typedef
mute_blk<gr_complex>
mute_cc
;
42
}
/* namespace blocks */
43
}
/* namespace gr */
44
45
#endif
/* MUTE_H */
api.h
gr::blocks::mute_ff
mute_blk< float > mute_ff
Definition:
mute.h:40
gr::blocks::mute_ss
mute_blk< std::int16_t > mute_ss
Definition:
mute.h:38
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
gr::blocks::mute_blk::sptr
std::shared_ptr< mute_blk< T > > sptr
Definition:
mute.h:30
sync_block.h
gr::blocks::mute_blk
output = input or zero if muted.
Definition:
mute.h:27
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
gr::blocks::mute_ii
mute_blk< std::int32_t > mute_ii
Definition:
mute.h:39
gr::blocks::mute_cc
mute_blk< gr_complex > mute_cc
Definition:
mute.h:41
gr-blocks
include
gnuradio
blocks
mute.h
Generated by
1.8.17