STRUCT CM3605(9)
π NAME π
Okay so bestie, welcome to the struct cm3605(9) page from the Kernel API Manual β yes, the manual name is folded in right here, no boring header copy. This is the CM3605 state struct: struct cm3605 β CM3605 state. Itβs giving βsmall struct, very important state energyβ and weβre obsessed. π
β¨ SYNOPSIS β¨
Hereβs the struct exactly as it lives, no cap β keep every field and type character-for-character:
struct cm3605 {
struct device *dev;
struct regulator *vdd;
struct gpio_desc *aset;
struct iio_channel *aout;
s32 als_max;
enum iio_event_direction dir;
struct led_trigger *led;
};
π«Ά Members π«Ά
devβ pointer to parent device. The main-character link back to the parent device, fr.vddβ regulator controlling VDD. Itβs the regulator in charge of VDD β power-management bestie.asetβ sleep enable GPIO, high = sleep. Read that again: high = sleep, no cap. π΄aoutβ IIO ADC channel to convert the AOUT signal. This is the IIO ADC channel doing the AOUT conversion β thatβs its whole lane.als_maxβ maximum LUX detection (depends on RSET). Itβs the max LUX detection, and yes, it depends on RSET β lowkey tied together.dirβ proximity direction: start as FALLING. The proximity direction starts as FALLING; thatβs the opening vibe. πledβ trigger for the infrared LED used by the proximity sensor. Itβs the trigger for the infrared LED that the proximity sensor uses. Iconic.
π₯ SEE ALSO π₯
Kernel file ./drivers/iio/light/cm3605.c β thatβs the kernel file to check, periodt. π«Ά
Bye bestie π this page is signed off from the source/version ./drivers/iio/light, dated October 2026, and itβs all about struct cm3605(9) πβ¨
π¦ 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