]> sigrok.org Git - libsigrok.git/blobdiff - hardware/sysclk-lwla/protocol.h
sysclk-lwla: Add support for external trigger input.
[libsigrok.git] / hardware / sysclk-lwla / protocol.h
index 762a17b595c5d71fb4a67ceee9a1a350f899eec1..c410e60bdb68709190d7a6393919e4085a3d694d 100644 (file)
@@ -110,6 +110,20 @@ enum clock_source {
        CLOCK_SOURCE_EXT_FALL,
 };
 
+/** Available trigger sources.
+ */
+enum trigger_source {
+       TRIGGER_CHANNELS = 0,
+       TRIGGER_EXT_TRG,
+};
+
+/** Available edge choices for the external trigger.
+ */
+enum trigger_slope {
+       SLOPE_POSITIVE = 0,
+       SLOPE_NEGATIVE,
+};
+
 /** LWLA device states.
  */
 enum device_state {
@@ -214,6 +228,11 @@ struct dev_context {
        /** The clock source selected by the user. */
        enum clock_source selected_clock_source;
 
+       /** Trigger source configuration setting. */
+       enum trigger_source cfg_trigger_source;
+       /** Trigger slope configuration setting. */
+       enum trigger_slope cfg_trigger_slope;
+
        /* Indicates that stopping the acquisition is currently in progress. */
        gboolean stopping_in_progress;