]> sigrok.org Git - libsigrok.git/blobdiff - hardware/openbench-logic-sniffer/protocol.h
Rename various *PROBE* macros to *CHANNEL*.
[libsigrok.git] / hardware / openbench-logic-sniffer / protocol.h
index 111ac69f2dfd3987b8f7a5811df14c3a7d1e5988..98831b586ef7ce4a16e6172fe63cfa7cb236ffa5 100644 (file)
@@ -28,7 +28,7 @@
 
 #define LOG_PREFIX "ols"
 
-#define NUM_PROBES             32
+#define NUM_CHANNELS             32
 #define NUM_TRIGGER_STAGES     4
 #define TRIGGER_TYPE           "01"
 #define SERIAL_SPEED           B115200
@@ -56,7 +56,7 @@
 /* 12-13 unused, 14-15 RLE mode (we hardcode mode 0). */
 #define FLAG_INTERNAL_TEST_MODE    (1 << 11)
 #define FLAG_EXTERNAL_TEST_MODE    (1 << 10)
-#define FLAG_SWAP_PROBES           (1 << 9)
+#define FLAG_SWAP_CHANNELS           (1 << 9)
 #define FLAG_RLE                   (1 << 8)
 #define FLAG_SLOPE_FALLING         (1 << 7)
 #define FLAG_CLOCK_EXTERNAL        (1 << 6)
@@ -103,7 +103,7 @@ struct dev_context {
 };
 
 
-SR_PRIV extern const char *ols_channel_names[NUM_PROBES + 1];
+SR_PRIV extern const char *ols_channel_names[NUM_CHANNELS + 1];
 
 SR_PRIV int send_shortcommand(struct sr_serial_dev_inst *serial,
                uint8_t command);