]> 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 0f4b98848914ab1f95e1848fc564a6e9a46f38e0..e69346057c10efea9068ca41203ad5b2890ef840 100644 (file)
@@ -32,6 +32,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);
+SR_API int sr_analog_unit_to_string(const struct sr_datafeed_analog2 *analog,
+               char *outbuf, int bufsize);
 
 /*--- backend.c -------------------------------------------------------------*/