X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fvictor-dmm%2Fprotocol.h;h=e4ed84428bcdbd827148ecaec3f7ad31f137674a;hb=c0bf69c29b138d18ee9f542985664eeaeeb47a0a;hp=cab7777402c8c19b78bcacf0a01527a318572666;hpb=7a36037546aaf11b91ff5d63fbd571e15407e357;p=libsigrok.git diff --git a/hardware/victor-dmm/protocol.h b/hardware/victor-dmm/protocol.h index cab77774..e4ed8442 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). */ @@ -53,6 +55,6 @@ struct dev_context { 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