X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fserial-dmm%2Fprotocol.h;h=c80180ce0b976c089036b8d26d4b50d249b3ef53;hb=f55bea7626d8bfa3a3d0bbff1e9f6ac98a6aadc5;hp=f8ecbb42b92174a93a27587fd976cec886ee03bd;hpb=ffa2b6f96c4160d7e38b9b7a02b352ddf2929cbb;p=libsigrok.git diff --git a/src/hardware/serial-dmm/protocol.h b/src/hardware/serial-dmm/protocol.h index f8ecbb42..c80180ce 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 *); @@ -56,7 +60,6 @@ struct dmm_info { #define DMM_BUFSIZE 256 -/** Private, per-device-instance driver context. */ struct dev_context { struct sr_sw_limits limits; @@ -64,8 +67,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; };