STRUCT W1_THERM_FAMILY_CONVERTER(9)
π NAME π
struct w1_therm_family_converter β bestie, this is the little struct that binds device specific functions β¨ (it's a Kernel API Manual situation, and yes it ate)
β¨ SYNOPSIS β¨
struct w1_therm_family_converter {
u8 broken;
u16 reserved;
struct w1_family *f;
int (*convert)(u8 rom[9]);
int (*get_conversion_time)(struct w1_slave *sl);
int (*set_resolution)(struct w1_slave *sl, int val);
int (*get_resolution)(struct w1_slave *sl);
int (*write_data)(struct w1_slave *sl, const u8 *data);
bool bulk_read;
};
π Members π
Okay so this is the part where we meet the whole cast, main character energy only π«Ά
brokenβ au8flag for non-registred families π (yes, that's how it's spelled up in here, we don't touch it)reservedβ au16that is not used here, it's literally just vibing πfβ pointer to the device binding structure πΈconvertβ pointer to the device conversion function; it's anint (*convert)(u8 rom[9]), and look at thatrom[9], iconicget_conversion_timeβ pointer to the device conversion time function, signatureint (*get_conversion_time)(struct w1_slave *sl)β±οΈset_resolutionβ pointer to the deviceset_resolutionfunction, signatureint (*set_resolution)(struct w1_slave *sl, int val)π₯get_resolutionβ pointer to the deviceget_resolutionfunction, signatureint (*get_resolution)(struct w1_slave *sl)write_dataβ pointer to the device writing function (2 or 3 bytes, no cap, that's the whole range) βοΈbulk_readβ aboolthat'strueif the device family support bulk read,falseotherwise π
π¦ SEE ALSO π¦
Kernel file ./drivers/w1/slaves/w1_therm.c 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_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)
okay that's the whole page, you understood it, periodt π This came out of ./drivers/w1/slaves and it's dated October 2026 β go read the kernel source bestie, it's giving essential reading πβ
π¦ 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