Scaled parameters
include/scaled_param.h View source View on GitHubStructs
Section titled “Structs”scaled_param
Section titled “scaled_param” struct scaled_param (7 fields) source
§
enum scale_curve curve §
size_t min_val §
size_t def_val §
size_t max_val §
const char *unit §
scaling_fn_t custom_scale §
scaled_param_print_fn_t custom_print scale_curve
Section titled “scale_curve” enum scale_curve : uint8_t (6 variants) source
Type Aliases
Section titled “Type Aliases”scaling_fn_t
Section titled “scaling_fn_t”scaled_param_print_fn_t
Section titled “scaled_param_print_fn_t”Functions
Section titled “Functions”scaled_param_eval
Section titled “scaled_param_eval”size_t scaled_param_eval(
const struct scaled_param *desc,
fx32_32_t value
) source scaled_param_format
Section titled “scaled_param_format”size_t scaled_param_format(
const struct scaled_param *desc,
fx32_32_t value,
size_t scaled_val,
char *buf,
size_t cap
) source