GNU Radio's M2K Package
analog_out_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_OUT_CONVERTER_H
9#define INCLUDED_M2K_ANALOG_OUT_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 * \brief Raw DAC samples converter
20 * \ingroup m2k
21 *
22 * \details
23 * This block converts raw samples of ADALM2000's DAC into voltage
24 */
25 class M2K_API analog_out_converter : virtual public gr::sync_block {
26 public:
27 typedef std::shared_ptr <analog_out_converter> sptr;
28
29 /*!
30 * \brief Return a shared_ptr to a new instance of m2k::analog_out_converter.
31 *
32 * \param uri String of the context uri
33 */
34 static sptr make(const std::string &uri);
35
36 static sptr make_from(libm2k::context::M2k *context);
37
38 };
39
40 } // namespace m2k
41} // namespace gr
42
43#endif /* INCLUDED_M2K_ANALOG_OUT_CONVERTER_H */
#define M2K_API
Definition api.h:19
Raw DAC samples converter.
Definition analog_out_converter.h:25
std::shared_ptr< analog_out_converter > sptr
Definition analog_out_converter.h:27
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_out_converter.
Definition adf4350_sink.h:15
Definition adf4350_sink.h:14