]> sigrok.org Git - libsigrok.git/blobdiff - hardware/lascar-el-usb/protocol.h
lascar-el-usb: add scanning functionality
[libsigrok.git] / hardware / lascar-el-usb / protocol.h
index ea3e4c81f049d4e3a5f3d9696220deb36113c2d2..4aa2e2d6f13d2b5d3eb2168a9bbd10cc792ca03f 100644 (file)
@@ -46,6 +46,23 @@ struct dev_context {
 
        /** The current number of already received samples. */
        uint64_t num_samples;
+
+       struct sr_usb_dev_inst *usb;
+       const struct elusb_profile *profile;
+       /* Only requires 3 really. */
+       int usbfd[10];
+};
+
+enum {
+       LOG_UNSUPPORTED,
+       LOG_TEMP_RH,
+       LOG_CO,
+};
+
+struct elusb_profile {
+       int modelid;
+       char *modelname;
+       int logformat;
 };
 
 SR_PRIV int lascar_el_usb_receive_data(int fd, int revents, void *cb_data);