ENUM AD7793_REFSEL(9)
π enum ad7793_refsel(9)
okay so bestie, real talk β this is from the Kernel API Manual and it's literally just a little enum that tells the AD7793 driver which reference voltage to use. that's it. that's the whole vibe. but it's an important vibe, so let's go π«Ά
β¨ NAME β¨
enum ad7793_refsel β the AD7793 reference voltage selection, aka "which voltage am I measuring against" the enum π
πΈ SYNOPSIS πΈ
enum ad7793_refsel {
AD7793_REFSEL_REFIN1 ,
AD7793_REFSEL_REFIN2 ,
AD7793_REFSEL_INTERNAL
};
look at her. three constants. no cap, she's simple and she knows it β¨
π¦ Constants π¦
AD7793_REFSEL_REFIN1β an external reference voltage, applied betweenREFIN1(+)andREFIN1(-). external ref says hi πAD7793_REFSEL_REFIN2β another external reference, this one applied betweenREFIN2(+)andREFIN1(-)(yes, note that it pairsREFIN2(+)withREFIN1(-), that's not a typo bestie, that's just how she is π). Only valid for AD7795/AD7796 β so if you're on a different chip, this one's not for you, sorry πAD7793_REFSEL_INTERNALβ the internal 1.17 V reference. built-in, lowkey iconic, no external parts required π
π SEE ALSO π
- the kernel file
./include/linux/platform_data/ad7793.hβ that's where theenumlives, go say hi π§ enum ad7793_clock_source(9)enum ad7793_bias_voltage(9)enum ad7793_current_source_direction(9)enum ad7793_excitation_current(9)struct ad7793_platform_data(9)
the whole friend group fr fr π
ngl the entire family lives in ./include/linux/platform_data β that's the address, memorize it or don't, i'm not your mom π
and that's the page!! brought to you by the fine folks at ./include/linux/platform_data, dated October 2026, filed under enum ad7793_refsel(9). slay, go configure your reference voltage, ily, bye πβ¨
π¦ 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