aboutsummaryrefslogtreecommitdiffstats
path: root/host/python/types.py
diff options
context:
space:
mode:
authorPaul David <paul.david@ettus.com>2017-05-02 14:10:05 -0400
committerMartin Braun <martin.braun@ettus.com>2018-06-20 19:02:32 -0500
commite74cf7635ba3360b5b7002a2f7317941f65ffa16 (patch)
tree46b63039f31c5aedf26773b4b626b2a7932999db /host/python/types.py
parent22e24497a510c174e6de7718ad918a423d1973dd (diff)
downloaduhd-e74cf7635ba3360b5b7002a2f7317941f65ffa16.tar.gz
uhd-e74cf7635ba3360b5b7002a2f7317941f65ffa16.tar.bz2
uhd-e74cf7635ba3360b5b7002a2f7317941f65ffa16.zip
python: Separating exposed Python data structures
- 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
Diffstat (limited to 'host/python/types.py')
-rw-r--r--host/python/types.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/host/python/types.py b/host/python/types.py
new file mode 100644
index 000000000..bcf6e1df2
--- /dev/null
+++ b/host/python/types.py
@@ -0,0 +1,30 @@
+#
+# Copyright 2017-2018 Ettus Research, a National Instruments Company
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+""" @package types
+Python UHD module containing types to be used with a MultiUSRP object
+"""
+
+from . import libpyuhd as lib
+
+
+StreamMode = lib.types.stream_mode
+StreamCMD = lib.types.stream_cmd
+TimeSpec = lib.types.time_spec
+SPIEdge = lib.types.spi_edge
+SPIConfig = lib.types.spi_config
+RXMetadataErrorCode = lib.types.rx_metadata_error_code
+Range = lib.types.range
+RangeVector = lib.types.range_vector
+MetaRange = lib.types.meta_range
+RXMetadata = lib.types.rx_metadata
+TXMetadata = lib.types.tx_metadata
+TXAsyncMetadata = lib.types.async_metadata
+TXMetadataEventCode = lib.types.tx_metadata_event_code
+DataType = lib.types.data_type
+SensorValue = lib.types.sensor_value
+TuneRequestPolicy = lib.types.tune_request_policy
+TuneRequest = lib.types.tune_request
+TuneResult = lib.types.tune_result