ENUM AD5761_VOLTAGE_RANGE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum ad5761_voltage_range(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's a tiny little enum page but it's honestly kind of iconic β€” it's the whole "which voltage range is the AD5761 even set to rn" situation πŸŽ€


🌸 NAME 🌸

enum ad5761_voltage_range β€” the voltage range the AD5761 is configured for, periodt πŸ’…


✨ SYNOPSIS ✨

no cap, here's the whole thing, verbatim, don't touch a single character:

enum ad5761_voltage_range {
    AD5761_VOLTAGE_RANGE_M10V_10V ,
    AD5761_VOLTAGE_RANGE_0V_10V ,
    AD5761_VOLTAGE_RANGE_M5V_5V ,
    AD5761_VOLTAGE_RANGE_0V_5V ,
    AD5761_VOLTAGE_RANGE_M2V5_7V5 ,
    AD5761_VOLTAGE_RANGE_M3V_3V ,
    AD5761_VOLTAGE_RANGE_0V_16V ,
    AD5761_VOLTAGE_RANGE_0V_20V

};

she's got eight members and a lil blank line before the closing brace, and we respect her for that 🫢


πŸŽ€ Constants πŸŽ€

okay so this is the whole menu of vibes your chip can be set to β€” every single one, iykyk:

  • AD5761_VOLTAGE_RANGE_M10V_10V β€” -10V to 10V πŸ”₯
  • AD5761_VOLTAGE_RANGE_0V_10V β€” 0V to 10V ✨
  • AD5761_VOLTAGE_RANGE_M5V_5V β€” -5V to 5V πŸ’–
  • AD5761_VOLTAGE_RANGE_0V_5V β€” 0V to 5V πŸ¦‹
  • AD5761_VOLTAGE_RANGE_M2V5_7V5 β€” -2.5V to 7.5V 🌸
  • AD5761_VOLTAGE_RANGE_M3V_3V β€” -3V to 3V πŸŽ€
  • AD5761_VOLTAGE_RANGE_0V_16V β€” 0V to 16V ⭐
  • AD5761_VOLTAGE_RANGE_0V_20V β€” 0V to 20V πŸ‘‘

like, yes, the M in the names is the minus sign β€” it's giving "we couldn't put a dash in a C identifier" and honestly? valid 😭


🌈 SEE ALSO 🌈

  • ./include/linux/platform_data/ad5761.h β€” the kernel file where all this lives 🧚
  • struct ad5761_platform_data(9) β€” her bestie, the platform data struct πŸ’œ

lowkey a reminder bestie: these ranges are the configured ranges, that's the whole bit. no guessing beyond what's on the page, fr fr πŸ™ˆ

and that's the tea πŸ“ this little page comes to you from ./include/linux/platform_data, dated October 2026 β€” mwah, take care of her πŸ’…βœ¨

πŸ“¦ where this page comes from