cm3232_read_als_it(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cm3232_read_als_it ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– β€” this little page is all about cm3232_read_als_it, and honestly? she's a tiny function with one job and she does it. no cap.


🌸 NAME 🌸

cm3232_read_als_it β€” get the sensor integration time, that's it, that's the whole vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int cm3232_read_als_it (struct cm3232_chip *chip , int *val , int *val2 );

like yes, three args, she's a little greedy but she's iconic for it πŸ’…


πŸ“ ARGUMENTS πŸ“

  • chip β€” pointer of struct cm3232_chip 🫢 that's your chip, the main character of this whole situation.
  • val β€” pointer of int to load the integration (sec). so: the seconds part of your integration time lands here ⭐
  • val2 β€” pointer of int to load the integration time (microsecond). and the microseconds part lands here 🌈 (yes, it's split into two ints, that's just how we're doing it today, iykyk).

πŸ’œ DESCRIPTION πŸ’œ

Report the current integration time. πŸ“–βœ¨

literally that's her whole personality β€” she reads it back and reports it. no drama, no surprises, just numbers communicated to you like a good little helper 🧚


πŸ”₯ RETURN πŸ”₯

  • IIO_VAL_INT_PLUS_MICRO for success πŸŽ‰ (slay)
  • otherwise -EINVAL πŸ’€ (not slay, something went sideways)

πŸ‘‘ SEE ALSO πŸ‘‘

like, read the friends too, they're all in the same group chat fr fr 🫢


and that's the page!! πŸŽ€βœ¨ this little cutie lives under ./drivers/iio/light and the version/date on the original was October 2026 β€” mwah, go read the source, ily, bye πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from