iio_gts_get_scale(9)
π iio_gts_get_scale(9) β from the Kernel API Manual, bestie
okay so like, hi, welcome to the group chat that is the kernel API docs β¨ today's main character is iio_gts_get_scale(9), and she's here to get you a scale based on integration time and HW-gain. no cap, that's literally the whole job. π
β¨ NAME β¨
iio_gts_get_scale β get scale based on integration time and HW-gain π¦
πΈ SYNOPSIS πΈ
int iio_gts_get_scale (struct iio_gts *gts , int gain , int time , int
*scale_int , int *scale_nano );
like, she takes five things and gives you back an int, periodt. π
π ARGUMENTS π
gtsβ the Gain time scale descriptor. she's the whole vibe, the source of truth π«Άgainβ the HW-gain you want the scale computed fortimeβ the integration time you want the scale computed forscale_intβ the integral part of the scale (typicallyval1) β¨scale_nanoβ the fractional part of the scale (nano or ppb). yes bestie, pick your unit π
π DESCRIPTION π
So what does she actually do? She computes a scale that matches the integration time and HW-gain you handed her as parameters. that's it. that's the function. lowkey iconic for it. π
β RETURN β
0 on success. that's the whole list, ngl β success is a zero and zero is a slay π
π¦ SEE ALSO π¦
like, the whole friend group, fr fr β Kernel file ./drivers/iio/industrialio-gts-helper.c, plus:
iio_gts_get_gain(9)gain_get_scale_fraction(9)iio_gts_total_gain_to_scale(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_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)
aaaand that's the page!! π§ this little diva lives in ./drivers/iio, dated October 2026, and she ate, no crumbs. mwah ππ
π¦ 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