]> sigrok.org Git - libsigrok.git/blobdiff - hardware/ikalogic-scanalogic2/protocol.h
Rename various *PROBE* macros to *CHANNEL*.
[libsigrok.git] / hardware / ikalogic-scanalogic2 / protocol.h
index add5dda89553dfcff8b36e40693f4789a5fd8841..3b411e69362de7d3258a845d163d392ad441a933 100644 (file)
@@ -47,7 +47,7 @@
 #define USB_HID_REPORT_TYPE_FEATURE    0x300
 
 #define NUM_SAMPLERATES                        11
-#define NUM_PROBES                     4
+#define NUM_CHANNELS                   4
 
 #define TRIGGER_TYPES                  "rfc"
 
@@ -151,8 +151,8 @@ struct dev_context {
 
        void *cb_data;
 
-       /* Array to provide an index based access to all probes. */
-       const struct sr_probe *probes[NUM_PROBES];
+       /* Array to provide an index based access to all channels. */
+       const struct sr_channel *channels[NUM_CHANNELS];
 
        struct libusb_transfer *xfer_in, *xfer_out;
 
@@ -194,7 +194,7 @@ struct dev_context {
         * channel except the last one. The samples of the last channel will be
         * processed directly after they will be received.
         */
-       uint8_t sample_buffer[NUM_PROBES - 1][MAX_DEV_SAMPLE_BYTES];
+       uint8_t sample_buffer[NUM_CHANNELS - 1][MAX_DEV_SAMPLE_BYTES];
 
        /* Expected number of sample packets for each channel. */
        uint16_t num_sample_packets;
@@ -208,11 +208,11 @@ struct dev_context {
        /* Channel number that is currently processed. */
        uint8_t channel;
 
-       /* Number of enabled probes. */
-       unsigned int num_enabled_probes;
+       /* Number of enabled channels. */
+       unsigned int num_enabled_channels;
 
-       /* Array to provide a sequential access to all enabled probe indices. */
-       uint8_t probe_map[NUM_PROBES];
+       /* Array to provide a sequential access to all enabled channel indices. */
+       uint8_t channel_map[NUM_CHANNELS];
 
        /* Indicates whether a transfer failed. */
        gboolean transfer_error;