iio_gts_get_scale(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 for
  • time β€” the integration time you want the scale computed for
  • scale_int β€” the integral part of the scale (typically val1) ✨
  • 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:


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