X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsysclk-lwla%2Fprotocol.h;h=23c2728ab308588afd226b6d80f42bf956fd37b2;hb=b15ff1c92aabeea04649de25a3a01f851ab0a1ec;hp=ebfc704a97417b7737f8cd1c7fb11ac0fba93639;hpb=d64b5f43ccaab6d490da05b84fa9b31b7cccfcb7;p=libsigrok.git diff --git a/src/hardware/sysclk-lwla/protocol.h b/src/hardware/sysclk-lwla/protocol.h index ebfc704a..23c2728a 100644 --- a/src/hardware/sysclk-lwla/protocol.h +++ b/src/hardware/sysclk-lwla/protocol.h @@ -28,8 +28,6 @@ #include #include -#define VENDOR_NAME "SysClk" - /* Maximum configurable sample count limit. * Due to compression, there is no meaningful hardware limit the driver * could report. So this value is less than 2^64-1 for no reason other @@ -46,46 +44,40 @@ struct acquisition_state; -/* USB vendor and product IDs. - */ +/* USB vendor and product IDs. */ enum { USB_VID_SYSCLK = 0x2961, USB_PID_LWLA1016 = 0x6688, USB_PID_LWLA1034 = 0x6689, }; -/* USB device characteristics. - */ +/* USB device characteristics. */ enum { USB_CONFIG = 1, USB_INTERFACE = 0, USB_TIMEOUT_MS = 1000, }; -/** USB device end points. - */ +/** USB device end points. */ enum usb_endpoint { EP_COMMAND = 2, EP_CONFIG = 4, EP_REPLY = 6 | LIBUSB_ENDPOINT_IN }; -/** LWLA1034 clock sources. - */ +/** LWLA1034 clock sources. */ enum clock_source { CLOCK_INTERNAL = 0, CLOCK_EXT_CLK, }; -/** LWLA1034 trigger sources. - */ +/** LWLA1034 trigger sources. */ enum trigger_source { TRIGGER_CHANNELS = 0, TRIGGER_EXT_TRG, }; -/** Edge choices for the LWLA1034 external clock and trigger inputs. - */ +/** Edge choices for the LWLA1034 external clock and trigger inputs. */ enum signal_edge { EDGE_POSITIVE = 0, EDGE_NEGATIVE, @@ -96,8 +88,7 @@ enum { FPGA_NOCONF = -1, }; -/** Acquisition protocol states. - */ +/** Acquisition protocol states. */ enum protocol_state { /* idle states */ STATE_IDLE = 0, @@ -114,8 +105,6 @@ enum protocol_state { STATE_READ_REQUEST, }; -/** Private, per-device-instance driver context. - */ struct dev_context { uint64_t samplerate; /* requested samplerate */ uint64_t limit_msec; /* requested capture duration in ms */ @@ -142,8 +131,7 @@ struct dev_context { enum signal_edge cfg_trigger_slope; /* ext trigger slope setting */ }; -/** LWLA model descriptor. - */ +/** LWLA model descriptor. */ struct model_info { char name[12]; int num_channels;