#define LOG_PREFIX "sysclk-lwla"
#include <stdint.h>
+#include <libusb.h>
#include <glib.h>
#include <libsigrok/libsigrok.h>
#include <libsigrok-internal.h>
USB_TIMEOUT_MS = 3000,
};
+/** USB device end points.
+ */
+enum usb_endpoint {
+ EP_COMMAND = 2,
+ EP_CONFIG = 4,
+ EP_REPLY = 6 | LIBUSB_ENDPOINT_IN
+};
+
/** LWLA1034 clock sources.
*/
enum clock_source {
*/
struct dev_context {
uint64_t samplerate; /* requested samplerate */
-
uint64_t limit_msec; /* requested capture duration in ms */
uint64_t limit_samples; /* requested capture length in samples */
- uint64_t channel_mask; /* bit mask of enabled channels */
-
+ uint64_t channel_mask; /* bit mask of enabled channels */
uint64_t trigger_mask; /* trigger enable mask */
uint64_t trigger_edge_mask; /* trigger type mask */
uint64_t trigger_values; /* trigger level/slope bits */