]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/baylibre-acme/protocol.h
baylibre-acme: Add a workaround for slow data acquisition.
[libsigrok.git] / src / hardware / baylibre-acme / protocol.h
index 13c00fe684679b9ec3aaeae9935909f11240447e..a3f4452c12e1d67ae2ce07fdd55e904c133d1985 100644 (file)
@@ -65,9 +65,10 @@ struct dev_context {
 
        uint32_t num_channels;
        uint64_t samples_read;
+       uint64_t samples_missed;
        int64_t start_time;
        int64_t last_sample_fin;
-       int pipe_fds[2];
+       int timer_fd;
        GIOChannel *channel;
 };
 
@@ -98,4 +99,7 @@ SR_PRIV int bl_acme_set_power_off(const struct sr_channel_group *cg,
 
 SR_PRIV int bl_acme_receive_data(int fd, int revents, void *cb_data);
 
+SR_PRIV int bl_acme_open_channel(struct sr_channel *ch);
+
+SR_PRIV void bl_acme_close_channel(struct sr_channel *ch);
 #endif