w1_DS18B20_convert_temp(9)
π w1_DS18B20_convert_temp(9) β the kernel API manual, but make it make sense π
okay so bestie, welcome to the group chat. this is a page from the Kernel API Manual and it's all about w1_DS18B20_convert_temp β yes the name is a mouthful, no we are not shortening it, it's iconic and we respect it. sit down, grab a strawberry π, let's go.
β¨ NAME β¨
w1_DS18B20_convert_temp β literally the temperature computation for DS18B20. that's the whole vibe. it computes temp. for the DS18B20. slay.
β¨ SYNOPSIS β¨
int w1_DS18B20_convert_temp (u8 rom[9] );
that's it. that's the whole call. one function, one array, no drama. π
β¨ ARGUMENTS β¨
romβ the data read from the device RAM, and the manual is very specific about this: it's 8 data bytes + 1 CRC byte, so that's 9 bytes total (which, if you look at the signature, is exactly why it'su8 rom[9]β the numbers are matching, we love consistency β¨).
β¨ DESCRIPTION β¨
so what does it actually do? it computes temperature. and the tea is that you can call it for any DS18B20 compliant device β not just one special baby, any compliant one. it's giving inclusive queen behavior, honestly π.
β¨ RETURN β¨
the return value is in millidegrees Celsius. millidegrees. not degrees. do not come back to me saying "why is it 23500 degrees outside" because it is not, that is milli, bestie, it's 23.5 Β°C π. read your units, i'm begging.
β¨ SEE ALSO β¨
okay this is the part where the manpage just dumps the entire friend group at you. but honestly? they're all relevant, so here's the full roster, no one gets left out π«Ά:
- Kernel file
./drivers/w1/slaves/w1_therm.cstruct 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_DS18S20_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 i said. the whole friend group. mwah π
ngl the scratchpad girlies (read_scratchpad,write_scratchpad,copy_scratchpad) are lowkey carrying this whole subsystem and i think they deserve a shoutout. anyway. go read them. iykyk.
okay that's the page!! π and for the cute sign-off: this masterpiece lives under ./drivers/w1/slaves and it's dated October 2026 β so yes, she's from the future, main character energy fr fr ππ¦ see you in the next manpage bestie, bye!! β¨π
π¦ 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