GNU Radio's M2K Package
analog_in_converter.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2022 Analog Devices Inc..
4 *
5 * SPDX-License-Identifier: GPL-3.0-or-later
6 */
7
8#ifndef INCLUDED_M2K_ANALOG_IN_CONVERTER_H
9#define INCLUDED_M2K_ANALOG_IN_CONVERTER_H
10
11#include <gnuradio/m2k/api.h>
12#include <gnuradio/sync_block.h>
13#include <libm2k/m2k.hpp>
14
15namespace gr {
16 namespace m2k {
17
18
19 /*!
20 * \brief Raw ADC samples converter
21 * \ingroup m2k
22 *
23 * \details
24 * This block converts raw samples of ADALM2000's ADC into voltage
25 */
26 class M2K_API analog_in_converter : virtual public gr::sync_block {
27 public:
28 typedef std::shared_ptr <analog_in_converter> sptr;
29
30 /*!
31 * \brief Return a shared_ptr to a new instance of m2k::analog_in_converter.
32 *
33 * \param uri String of the context uri
34 */
35 static sptr make(const std::string &uri);
36
37 static sptr make_from(libm2k::context::M2k *context);
38
39 };
40
41 } // namespace m2k
42} // namespace gr
43
44#endif /* INCLUDED_M2K_ANALOG_IN_CONVERTER_H */
#define M2K_API
Definition api.h:19
Raw ADC samples converter.
Definition analog_in_converter.h:26
static sptr make_from(libm2k::context::M2k *context)
static sptr make(const std::string &uri)
Return a shared_ptr to a new instance of m2k::analog_in_converter.
std::shared_ptr< analog_in_converter > sptr
Definition analog_in_converter.h:28
Definition adf4350_sink.h:15
Definition adf4350_sink.h:14