mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-09-30 17:40:35 +00:00
Added binding for channel selection.
This commit is contained in:
parent
5f9f62df76
commit
761c4756e8
2 changed files with 10 additions and 1 deletions
|
@ -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"}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue