aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/device_python.cpp
blob: 43147a09c06f6292bb18686afc0dac4ebfbfbda8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//
// Copyright 2020 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//

#include <pybind11/complex.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

namespace py = pybind11;

#include "device_python.hpp"
#include <uhd/device.hpp>

void export_device(py::module& m)
{
    m.def("find", [](const uhd::device_addr_t& hint) { return uhd::device::find(hint); });
}