mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-09-29 09:00: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]
|
||||
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"}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue