X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fopenbench-logic-sniffer%2Fols.h;h=0b1a61361c0297618381eb25ab1333073a249f91;hb=003f9bebf9f97225b08383573544c1ece7239aea;hp=2cdf42c1ba8852410c9e062c3a16912aa4f84df6;hpb=221304219ef861c14a44017eb025631bbd2fa05c;p=libsigrok.git diff --git a/hardware/openbench-logic-sniffer/ols.h b/hardware/openbench-logic-sniffer/ols.h index 2cdf42c1..0b1a6136 100644 --- a/hardware/openbench-logic-sniffer/ols.h +++ b/hardware/openbench-logic-sniffer/ols.h @@ -1,7 +1,7 @@ /* * This file is part of the sigrok project. * - * Copyright (C) 2011 Bert Vermeulen + * Copyright (C) 2012 Bert Vermeulen * * 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 @@ -17,8 +17,8 @@ * along with this program. If not, see . */ -#ifndef OLS_H_ -#define OLS_H_ +#ifndef LIBSIGROK_HARDWARE_OPENBENCH_LOGIC_SNIFFER_OLS_H +#define LIBSIGROK_HARDWARE_OPENBENCH_LOGIC_SNIFFER_OLS_H #define NUM_PROBES 32 #define NUM_TRIGGER_STAGES 4 @@ -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; @@ -83,11 +82,13 @@ struct ols_device { 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_ */ +#endif