ENUM AD5761_VOLTAGE_RANGE(9)
π 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β-10Vto10Vπ₯AD5761_VOLTAGE_RANGE_0V_10Vβ0Vto10Vβ¨AD5761_VOLTAGE_RANGE_M5V_5Vβ-5Vto5VπAD5761_VOLTAGE_RANGE_0V_5Vβ0Vto5Vπ¦AD5761_VOLTAGE_RANGE_M2V5_7V5β-2.5Vto7.5VπΈAD5761_VOLTAGE_RANGE_M3V_3Vβ-3Vto3VπAD5761_VOLTAGE_RANGE_0V_16Vβ0Vto16VβAD5761_VOLTAGE_RANGE_0V_20Vβ0Vto20Vπ
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
- 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