Added binding for channel selection.

This commit is contained in:
jupfi 2024-02-11 09:04:33 +01:00
parent 5f9f62df76
commit 761c4756e8
2 changed files with 10 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[project] [project]
name = "limedriver" name = "limedriver"
version = "0.1.0" version = "0.2.0"
description = "Python bindings for limedriver" description = "Python bindings for limedriver"
authors = [{name = "Kumi", email = "limedriver@kumi.email"}] authors = [{name = "Kumi", email = "limedriver@kumi.email"}]
license = {file = "LICENSE"} license = {file = "LICENSE"}

View file

@ -13,6 +13,7 @@ import pathlib
cdef extern from "limedriver.h": cdef extern from "limedriver.h":
cdef struct LimeConfig_t: cdef struct LimeConfig_t:
float srate float srate
int channel
float frq float frq
float frq_set float frq_set
float RX_LPF float RX_LPF
@ -105,6 +106,14 @@ cdef class PyLimeConfig:
def srate(self, float value): def srate(self, float value):
self._config.srate = 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 @property
def frq(self): def frq(self):
return self._config.frq return self._config.frq