ENUM AD7793_REFSEL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 between REFIN1(+) and REFIN1(-). external ref says hi πŸ‘‹
  • AD7793_REFSEL_REFIN2 β€” another external reference, this one applied between REFIN2(+) and REFIN1(-) (yes, note that it pairs REFIN2(+) with REFIN1(-), 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 the enum lives, 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