X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsaleae-logic-pro%2Fprotocol.h;h=ca80f258ef4956e79bf4e1207d56593d1c2833ba;hb=f2b8a31be5d9cdbd6c50257de78c125f2bb25c74;hp=7fb099ca2a2a5fba1e4ed229043ac8879491c888;hpb=b6189f7c8af7d8eed6bdcf75fa05c95d8120c9b8;p=libsigrok.git diff --git a/src/hardware/saleae-logic-pro/protocol.h b/src/hardware/saleae-logic-pro/protocol.h index 7fb099ca..ca80f258 100644 --- a/src/hardware/saleae-logic-pro/protocol.h +++ b/src/hardware/saleae-logic-pro/protocol.h @@ -28,12 +28,13 @@ #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 {