]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hameg-hmo/protocol.h
scpi-pps: Add support for Owon P4000 series.
[libsigrok.git] / src / hardware / hameg-hmo / protocol.h
index df4a4e4c12f7d3de20bb2319d81cae33c49e745f..af77c6da7e6dc09a0d2486a33809ce5881857270 100644 (file)
@@ -73,8 +73,8 @@ struct scope_config {
        const uint64_t (*vdivs)[][2];
        const uint8_t num_vdivs;
 
-       const uint8_t num_xdivs;
-       const uint8_t num_ydivs;
+       unsigned int num_xdivs;
+       const unsigned int num_ydivs;
 
        const char *(*scpi_dialect)[];
 };
@@ -106,7 +106,10 @@ struct scope_state {
 
        int trigger_source;
        int trigger_slope;
-       char trigger_pattern[MAX_ANALOG_CHANNEL_COUNT + MAX_DIGITAL_CHANNEL_COUNT];
+       char trigger_pattern[MAX_ANALOG_CHANNEL_COUNT + MAX_DIGITAL_CHANNEL_COUNT + 1];
+
+       gboolean high_resolution;
+       gboolean peak_detection;
 
        uint64_t sample_rate;
 };