aboutsummaryrefslogtreecommitdiffstats
path: root/host/python/pyuhd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* n310: Add Filter API to n310mattprost2022-04-071-0/+1
| | | | | | | | | | Add the Filter API to n3xx specifically for the AD937x device. The TX filter is limited to 32 taps, and the RX filter is limited to 48 taps. This feature requires MPM version 4.2 or later on the device. Co-authored-by: bpadalino <bpadalino@gmail.com> Signed-off-by: mattprost <matt.prost@ni.com>
* python: Add find() to the Python APIMartin Braun2020-12-071-0/+4
| | | | | | | | | | | | This a mapping of uhd::device::find() into uhd.find() on the Python side. The uhd::device is intentionally not mapped into Python (prefer MultiUSRP or RfnocGraph instead), so the namespace is moved up one level. Example: >>> import uhd >>> # Now print the device args for all found B200s: >>> for dev_args in uhd.find("type=b200")): print(dev_args.to_string())
* python: Add access to the property_tree from PythonMartin Braun2020-10-161-0/+4
| | | | | | | Example: >>> usrp = uhd.usrp.multi_usrp("") >>> tree = usrp.get_tree() >>> print(tree.access_int("/name").get())
* python: Add Keep One in N block controller bindingsAaron Rossetto2020-08-051-0/+2
|
* python: Add replay RFNoC block controller bindingsmattprost2020-08-041-0/+2
| | | | Signed-off-by: mattprost <matt.prost@ni.com>
* python: Add siggen RFNoC block controller bindingsAaron Rossetto2020-07-301-0/+2
|
* python: Add Switchboard block python bindingsJesse Zhang2020-07-301-0/+2
|
* python: Add moving average RFNoC block controller bindingsmattprost2020-07-161-0/+2
| | | | Signed-off-by: mattprost <matt.prost@ni.com>
* python: Add bindings for C++ CHDR ParserSamuel O'Brien2020-07-161-0/+4
| | | | | | | | | | | | | This commit adds pybind11 glue code for the userland chdr parsing code introduced in the uhd::utils::chdr namespace. Additionally, it moves some pybind11 adapter code to a common pybind_adaptors.hpp file which originally existed in the cal_python.hpp file. This commit also adds unit tests for the python bindings using a captured wireshark trace which is located in rfnoc_packets_*.py and some handwritten packets in hardcoded_packets.py Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
* python: Add window RFNoC block controller bindingsAaron Rossetto2020-06-291-0/+2
|
* python: Add FFT RFNoC block controller bindingsAaron Rossetto2020-06-181-0/+2
|
* python: Add null RFNoC block controller bindingsAaron Rossetto2020-06-091-0/+2
|
* python: Add vector IIR RFNoC block controller bindingsAaron Rossetto2020-06-091-0/+2
|
* python: Add radio RFNoC block controller bindingsAaron Rossetto2020-06-091-0/+2
|
* python: Add FIR filter RFNoC block controller bindingsAaron Rossetto2020-06-091-0/+2
|
* python: Add Fosphor RFNoC block controller bindingsAaron Rossetto2020-06-091-0/+2
|
* python: Add DUC RFNoC block controller bindingsAaron Rossetto2020-06-091-0/+2
|
* python: Add DDC RFNoC block controller bindingsAaron Rossetto2020-06-091-0/+2
|
* uhd: cal: Add iq_cal calibration data container classMartin Braun2020-04-021-0/+5
| | | | | | | | This class can be used to store calibration coefficients for the X300 DC offset and IQ imbalance calibration. Note: This also modifies Doxyfile.in to not document files generated by flatc.
* python: Export UHD paths utility functionsMartin Braun2020-03-121-0/+5
| | | | | | | | | All of the functions defined in uhd/utils/paths.hpp are now available in Python, with the exception of get_module_paths(). #!/usr/bin/env python3 import uhd print(uhd.get_lib_path()) # Prints location of libuhd
* python: Remove Python2-specific codeMartin Braun2020-03-121-7/+0
|
* uhd: Apply clang-format against all .cpp and .hpp files in host/Martin Braun2020-03-031-11/+7
| | | | | Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against.
* rfnoc: adding RFNoC Python APIBrent Stapleton2020-01-021-0/+6
| | | | | | | | Adding Python bindings for the RFNoC API. This includes the rfnoc_graph, noc_block_base, and several other supporting classes. Templated functions are not currently supported. For example, `rfnoc_graph::get_block` can only return the basic block controller.
* uhd: Replace usage of boost smart pointers with C++11 counterpartsMartin Braun2019-11-261-5/+0
| | | | | | | | | | | | | | | | | | | This removes the following Boost constructs: - boost::shared_ptr, boost::weak_ptr - boost::enable_shared_from_this - boost::static_pointer_cast, boost::dynamic_pointer_cast The appropriate includes were also removed. All C++11 versions of these require #include <memory>. Note that the stdlib and Boost versions have the exact same syntax, they only differ in the namespace (boost vs. std). The modifications were all done using sed, with the exception of boost::scoped_ptr, which was replaced by std::unique_ptr. References to boost::smart_ptr were also removed. boost::intrusive_ptr is not removed in this commit, since it does not have a 1:1 mapping to a C++11 construct.
* python: Included complex.h to allow pybind to convert that data typeerickshepherdNI2019-11-011-0/+1
|
* python: Replace Boost.Python with PyBind11Martin Braun2019-02-221-155/+24
| | | | | | This does not change the Python API itself, but it is still a significant change. Most importantly, it removes the dependency on Boost.Python.
* python: Add sync source to Python APIBrent Stapleton2018-11-291-0/+9
| | | | Exposing getters, setters, and options for multi_usrp sync source.
* python: Fixing Boost.Python initializer visibilityMarcus Müllr2018-08-031-0/+11
| | | | | | With Boost 1.64 to 1.65 (which, of course, Ubuntu LTS ships), the `PyInit_Libraryname` are invisible when one sets the default visibility to "hidden" (which is reasonable, and which we do).
* python: Separating exposed Python data structuresPaul David2018-06-201-437/+116
| | | | | | | | | - Separating exposed Python data structures into logical sections - Exposes all of the multi_usrp API - Adds a layer of Python for documentation and adding helper methods - Adds improvements and fixes to the MultiUSRP object - Includes additional exposed data structures (like time_spec_t, etc.) - Add code to release the Python GIL during long C++ calls
* python: Initial commit of Python APIAndrej Rode2018-06-201-0/+512
Initial commit of the Python API using Boost.Python. Bind the MultiUSRP API for use in Python. Bindings intended to provide as complete coverage as possible. - Wrap most multi_usrp calls - Adding multi channel send/recv examples in examples/python - Adding setuptools support - Initial attempt at binding the UHD types and filters