]> sigrok.org Git - libsigrok.git/blobdiff - include/libsigrok/proto.h
Add analog helper sr_analog_float_to_string().
[libsigrok.git] / include / libsigrok / proto.h
index dfce6aa2d246392bab088506ebd7bd8442bb92bf..0f4b98848914ab1f95e1848fc564a6e9a46f38e0 100644 (file)
@@ -30,6 +30,8 @@
 
 SR_API int sr_analog_to_float(const struct sr_datafeed_analog2 *analog,
                float *buf);
+SR_API int sr_analog_float_to_string(float value, int digits, char *outbuf,
+               int bufsize);
 
 /*--- backend.c -------------------------------------------------------------*/