X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Flibsigrok%2Fproto.h;h=c799919e267a710dfed69de94db5a303dec8edd9;hb=962172e4950f3fbc42d5a79cdf63dc179d7513be;hp=1a3fba8c048fd9f2a6ae6989a3bad3babcf04d51;hpb=17d5a11c69ebd7dd0a62a6e2466d3d8ce05b9d03;p=libsigrok.git diff --git a/include/libsigrok/proto.h b/include/libsigrok/proto.h index 1a3fba8c..c799919e 100644 --- a/include/libsigrok/proto.h +++ b/include/libsigrok/proto.h @@ -30,6 +30,7 @@ SR_API int sr_analog_to_float(const struct sr_datafeed_analog *analog, float *buf); +SR_API const char *sr_analog_si_prefix(float *value, int *digits); SR_API int sr_analog_unit_to_string(const struct sr_datafeed_analog *analog, char **result); SR_API void sr_rational_set(struct sr_rational *r, int64_t p, uint64_t q);