X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fvictor-dmm%2Fprotocol.h;h=debce560729a391cfc9c4688e488bbafb99f85f2;hb=3292535c878ec82756c122facddf61bbd81bec18;hp=cab7777402c8c19b78bcacf0a01527a318572666;hpb=7a36037546aaf11b91ff5d63fbd571e15407e357;p=libsigrok.git diff --git a/hardware/victor-dmm/protocol.h b/hardware/victor-dmm/protocol.h index cab77774..debce560 100644 --- a/hardware/victor-dmm/protocol.h +++ b/hardware/victor-dmm/protocol.h @@ -33,6 +33,8 @@ #define sr_warn(s, args...) sr_warn(DRIVER_LOG_DOMAIN s, ## args) #define sr_err(s, args...) sr_err(DRIVER_LOG_DOMAIN s, ## args) +#define DMM_DATA_SIZE 14 + /** Private, per-device-instance driver context. */ struct dev_context { /** The current sampling limit (in number of samples). */ @@ -48,11 +50,10 @@ struct dev_context { uint64_t num_samples; gint64 end_time; - struct sr_usb_dev_inst *usb; /* Only requires 3 really. */ int usbfd[10]; }; -SR_PRIV int victor_dmm_receive_data(int fd, int revents, void *cb_data); +SR_PRIV int victor_dmm_receive_data(struct sr_dev_inst *sdi, unsigned char *buf); #endif