STRUCT VEML6046X00_RF(9)
π struct veml6046x00_rf β Kernel API Manual β¨
okay so bestie, welcome to the Kernel API Manual π«Ά (that's the manual name, we're folding it in right here at the top, you're welcome). Today's main character is struct veml6046x00_rf, and it is, and I cannot stress this enough, the regmap field of configuration registers. that's the whole vibe. π
π¦ NAME π¦
struct veml6046x00_rf β Regmap field of configuration registers. like literally that's it, that's the function. iconic. β¨
πΈ SYNOPSIS πΈ
here's the whole struct, no cap, every field exactly where it lives:
struct veml6046x00_rf {
struct regmap_field *int_en;
struct regmap_field *mode;
struct regmap_field *trig;
struct regmap_field *it;
struct regmap_field *pers;
};
look at her. five struct regmap_field * pointers, all in a little row, all holding hands. we love a tidy struct. π
π Members π
int_enβ Interrupt enable of green channel. π that's the one that decides whether the green channel gets to yell at you or not.modeβ Mode of operation. plot twist: the driver uses always Active force mode. no switching, no drama, just Active force mode forever. periodt.trigβ Trigger to be set in active force mode for starting measurement. it's the little go-button, the "start measuring bestie" flag. π₯itβ Integration time. β±οΈ how long the sensor sits there and integrates before it's like "okay, done."persβ Persistense β Number of threshold crossing for triggering interrupt. yes that's spelled exactly like that in the original, and yes it's spelling it as Persistense β how many times the threshold has to be crossed before an interrupt actually gets triggered. she's patient. she persists. π
π SEE ALSO π
go look at these, iykyk:
- Kernel file
./drivers/iio/light/veml6046x00.c struct veml6046x00_data(9)- Valid integration times (IT)(9)
- Handling of gain and photodiode size (PD)(9)
struct veml6046x00_gain_pd(9)- Factors for calculation of lux(9)
veml6046x00_read_data_ready(9)veml6046x00_wait_data_available(9)
and that's the whole page, bestie! π§ this little cutie lives in ./drivers/iio/light, the version is from October 2026, and she answers to the name struct veml6046x00_rf(9). mwah, slay, go read the driver file now. ππ
π¦ 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