From a47961e3111070d6193708dfd5474550aa134c99 Mon Sep 17 00:00:00 2001 From: jupfi Date: Mon, 12 Feb 2024 21:36:32 +0100 Subject: [PATCH] Added manual selection of tx rx matching. --- extern/limedriver | 2 +- pyproject.toml | 2 +- src/limedriver/limedriver.pyx | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/extern/limedriver b/extern/limedriver index 73abc06..d1e1cd6 160000 --- a/extern/limedriver +++ b/extern/limedriver @@ -1 +1 @@ -Subproject commit 73abc06d6e73d8fcd7fa6cf76c20230026e86d9a +Subproject commit d1e1cd6bba209c0ca604411d50329abaa5a824b1 diff --git a/pyproject.toml b/pyproject.toml index b9b2e0d..85ff8e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "limedriver" -version = "0.2.0" +version = "0.3.0" description = "Python bindings for limedriver" authors = [{name = "Kumi", email = "limedriver@kumi.email"}] license = {file = "LICENSE"} diff --git a/src/limedriver/limedriver.pyx b/src/limedriver/limedriver.pyx index fd68760..4bd4a5e 100644 --- a/src/limedriver/limedriver.pyx +++ b/src/limedriver/limedriver.pyx @@ -14,6 +14,8 @@ cdef extern from "limedriver.h": cdef struct LimeConfig_t: float srate int channel + int TX_matching + int RX_matching float frq float frq_set float RX_LPF @@ -114,6 +116,22 @@ cdef class PyLimeConfig: def channel(self, int value): self._config.channel = value + @property + def TX_matching(self): + return self._config.TX_matching + + @TX_matching.setter + def TX_matching(self, int value): + self._config.TX_matching = value + + @property + def RX_matching(self): + return self._config.RX_matching + + @RX_matching.setter + def RX_matching(self, int value): + self._config.RX_matching = value + @property def frq(self): return self._config.frq