Loading...
Searching...
No Matches
sample_and_hold.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2007,2013,2018 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef SAMPLE_AND_HOLD_H
#define SAMPLE_AND_HOLD_H
#include <gnuradio/blocks/api.h>
#include <gnuradio/sync_block.h>
#include <cstdint>
namespace gr {
namespace blocks {
/*!
* \brief sample and hold circuit
* \ingroup level_controllers_blk
*
* \details
* Samples the data stream (input stream 0) and holds the value if
* the control signal is 1 (input stream 1).
*/
template <class T>
class BLOCKS_API sample_and_hold : virtual public sync_block
{
public:
// gr::blocks::sample_and_hold::sptr
typedef std::shared_ptr<sample_and_hold<T>> sptr;
static sptr make();
};
typedef sample_and_hold<std::uint8_t> sample_and_hold_bb;
typedef sample_and_hold<std::int16_t> sample_and_hold_ss;
typedef sample_and_hold<std::int32_t> sample_and_hold_ii;
typedef sample_and_hold<float> sample_and_hold_ff;
} /* namespace blocks */
} /* namespace gr */
#endif /* SAMPLE_AND_HOLD_H */
gr::blocks::sample_and_hold
sample and hold circuit
Definition sample_and_hold.h:32
gr::blocks::sample_and_hold::sptr
std::shared_ptr< sample_and_hold< T > > sptr
Definition sample_and_hold.h:35
gr::blocks::sample_and_hold::make
static sptr make()
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::sample_and_hold_bb
sample_and_hold< std::uint8_t > sample_and_hold_bb
Definition sample_and_hold.h:40
gr::blocks::sample_and_hold_ff
sample_and_hold< float > sample_and_hold_ff
Definition sample_and_hold.h:43
gr::blocks::sample_and_hold_ii
sample_and_hold< std::int32_t > sample_and_hold_ii
Definition sample_and_hold.h:42
gr::blocks::sample_and_hold_ss
sample_and_hold< std::int16_t > sample_and_hold_ss
Definition sample_and_hold.h:41
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h