GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
ctrlport_probe_c.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2012-2013 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 INCLUDED_CTRLPORT_PROBE_C_H
12#define INCLUDED_CTRLPORT_PROBE_C_H
13
14#include <gnuradio/blocks/api.h>
16#include <gnuradio/sync_block.h>
17
18namespace gr {
19namespace blocks {
20
21/*!
22 * \brief A ControlPort probe to export vectors of signals.
23 * \ingroup measurement_tools_blk
24 * \ingroup controlport_blk
25 *
26 * \details
27 * This block acts as a sink in the flowgraph but also exports
28 * vectors of complex samples over ControlPort. This block simply
29 * sends the current vector held in the work function when the
30 * queried by a ControlPort client.
31 */
33{
34public:
35 // gr::blocks::ctrlport_probe_c::sptr
36 typedef std::shared_ptr<ctrlport_probe_c> sptr;
37
38 /*!
39 * \brief Make a ControlPort probe block.
40 * \param id A string ID to name the probe over ControlPort.
41 * \param desc A string describing the probe.
42 */
43 static sptr make(const std::string& id, const std::string& desc);
44
45 virtual std::vector<gr_complex> get() = 0;
46};
47
48} /* namespace blocks */
49} /* namespace gr */
50
51#endif /* INCLUDED_CTRLPORT_GR_CTRLPORT_PROBE_C_H */
A ControlPort probe to export vectors of signals.
Definition: ctrlport_probe_c.h:33
static sptr make(const std::string &id, const std::string &desc)
Make a ControlPort probe block.
virtual std::vector< gr_complex > get()=0
std::shared_ptr< ctrlport_probe_c > sptr
Definition: ctrlport_probe_c.h:36
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
GNU Radio logging wrapper.
Definition: basic_block.h:29