]> sigrok.org Git - libsigrok.git/commitdiff
Add SR_CONF keys to report the number of timebases and vdivs
authorBert Vermeulen <redacted>
Sun, 7 Apr 2013 22:29:37 +0000 (00:29 +0200)
committerBert Vermeulen <redacted>
Thu, 11 Apr 2013 16:32:08 +0000 (18:32 +0200)
Number of timebases is needed to properly interpret a frame's worth
of samples. Number of vertical divisions isn't, but may nevertheless
be interesting for a frontend that wants to reproduce the scope's
native display.

libsigrok.h

index a606dfb08ee9933bb4048079061e51b02c5ecf53..fba6c9ccf2910c2c86f342480dcf4ec1aba2907b 100644 (file)
@@ -636,6 +636,12 @@ enum {
        /** The device supports setting its sample interval, in ms. */
        SR_CONF_SAMPLE_INTERVAL,
 
+       /** Number of timebases, as related to SR_CONF_TIMEBASE.  */
+       SR_CONF_NUM_TIMEBASE,
+
+       /** Number of vertical divisions, as related to SR_CONF_VDIV.  */
+       SR_CONF_NUM_VDIV,
+
        /*--- Special stuff -------------------------------------------------*/
 
        /** Scan options supported by the driver. */