python: Add further properties to Analog class.

This commit is contained in:
Uwe Hermann 2013-04-18 17:45:17 +02:00
parent 15574a3cec
commit c2ec42ce93
1 changed files with 12 additions and 0 deletions

View File

@ -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: