]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/saleae-logic-pro/protocol.h
saleae-logic-pro: Use sr_dev_acquisition_stop() wrapper.
[libsigrok.git] / src / hardware / saleae-logic-pro / protocol.h
index 7fb099ca2a2a5fba1e4ed229043ac8879491c888..ca80f258ef4956e79bf4e1207d56593d1c2833ba 100644 (file)
 #define LOG_PREFIX "saleae-logic-pro"
 
 /* 16 channels * 32 samples */
-#define CONV_BATCH_SIZE (2*32)
-/* one packet + one partial conversion:
- * worst case is only one active channel converted to 2 bytes per sample, with
- * 8*16384 samples per packet
+#define CONV_BATCH_SIZE (2 * 32)
+
+/*
+ * One packet + one partial conversion: Worst case is only one active
+ * channel converted to 2 bytes per sample, with 8 * 16384 samples per packet.
  */
-#define CONV_BUFFER_SIZE (2*8*16384 + CONV_BATCH_SIZE)
+#define CONV_BUFFER_SIZE (2 * 8 * 16384 + CONV_BATCH_SIZE)
 
 /** Private, per-device-instance driver context. */
 struct dev_context {