diff --git a/pyproject.toml b/pyproject.toml index cacd866..b9b2e0d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "limedriver" -version = "0.1.0" +version = "0.2.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 0fdb5a2..fd68760 100644 --- a/src/limedriver/limedriver.pyx +++ b/src/limedriver/limedriver.pyx @@ -13,6 +13,7 @@ import pathlib cdef extern from "limedriver.h": cdef struct LimeConfig_t: float srate + int channel float frq float frq_set float RX_LPF @@ -105,6 +106,14 @@ cdef class PyLimeConfig: def srate(self, float value): self._config.srate = value + @property + def channel(self): + return self._config.channel + + @channel.setter + def channel(self, int value): + self._config.channel = value + @property def frq(self): return self._config.frq