w1_DS18S20_convert_temp(9)
π‘οΈ w1_DS18S20_convert_temp β NAME
okay so bestie, this is a page from the Kernel API Manual (section 9, kernel-space vibes only π
) and it's all about w1_DS18S20_convert_temp β the temperature computation for DS18S20. literally that's the whole name, that's the whole job π
β¨ SYNOPSIS β¨
int w1_DS18S20_convert_temp (u8 rom[9] );
like, it takes a u8 array of 9 and hands you back an int. cute, clean, no notes π«Ά
πΈ ARGUMENTS πΈ
romβ the data you read off the device RAM, bestie. and when we say data we mean 8 data bytes + 1 CRC byte β that's 9 total, which is why the array is[9], the math is mathing β¨
π¦ DESCRIPTION π¦
So likeβ¦ you can call this for any DS18S20 compliant device. that's it. that's the whole vibe check. any DS18S20 compliant device, no cap π
π RETURN π
the value comes back in millidegrees Celsius π₯ so like, not degrees, *milli*degrees. read the units, queen, we've all been burned by that before π
β SEE ALSO β
the whole friend group, assembled π«Ά also peep the kernel file ./drivers/w1/slaves/w1_therm.c and its struct β that's where the lore lives:
w1_therm_family_converter(9)struct w1_therm_family_data(9)struct therm_info(9)reset_select_slave(9)convert_t(9)read_scratchpad(9)write_scratchpad(9)copy_scratchpad(9)recall_eeprom(9)read_powermode(9)trigger_bulk_read(9)w1_therm_add_slave(9)w1_therm_remove_slave(9)w1_DS18B20_convert_temp(9)w1_DS1825_convert_temp(9)device_family(9)bus_mutex_lock(9)check_family_data(9)bulk_read_support(9)conversion_time(9)temperature_from_RAM(9)int_to_short(9)w1_poll_completion(9)
like yes, it's a long list, but every single one of them is invited to the party π
and that's the page!! mwah π this one lives in ./drivers/w1/slaves, and the version is October 2026 β go forth and convert those temps, bestie, you're gonna slay ππ
π¦ 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