STRUCT GP2AP002(9)
β¨ struct gp2ap002 β GP2AP002 state β¨
okay so this is from the Kernel API Manual, section 9 (that's the kernel-API section, iykyk) β it's the page for struct gp2ap002. Buckle up bestie, it's a struct tour π
πΈ SYNOPSIS πΈ
here's the whole thing, character for character, no cap:
struct gp2ap002 {
struct regmap *map;
struct device *dev;
struct regulator *vdd;
struct regulator *vio;
struct iio_channel *alsout;
u8 hys_far;
u8 hys_close;
bool is_gp2ap002s00f;
int irq;
bool enabled;
};
π Members π
mapβ theregmappointer for the i2c regmap. that's her main character pointer fr.devβ pointer to the parent device π«Άvddβ the regulator controlling VDD, keeping the power situation iconicvioβ the regulator controlling VIO β¨alsoutβ the IIO ADC channel used to convert the ALSOUT signal πhys_farβ hysteresis control, straight from the device treehys_closeβ hysteresis control, also straight from the device treeis_gp2ap002s00fβ aboolthat says this is the GP2AP002F variant of the chip πirqβ the IRQ line this device uses, she's got her own line πenabledβ ok so this one's important: we literally cannot read the status of the hardware, so we have to keep track of whether the event is enabled using this state variable. soenabledis basically the memory of the relationship π
π SEE ALSO π
- Kernel file
./drivers/iio/light/gp2ap002.c
that's the whole vibe check. stay slay, stay compiled π
β§ο½₯οΎ: β§ο½₯οΎ: this page lives in ./drivers/iio/light, comes to you from October 2026, and it's struct gp2ap002(9) all the way down β mwah, see u in the next manpage ππ¦π
π¦ 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