Loading...
Searching...
No Matches
probe_signal_v.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_V_H
#define PROBE_SIGNAL_V_H
#include <gnuradio/blocks/api.h>
#include <gnuradio/sync_block.h>
#include <cstdint>
#include <vector>
namespace gr {
namespace blocks {
/*!
* \brief Sink that allows a vector of samples to be grabbed from Python.
* \ingroup sink_blk
* \ingroup measurement_tools_blk
*/
template <class T>
class BLOCKS_API probe_signal_v : virtual public sync_block
{
public:
typedef std::shared_ptr<probe_signal_v<T>> sptr;
static sptr make(size_t size);
virtual std::vector<T> level() const = 0;
};
typedef probe_signal_v<std::uint8_t> probe_signal_vb;
typedef probe_signal_v<std::int16_t> probe_signal_vs;
typedef probe_signal_v<std::int32_t> probe_signal_vi;
typedef probe_signal_v<float> probe_signal_vf;
typedef probe_signal_v<gr_complex> probe_signal_vc;
} /* namespace blocks */
} /* namespace gr */
#endif /* PROBE_SIGNAL_V_H */
gr::blocks::probe_signal_v
Sink that allows a vector of samples to be grabbed from Python.
Definition probe_signal_v.h:29
gr::blocks::probe_signal_v::level
virtual std::vector< T > level() const =0
gr::blocks::probe_signal_v::sptr
std::shared_ptr< probe_signal_v< T > > sptr
Definition probe_signal_v.h:31
gr::blocks::probe_signal_v::make
static sptr make(size_t size)
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_vs
probe_signal_v< std::int16_t > probe_signal_vs
Definition probe_signal_v.h:39
gr::blocks::probe_signal_vb
probe_signal_v< std::uint8_t > probe_signal_vb
Definition probe_signal_v.h:38
gr::blocks::probe_signal_vc
probe_signal_v< gr_complex > probe_signal_vc
Definition probe_signal_v.h:42
gr::blocks::probe_signal_vf
probe_signal_v< float > probe_signal_vf
Definition probe_signal_v.h:41
gr::blocks::probe_signal_vi
probe_signal_v< std::int32_t > probe_signal_vi
Definition probe_signal_v.h:40
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h