X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsysclk-lwla%2Fprotocol.h;h=d890775bf75dc4f8ce42c5d2a5061a417fc8c7b0;hb=8d5228015d0f07ce6626aa52ffb80bc4129f7dbe;hp=a48d4556f82cc93c15c3860236ad638015fe90ad;hpb=db24496ac8575e917996e7812279987f2141c298;p=libsigrok.git diff --git a/src/hardware/sysclk-lwla/protocol.h b/src/hardware/sysclk-lwla/protocol.h index a48d4556..d890775b 100644 --- a/src/hardware/sysclk-lwla/protocol.h +++ b/src/hardware/sysclk-lwla/protocol.h @@ -22,11 +22,11 @@ #define LOG_PREFIX "sysclk-lwla" -#include "lwla.h" -#include "libsigrok.h" -#include "libsigrok-internal.h" #include #include +#include "libsigrok.h" +#include "libsigrok-internal.h" +#include "lwla.h" /* For now, only the LWLA1034 is supported. */ @@ -35,7 +35,7 @@ #define USB_VID_PID "2961.6689" #define USB_INTERFACE 0 -#define USB_TIMEOUT 3000 /* ms */ +#define USB_TIMEOUT_MS 3000 #define NUM_CHANNELS 34 @@ -46,7 +46,7 @@ /** Unit and packet size for the sigrok logic datafeed. */ #define UNIT_SIZE ((NUM_CHANNELS + 7) / 8) -#define PACKET_LENGTH 10000 /* units */ +#define PACKET_LENGTH (10 * 1000) /* units */ /** Size of the acquisition buffer in device memory units. */ @@ -207,10 +207,10 @@ struct dev_context { /** The samplerate selected by the user. */ uint64_t samplerate; - /** The maximimum sampling duration, in milliseconds. */ + /** The maximum sampling duration, in milliseconds. */ uint64_t limit_msec; - /** The maximimum number of samples to acquire. */ + /** The maximum number of samples to acquire. */ uint64_t limit_samples; /** Channels to use. */