GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
probe_signal.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2005,2012-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 PROBE_SIGNAL_H
13#define PROBE_SIGNAL_H
14
15#include <gnuradio/blocks/api.h>
16#include <gnuradio/sync_block.h>
17#include <cstdint>
18
19namespace gr {
20namespace blocks {
21
22/*!
23 * \brief Sink that allows a sample to be grabbed from Python.
24 * \ingroup measurement_tools_blk
25 */
26template <class T>
27class BLOCKS_API probe_signal : virtual public sync_block
28{
29public:
30 // gr::blocks::probe_signal::sptr
31 typedef std::shared_ptr<probe_signal<T>> sptr;
32
33 static sptr make();
34
35 virtual T level() const = 0;
36};
37
43} /* namespace blocks */
44} /* namespace gr */
45
46#endif /* PROBE_SIGNAL_H */
Sink that allows a sample to be grabbed from Python.
Definition: probe_signal.h:28
virtual T level() const =0
std::shared_ptr< probe_signal< T > > sptr
Definition: probe_signal.h:31
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
probe_signal< std::int32_t > probe_signal_i
Definition: probe_signal.h:40
probe_signal< std::uint8_t > probe_signal_b
Definition: probe_signal.h:38
probe_signal< gr_complex > probe_signal_c
Definition: probe_signal.h:42
probe_signal< std::int16_t > probe_signal_s
Definition: probe_signal.h:39
probe_signal< float > probe_signal_f
Definition: probe_signal.h:41
GNU Radio logging wrapper.
Definition: basic_block.h:29