X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fserial-lcr%2Fprotocol.h;h=4a6e7f043f840c4e95db50d67bd401bd8fd642b2;hb=d2cc60bd4511c1154eef67e4c7abccb3fd34faab;hp=8e11733c423e4ae44d8f37afbc26a57b9ac17a8c;hpb=bf5c4d46f8453f810b6f7615d2c16c9f752f9246;p=libsigrok.git diff --git a/src/hardware/serial-lcr/protocol.h b/src/hardware/serial-lcr/protocol.h index 8e11733c..4a6e7f04 100644 --- a/src/hardware/serial-lcr/protocol.h +++ b/src/hardware/serial-lcr/protocol.h @@ -33,8 +33,11 @@ struct lcr_info { const char *vendor; const char *model; size_t channel_count; + 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); @@ -59,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);