X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fvictor-dmm%2Fprotocol.h;h=e4ed84428bcdbd827148ecaec3f7ad31f137674a;hb=21a7f2692e09269edd872bca4e25a9d06b67c0e5;hp=beea3e8247b4b5a3acd0032c60a7cb24b4246718;hpb=ac3898d2d09f54862522967f10487a0708df810c;p=libsigrok.git diff --git a/hardware/victor-dmm/protocol.h b/hardware/victor-dmm/protocol.h index beea3e82..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). */ @@ -46,8 +48,13 @@ struct dev_context { /** The current number of already received samples. */ 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