python: Add further properties to Analog class.
This commit is contained in:
parent
15574a3cec
commit
c2ec42ce93
|
@ -257,6 +257,18 @@ class Analog(object):
|
||||||
def num_samples(self):
|
def num_samples(self):
|
||||||
return self.struct.num_samples
|
return self.struct.num_samples
|
||||||
|
|
||||||
|
@property
|
||||||
|
def mq(self):
|
||||||
|
return self.struct.mq
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unit(self):
|
||||||
|
return self.struct.unit
|
||||||
|
|
||||||
|
@property
|
||||||
|
def mqflags(self):
|
||||||
|
return self.struct.mqflags
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def data(self):
|
def data(self):
|
||||||
if self._data is None:
|
if self._data is None:
|
||||||
|
|
Loading…
Reference in New Issue