HANDLING OF GAIN AND PHOTODIODE SIZE (PD)(9)
π Handling of gain and photodiode size (PD) π
okay bestie, this is a Kernel API Manual page, section (9), and it's literally about how gain and photodiode size (PD) team up in the driver. no cap π«Ά
So here's the tea: the gains here in the driver are not exactly the same as in the datasheet of the sensor. The gain in the driver is a combo of the gain of the sensor and the photodiode size (PD). iconic, but also a little "math is math" moment π
The following combinations are possible:
gain(driver) = gain(sensor) * PD
0.25 = x0.5 * 1/2
0.33 = x0.66 * 1/2
0.5 = x0.5 * 2/2
0.66 = x0.66 * 2/2
1 = x1 * 2/2
2 = x2 * 2/2
That's the whole combo menu β every line stays exactly what it is, no remixes π
πΈ SEE ALSO πΈ
Kernel file: ./drivers/iio/light/veml6046x00.c
struct veml6046x00_rf(9)struct veml6046x00_data(9)Valid integration times (IT)(9)struct veml6046x00_gain_pd(9)Factors for calculation of lux(9)veml6046x00_read_data_ready(9)veml6046x00_wait_data_available(9)
that's the full guest list, bestie β don't leave anyone out π
β¨ cute sign-off: source/version is ./drivers/iio/light, date is October 2026, and the page is Handling of...de size (PD)(9) β mwah πβ¨
π¦ 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