GNU Radio Manual and C++ API Reference  3.10.9.1
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 
42 } /* namespace blocks */
43 } /* namespace gr */
44 
45 #endif /* MUTE_H */
output = input or zero if muted.
Definition: mute.h:28
virtual void set_mute(bool mute=false)=0
static sptr make(bool mute=false)
virtual bool mute() const =0
std::shared_ptr< mute_blk< T > > sptr
Definition: mute.h:30
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
mute_blk< std::int32_t > mute_ii
Definition: mute.h:39
mute_blk< gr_complex > mute_cc
Definition: mute.h:41
mute_blk< float > mute_ff
Definition: mute.h:40
mute_blk< std::int16_t > mute_ss
Definition: mute.h:38
GNU Radio logging wrapper.
Definition: basic_block.h:29