X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Flascar-el-usb%2Fprotocol.h;fp=hardware%2Flascar-el-usb%2Fprotocol.h;h=4aa2e2d6f13d2b5d3eb2168a9bbd10cc792ca03f;hb=851d5b2274f138d58be42adbbe584d9a4c4dfe01;hp=ea3e4c81f049d4e3a5f3d9696220deb36113c2d2;hpb=402704445e081ef7737081885496169f91af7ab9;p=libsigrok.git diff --git a/hardware/lascar-el-usb/protocol.h b/hardware/lascar-el-usb/protocol.h index ea3e4c81..4aa2e2d6 100644 --- a/hardware/lascar-el-usb/protocol.h +++ b/hardware/lascar-el-usb/protocol.h @@ -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);