]> sigrok.org Git - libsigrok.git/blobdiff - include/libsigrok/proto.h
Add analog helper sr_analog_unit_to_string().
[libsigrok.git] / include / libsigrok / proto.h
index dfce6aa2d246392bab088506ebd7bd8442bb92bf..e69346057c10efea9068ca41203ad5b2890ef840 100644 (file)
 
 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);
+SR_API int sr_analog_unit_to_string(const struct sr_datafeed_analog2 *analog,
+               char *outbuf, int bufsize);
 
 /*--- backend.c -------------------------------------------------------------*/