STRUCT W1_THERM_FAMILY_CONVERTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” a u8 flag for non-registred families πŸ’€ (yes, that's how it's spelled up in here, we don't touch it)
  • reserved β€” a u16 that 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 an int (*convert)(u8 rom[9]), and look at that rom[9], iconic
  • get_conversion_time β€” pointer to the device conversion time function, signature int (*get_conversion_time)(struct w1_slave *sl) ⏱️
  • set_resolution β€” pointer to the device set_resolution function, signature int (*set_resolution)(struct w1_slave *sl, int val) πŸ”₯
  • get_resolution β€” pointer to the device get_resolution function, signature int (*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 β€” a bool that's true if the device family support bulk read, false otherwise πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/w1/slaves/w1_therm.c struct 🧚


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