iio_gts_total_gain_to_scale(9)
π NAME π
okay so bestie, this is the iio_gts_total_gain_to_scale(9) page from the Kernel API Manual, and its whole thing is convert gain to scale. literally the function name says it all. π
β¨ SYNOPSIS β¨
the signature is giving:
int iio_gts_total_gain_to_scale (struct iio_gts *gts , int total_gain ,
int *scale_int , int *scale_nano );
πΈ ARGUMENTS πΈ
gtsβ the gain time scale descriptor, aka the main character struct. πtotal_gainβ the gain that's getting converted, fr fr.scale_intβ pointer to the integral part of the scale (typicallyval1).scale_nanoβ pointer to the fractional part of the scale (nanoorppb).
π¦ DESCRIPTION π¦
So this cutie converts the total gain value to scale. that's the vibe. β¨
NOTE: this does not separate gain generated by HW-gain or integration time. It is up to caller to decide what part of the total gain is due to integration time and what due to HW-gain. β οΈ
like, that split is not this function's job β the caller has to figure out which part is which. no cap.
π₯ RETURN π₯
0 on success. Negative errno on failure. slay when it's zero, weep when it's negative. π
π SEE ALSO π
Kernel file: ./drivers/iio/industrialio-gts-helper.c β go peek, bestie. π then these related icons:
iio_gts_get_gain(9)gain_get_scale_fraction(9)iio_gts_purge_avail_scale_table(9)iio_gts_build_avail_scale_table(9)iio_gts_build_avail_time_table(9)iio_gts_purge_avail_time_table(9)iio_gts_build_avail_tables(9)iio_gts_purge_avail_tables(9)devm_iio_gts_build_avail_tables(9)devm_iio_init_iio_gts(9)iio_gts_all_avail_scales(9)iio_gts_avail_scales_for_time(9)iio_gts_avail_times(9)iio_gts_find_sel_by_gain(9)iio_gts_find_gain_by_sel(9)iio_gts_get_min_gain(9)iio_find_closest_gain_low(9)iio_gts_find_gain_for_scale_using_time(9)iio_gts_find_gain_sel_for_scale_using_time(9)iio_gts_find_gain_time_sel_for_scale(9)iio_gts_get_total_gain(9)iio_gts_get_scale(9)iio_gts_find_new_gain_sel_by_old_gain_time(9)iio_gts_find_new_gain_by_old_gain_time(9)iio_gts_find_new_gain_by_gain_time_min(9)
π that's the whole page, bestie. source/version: ./drivers/iio; date: October 2026. catch you in the next manpage! π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms