Loading...
Searching...
No Matches
probe_signal.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2005,2012-2013,2018 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef PROBE_SIGNAL_H
#define PROBE_SIGNAL_H
#include <gnuradio/blocks/api.h>
#include <gnuradio/sync_block.h>
#include <cstdint>
namespace gr {
namespace blocks {
/*!
* \brief Sink that allows a sample to be grabbed from Python.
* \ingroup measurement_tools_blk
*/
template <class T>
class BLOCKS_API probe_signal : virtual public sync_block
{
public:
// gr::blocks::probe_signal::sptr
typedef std::shared_ptr<probe_signal<T>> sptr;
static sptr make();
virtual T level() const = 0;
};
typedef probe_signal<std::uint8_t> probe_signal_b;
typedef probe_signal<std::int16_t> probe_signal_s;
typedef probe_signal<std::int32_t> probe_signal_i;
typedef probe_signal<float> probe_signal_f;
typedef probe_signal<gr_complex> probe_signal_c;
} /* namespace blocks */
} /* namespace gr */
#endif /* PROBE_SIGNAL_H */
gr::blocks::probe_signal
Sink that allows a sample to be grabbed from Python.
Definition probe_signal.h:28
gr::blocks::probe_signal::make
static sptr make()
gr::blocks::probe_signal::level
virtual T level() const =0
gr::blocks::probe_signal::sptr
std::shared_ptr< probe_signal< T > > sptr
Definition probe_signal.h:31
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
api.h
BLOCKS_API
#define BLOCKS_API
Definition gr-blocks/include/gnuradio/blocks/api.h:18
gr::blocks
Definition abs_blk.h:20
gr::blocks::probe_signal_i
probe_signal< std::int32_t > probe_signal_i
Definition probe_signal.h:40
gr::blocks::probe_signal_b
probe_signal< std::uint8_t > probe_signal_b
Definition probe_signal.h:38
gr::blocks::probe_signal_c
probe_signal< gr_complex > probe_signal_c
Definition probe_signal.h:42
gr::blocks::probe_signal_s
probe_signal< std::int16_t > probe_signal_s
Definition probe_signal.h:39
gr::blocks::probe_signal_f
probe_signal< float > probe_signal_f
Definition probe_signal.h:41
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h