/*
* This file is part of the sigrok project.
*
- * Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
+ * Copyright (C) 2010-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
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#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
#define FLAG_CLOCK_INVERTED 0x80
#define FLAG_RLE 0x0100
-struct ols_device {
+/* Private, per-device-instance driver context. */
+struct context {
uint32_t max_samplerate;
uint32_t max_samples;
uint32_t protocol_version;
unsigned char tmp_sample[4];
unsigned char *raw_sample_buf;
- struct sr_serial_device_instance *serial;
+ struct sr_serial_dev_inst *serial;
};
-#endif /* OLS_H_ */
+#endif