]> sigrok.org Git - libsigrok.git/blobdiff - hardware/asix-sigma/asix-sigma.h
Sigma: Add state machine for tracking Sigma status.
[libsigrok.git] / hardware / asix-sigma / asix-sigma.h
index be7ecbff6fd8538eef25e72102d18fa382087d48..9af081846083cffdc58b6fb207edfbba36a68e92 100644 (file)
@@ -157,4 +157,20 @@ enum triggerfunc {
        FUNC_NXOR,
 };
 
+struct sigma_state {
+       enum {
+               SIGMA_UNINITIALIZED = 0,
+               SIGMA_IDLE,
+               SIGMA_CAPTURE,
+               SIGMA_DOWNLOAD,
+       } state;
+
+       uint32_t stoppos, triggerpos;
+       uint16_t lastts;
+       uint16_t lastsample;
+
+       int triggerchunk;
+       int chunks_downloaded;
+};
+
 #endif