]> sigrok.org Git - libsigrok.git/blobdiff - hardware/openbench-logic-sniffer/ols.h
sr: remove unused time/duration fields from datafeed packets
[libsigrok.git] / hardware / openbench-logic-sniffer / ols.h
index e6afd0e08e38ffd2957f6898cad8ba88ba102cae..a554ae8c0b42239a1f26e71436fae017293cd31d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the sigrok project.
  *
- * Copyright (C) 2011 Bert Vermeulen <bert@biot.com>
+ * Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
  *
  * 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
@@ -67,7 +67,6 @@ 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;
@@ -82,11 +81,14 @@ 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;
+
+       struct sr_serial_device_instance *serial;
 };
 
 #endif /* OLS_H_ */