iio_read_cha..._average_raw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– iio_read_channel_average_raw β€” Kernel API Manual (9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for iio_read_channel_average_raw β€” yes, the average-raw read girlie is here and she's lowkey iconic. ✨


🌸 NAME 🌸

iio_read_channel_average_raw β€” read from a given channel.

✨ SYNOPSIS ✨

int iio_read_channel_average_raw (struct iio_channel *chan , int *val );

πŸŽ€ ARGUMENTS πŸŽ€

  • chan β€” The channel being queried. like, the channel you're asking, bestie πŸ’…
  • val β€” Value read back. the read-back value lands here 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay, important note, bestie: if standard units are required, raw reads from iio channels need the offset (default 0) and scale (default 1) to be applied as:

(raw + offset) * scale

and in contrast to the normal iio_read_channel_raw, this function returns the average of multiple reads. periodt. 🌿

🌈 SEE ALSO 🌈

the SEE ALSO squad is huge and we're obsessed β€” full list, no skips, fr fr:

that's the whole page, babe β€” xoxo, your kernel bestie πŸ’‹πŸ’…. source/version: ./include/linux/iio; date: October 2026. πŸŽ€βœ¨

πŸ“¦ where this page comes from