sht15_calc_humid(9)
π sht15_calc_humid(9) β like, the Kernel API Manual page, bestie π
okay so you found yourself in the kernel docs, section 9, and the function is sht15_calc_humid β¨ let's get into it
πΈ NAME πΈ
sht15_calc_humid β using last temperature convert raw to humid π (yes that's the official wording, she's quirky like that)
β¨ SYNOPSIS β¨
int sht15_calc_humid (struct sht15_data *data );
literally one argument, no drama π«Ά
π¦ ARGUMENTS π¦
dataβ device state β that's the whole vibe, it's the device state, that's what you're passing in π
π₯ DESCRIPTION π₯
okay so here's the tea β: this is the temperature compensated version, as per section 4.2 of the data sheet. like, the sensor girlies know that raw humidity readings without temp compensation are not it, and this function handles that for you π
The sensor is assumed to be V3, which is compatible with V4. no cap. The humidity conversion coefficients are shown in table 7 of the datasheet β go look at it, iykyk πβ¨
ngl, if you're using a sensor that is not V3-compatible, this assumption is doing a lot of heavy lifting, so double-check before you ship it π
π SEE ALSO π
bestie there are SO many friends in this family, buckle up π’
Kernel file ./drivers/hwmon/sht15.c, plus the whole squad:
struct sht15_temppair(9)struct sht15_data(9)sht15_crc8(9)sht15_connection_reset(9)sht15_send_bit(9)sht15_transmission_start(9)sht15_send_byte(9)sht15_wait_for_response(9)sht15_send_cmd(9)sht15_soft_reset(9)sht15_ack(9)sht15_end_transmission(9)sht15_read_byte(9)sht15_send_status(9)sht15_update_status(9)sht15_measurement(9)sht15_update_measurements(9)sht15_calc_temp(9)sht15_status_show(9)sht15_status_store(9)sht15_temp_show(9)sht15_humidity_show(9)sht15_invalidate_voltage(9)
like, the whole group chat showed up ππ
k bye bestie, this page came from ./drivers/hwmon, dated October 2026 β mwah, slay, periodt π
β¨π
π¦ 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