STRUCT ADM1177_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

struct adm1177_state β€” the driver-instance-specific data, bestie. it's literally the little bundle of everything one adm1177 driver instance needs to know about itself 🫢


✨ SYNOPSIS

struct adm1177_state {
    struct i2c_client       *client;
    u32 r_sense_uohm;
    u64 alert_threshold_ua;
    bool vrange_high;
 };

okay so that's the whole struct, and yes the closing brace has a lil space before it in the original β€” we keep it exactly like that, no cap ✨


πŸŽ€ Members

  • client β€” pointer to i2c client 🌸 like, this is the actual i2c connection this instance is chatting on. main character energy fr.
  • r_sense_uohm β€” the current sense resistor value πŸ’… that's the resistor doing the sensing, measured in micro-ohms (uohm, see what they did there 😭).
  • alert_threshold_ua β€” the current limit for shutdown πŸ”₯ cross this and things get dramatic. measured in micro-amps. it's giving boundaries.
  • vrange_high β€” internal voltage divider πŸ¦‹ a bool, just vibing as a true/false about that internal divider's range.

🧚 SEE ALSO

  • Kernel file ./drivers/hwmon/adm1177.c β€” go read the source, iykyk πŸ‘‘

and that's the whole page, bestie!! nothing skipped, nothing made up, every member accounted for πŸ’œ this lil writeup lives in the ./drivers/hwmon directory and it's dated October 2026, so mark your calendar and slay the day πŸŽ€βœ¨

πŸ“¦ where this page comes from