]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/demo/protocol.h
demo: Get/Set measurement quantity for the analog channels.
[libsigrok.git] / src / hardware / demo / protocol.h
index cf1cca60e4207c6a18c8f82b186719bf496e7a53..de0ac7a86078d125f1925c801638249bdff37a7c 100644 (file)
@@ -5,6 +5,7 @@
  * Copyright (C) 2011 Olivier Fauchon <olivier@aixmarseille.com>
  * Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
  * Copyright (C) 2015 Bartosz Golaszewski <bgolaszewski@baylibre.com>
+ * Copyright (C) 2019 Frank Stettner <frank-stettner@gmx.net>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -119,6 +120,8 @@ struct dev_context {
        uint8_t first_partial_logic_mask;
        /* Triggers */
        uint64_t capture_ratio;
+       gboolean trigger_fired;
+       struct soft_trigger_logic *stl;
 };
 
 static const char *analog_pattern_str[] = {
@@ -130,6 +133,9 @@ static const char *analog_pattern_str[] = {
 
 struct analog_gen {
        struct sr_channel *ch;
+       enum sr_mq mq;
+       enum sr_mqflag mq_flags;
+       enum sr_unit unit;
        enum analog_pattern_type pattern;
        float amplitude;
        float pattern_data[ANALOG_BUFSIZE];