X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Funi-t-ut32x%2Fprotocol.h;h=59f81eaf4cbf0d908e4ac9657d0c4e34d26d3d91;hb=c7a51272a58739c33f544eb84d9db94a2b7e8b45;hp=4010e179fc535414ea0ad5bc867709cdd52497f3;hpb=c1aae90038456a61d0f9313d34e6107c3440d3e7;p=libsigrok.git diff --git a/src/hardware/uni-t-ut32x/protocol.h b/src/hardware/uni-t-ut32x/protocol.h index 4010e179..59f81eaf 100644 --- a/src/hardware/uni-t-ut32x/protocol.h +++ b/src/hardware/uni-t-ut32x/protocol.h @@ -29,8 +29,6 @@ #define DEFAULT_DATA_SOURCE DATA_SOURCE_LIVE #define USB_CONN "1a86.e008" -#define VENDOR "UNI-T" -#define MODEL "UT32x" #define USB_INTERFACE 0 #define USB_CONFIGURATION 1 @@ -38,7 +36,7 @@ #define EP_OUT 2 enum { - DATA_SOURCE_LIVE, + DATA_SOURCE_LIVE, DATA_SOURCE_MEMORY, }; @@ -48,19 +46,14 @@ enum { CMD_GET_STORED = 7, }; -/** Private, per-device-instance driver context. */ struct dev_context { - /* Acquisition settings */ uint64_t limit_samples; gboolean data_source; - /* Operational state */ uint64_t num_samples; unsigned char buf[8]; struct libusb_transfer *xfer; - void *cb_data; - /* Temporary state across callbacks */ unsigned char packet[32]; int packet_len; };