]> sigrok.org Git - libsigrok.git/blobdiff - hardware/openbench-logic-sniffer/ols.h
Run-Length Encoding support for the OLS.
[libsigrok.git] / hardware / openbench-logic-sniffer / ols.h
index e0161b0810ef414aaa1d73a91bb31b236416844d..a954605e7f23d278a84a46a971244ba8095209f9 100644 (file)
@@ -67,6 +67,7 @@ struct ols_device {
 
        uint64_t cur_samplerate;
        uint32_t cur_samplerate_divider;
+       uint64_t period_ps;
        uint64_t limit_samples;
        /* Current state of the flag register */
        uint32_t flag_reg;
@@ -81,8 +82,9 @@ struct ols_device {
        int num_stages;
 
        unsigned int num_transfers;
+       unsigned int num_samples;
+       int rle_count;
        int num_bytes;
-       char last_sample[4];
        unsigned char sample[4];
        unsigned char tmp_sample[4];
        unsigned char *raw_sample_buf;