cm3232_read_als_it(9)
β¨ 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 ofstruct cm3232_chipπ«Ά that's your chip, the main character of this whole situation.valβ pointer ofintto load the integration (sec). so: the seconds part of your integration time lands here βval2β pointer ofintto 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_MICROfor success π (slay)- otherwise
-EINVALπ (not slay, something went sideways)
π SEE ALSO π
- Kernel file
./drivers/iio/light/cm3232.c cm3232_reg_init(9)cm3232_write_als_it(9)cm3232_get_lux(9)cm3232_get_it_available(9)
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
- 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