X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbrymen-dmm%2Fprotocol.h;h=ec839d48495229f1abd71bcc2dc6424919595310;hb=2dddd5bd5edc3282df09d6d251b9754d3418c233;hp=be26cb965dc628a2b3dcd64cd5bd4d7080becc72;hpb=dcba0c41f5345a4c5316128aac44732625faff6e;p=libsigrok.git diff --git a/src/hardware/brymen-dmm/protocol.h b/src/hardware/brymen-dmm/protocol.h index be26cb96..ec839d48 100644 --- a/src/hardware/brymen-dmm/protocol.h +++ b/src/hardware/brymen-dmm/protocol.h @@ -38,10 +38,8 @@ enum packet_len_status { PACKET_INVALID_HEADER, }; -/** Private, per-device-instance driver context. */ struct dev_context { struct sr_sw_limits sw_limits; - uint8_t buf[DMM_BUFSIZE]; int bufoffset; int buflen; @@ -64,12 +62,12 @@ SR_PRIV int brymen_packet_length(const uint8_t *buf, int *len); SR_PRIV gboolean brymen_packet_is_valid(const uint8_t *buf); SR_PRIV int brymen_parse(const uint8_t *buf, float *floatval, - struct sr_datafeed_analog_old *analog, void *info); + struct sr_datafeed_analog *analog, void *info); SR_PRIV int brymen_stream_detect(struct sr_serial_dev_inst *serial, - uint8_t *buf, size_t *buflen, - packet_length_t get_packet_size, - packet_valid_callback is_valid, - uint64_t timeout_ms, int baudrate); + uint8_t *buf, size_t *buflen, + packet_length_t get_packet_size, + packet_valid_callback is_valid, + uint64_t timeout_ms, int baudrate); #endif