X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fdemo%2Fprotocol.h;h=82fb5d23553829b62604ffcf94e5d67fd602c529;hb=bde6a99b33fd520152c05183f5b80cff63d75675;hp=c61d0ee65a900c27e0a16c1a573f35c634c1c277;hpb=fb193945b6188ffdb44b64f29b36c91f03f7f011;p=libsigrok.git diff --git a/src/hardware/demo/protocol.h b/src/hardware/demo/protocol.h index c61d0ee6..82fb5d23 100644 --- a/src/hardware/demo/protocol.h +++ b/src/hardware/demo/protocol.h @@ -35,6 +35,7 @@ #define ANALOG_BUFSIZE 4096 /* This is a development feature: it starts a new frame every n samples. */ #define SAMPLES_PER_FRAME 1000UL +#define DEFAULT_LIMIT_FRAMES 0 /* Logic patterns we can generate. */ enum logic_pattern_type { @@ -116,6 +117,10 @@ struct dev_context { size_t enabled_analog_channels; size_t first_partial_logic_index; 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[] = {