]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/rigol-ds/protocol.h
rigol-ds: Store trigger sources and their number for each model
[libsigrok.git] / src / hardware / rigol-ds / protocol.h
index cdf43f8b2a9f883ca6b454ecd69714b3016aff91..840b1b274e2b17a0f917cf772bd6d4abfbd41e46 100644 (file)
@@ -80,6 +80,8 @@ struct rigol_ds_model {
        uint64_t min_timebase[2];
        unsigned int analog_channels;
        bool has_digital;
+       const char **trigger_sources;
+       unsigned int num_trigger_sources;
 };
 
 enum wait_events {
@@ -89,9 +91,7 @@ enum wait_events {
        WAIT_STOP,    /* Wait for scope stopping (only single shots) */
 };
 
-/** Private, per-device-instance driver context. */
 struct dev_context {
-       /* Device model */
        const struct rigol_ds_model *model;
        enum data_format format;
 
@@ -124,10 +124,9 @@ struct dev_context {
        char *trigger_source;
        float horiz_triggerpos;
        char *trigger_slope;
+       float trigger_level;
        char *coupling[MAX_ANALOG_CHANNELS];
 
-       /* Operational state */
-
        /* Number of frames received in total. */
        uint64_t num_frames;
        /* GSList entry for the current channel. */