X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fbrymen-dmm%2Fprotocol.h;h=7c9aaae6cd0710b8c3f3d41823eeb159243eeb5a;hb=a4e435eb49c1fa30c31d5851b404001324cafe33;hp=e6d2e560d66f1b88938a2cf0558ebae5077bb0a4;hpb=3544f848e0d7f67af8e11ce7ec344b34cd797df3;p=libsigrok.git diff --git a/hardware/brymen-dmm/protocol.h b/hardware/brymen-dmm/protocol.h index e6d2e560..7c9aaae6 100644 --- a/hardware/brymen-dmm/protocol.h +++ b/hardware/brymen-dmm/protocol.h @@ -76,10 +76,13 @@ SR_PRIV int brymen_packet_request(struct sr_serial_dev_inst *serial); 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 *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_t is_valid, + packet_valid_callback is_valid, uint64_t timeout_ms, int baudrate); #endif