X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fserial-dmm%2Fprotocol.h;h=9749345604589328e7b619b3e0f55b39cf145ca5;hb=4fdedbbb3a5f0caf2765bade0d109b6f917f5f41;hp=8c21f9d975847dcce16cde3eb5866cef45b70edb;hpb=9f51c463d1bfd182ddf8ae1c5bc83377ef93d2bc;p=libsigrok.git diff --git a/src/hardware/serial-dmm/protocol.h b/src/hardware/serial-dmm/protocol.h index 8c21f9d9..97493456 100644 --- a/src/hardware/serial-dmm/protocol.h +++ b/src/hardware/serial-dmm/protocol.h @@ -35,11 +35,15 @@ struct dmm_info { uint32_t baudrate; /** Packet size in bytes. */ int packet_size; - /** Request timeout [ms] before request is considered lost and a new - * one is sent. Used only if device needs polling. */ + /** + * Request timeout [ms] before request is considered lost and a new + * one is sent. Used only if device needs polling. + */ int64_t req_timeout_ms; - /** Delay between reception of packet and next request. Some DMMs - * need this. Used only if device needs polling. */ + /** + * Delay between reception of packet and next request. Some DMMs + * need this. Used only if device needs polling. + */ int64_t req_delay_ms; /** Packet request function. */ int (*packet_request)(struct sr_serial_dev_inst *); @@ -47,9 +51,9 @@ struct dmm_info { gboolean (*packet_valid)(const uint8_t *); /** Packet parsing function. */ int (*packet_parse)(const uint8_t *, float *, - struct sr_datafeed_analog_old *, void *); + struct sr_datafeed_analog *, void *); /** */ - void (*dmm_details)(struct sr_datafeed_analog_old *, void *); + void (*dmm_details)(struct sr_datafeed_analog *, void *); /** Size of chipset info struct. */ gsize info_size; }; @@ -64,8 +68,10 @@ struct dev_context { int bufoffset; int buflen; - /** The timestamp [µs] to send the next request. - * Used only if device needs polling. */ + /** + * The timestamp [µs] to send the next request. + * Used only if device needs polling. + */ int64_t req_next_at; };