]> sigrok.org Git - libsigrok.git/blobdiff - hardware/tondaj-sl-814/protocol.h
tondaj-sl-814: use new serial API
[libsigrok.git] / hardware / tondaj-sl-814 / protocol.h
index f7877db7957610a4bb1c73ac043fac34d122a52f..2ab69b658058c8bbbdba0816cce738ec092c665e 100644 (file)
@@ -47,6 +47,13 @@ struct dev_context {
 
        /** The current number of already received samples. */
        uint64_t num_samples;
+
+       struct sr_serial_dev_inst *serial;
+
+       int state;
+
+       uint8_t buf[4];
+       uint8_t buflen;
 };
 
 SR_PRIV int tondaj_sl_814_receive_data(int fd, int revents, void *cb_data);