blob: 0b5e7d4eb48eb55a06de2fd1f7cd59b39a01523a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/* -*- c++ -*- */
/*
* Copyright 2004,2013,2018 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef MUTE_IMPL_H
#define MUTE_IMPL_H
#include <gnuradio/blocks/mute.h>
namespace gr {
namespace blocks {
template <class T>
class mute_impl : public mute_blk<T>
{
private:
bool d_mute;
public:
mute_impl(bool mute);
~mute_impl();
bool mute() const { return d_mute; }
void set_mute(bool mute) { d_mute = mute; }
void set_mute_pmt(pmt::pmt_t msg) { set_mute(pmt::to_bool(msg)); }
int work(int noutput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items) override;
};
} /* namespace blocks */
} /* namespace gr */
#endif /* MUTE_IMPL_H */
|