X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fserial-lcr%2Fprotocol.h;h=4a6e7f043f840c4e95db50d67bd401bd8fd642b2;hb=50bc52f3a6102ad687c8abe11cf1e39ab44b1e6a;hp=292a10eae7dafcb1047818d8cb5cec49a798768d;hpb=3f5473dde2044130f8cb405e2a3ebb43c226a474;p=libsigrok.git diff --git a/src/hardware/serial-lcr/protocol.h b/src/hardware/serial-lcr/protocol.h index 292a10ea..4a6e7f04 100644 --- a/src/hardware/serial-lcr/protocol.h +++ b/src/hardware/serial-lcr/protocol.h @@ -36,6 +36,8 @@ struct lcr_info { const char **channel_formats; const char *comm; size_t packet_size; + int64_t req_timeout_ms; + int (*packet_request)(struct sr_serial_dev_inst *serial); gboolean (*packet_valid)(const uint8_t *pkt); int (*packet_parse)(const uint8_t *pkt, float *value, struct sr_datafeed_analog *analog, void *info); @@ -60,6 +62,7 @@ struct dev_context { struct lcr_parse_info parse_info; uint64_t output_freq; const char *circuit_model; + int64_t req_next_at; }; SR_PRIV int lcr_receive_data(int fd, int revents, void *cb_data);