From: Uwe Hermann Date: Thu, 18 Apr 2013 15:45:17 +0000 (+0200) Subject: python: Add further properties to Analog class. X-Git-Tag: dsupstream~105 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c2ec42ce938bc38bfd72ca3959611baab326530a;p=libsigrok.git python: Add further properties to Analog class. --- diff --git a/bindings/python/sigrok/core/classes.py b/bindings/python/sigrok/core/classes.py index 52a11c40..ba52e783 100644 --- a/bindings/python/sigrok/core/classes.py +++ b/bindings/python/sigrok/core/classes.py @@ -257,6 +257,18 @@ class Analog(object): def num_samples(self): 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 def data(self): if self._data is None: