]> sigrok.org Git - libsigrok.git/commitdiff
python: Add further properties to Analog class.
authorUwe Hermann <redacted>
Thu, 18 Apr 2013 15:45:17 +0000 (17:45 +0200)
committerUwe Hermann <redacted>
Thu, 18 Apr 2013 15:45:38 +0000 (17:45 +0200)
bindings/python/sigrok/core/classes.py

index 52a11c4086bbfdf048663f7c5d79333efa343a06..ba52e7830591ba1a3f272af51e4ff15d69e8c915 100644 (file)
@@ -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: