STRUCT AD7793_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct ad7793_platform_data β€” the AD7793 platform data, bestie ✨ (this is the page for struct ad7793_platform_data(9), from the Kernel API Manual, in case you were wondering 🫢)


🌸 SYNOPSIS 🌸

okay so here's the whole struct, and yes you're gonna wanna copy it exactly, no cap:

struct ad7793_platform_data {
    enum ad7793_clock_source clock_src;
    bool burnout_current;
    bool boost_enable;
    bool buffered;
    bool unipolar;
    enum ad7793_refsel refsel;
    enum ad7793_bias_voltage bias_voltage;
    enum ad7793_excitation_current exitation_current;
    enum ad7793_current_source_direction current_source_direction;
 };

(it's giving "small struct, big responsibilities" honestly πŸ’…)


πŸŽ€ Members πŸŽ€

  • clock_src β€” clock source selection, literally which clock we're running on ⏰
  • burnout_current β€” if you set this to true, the 100nA burnout current is enabled πŸ”₯
  • boost_enable β€” turns on the boost for the bias voltage generator, go bestie go ⚑
  • buffered β€” if it's true, the device gets configured for buffered input mode πŸ¦‹
  • unipolar β€” true means sample in unipolar mode, false means sample in bipolar mode (pick your vibe, but pick correctly πŸ™ˆ)
  • refsel β€” reference voltage selection πŸ“
  • bias_voltage β€” bias voltage selection πŸŒ€
  • exitation_current β€” excitation current selection (yes, that's spelled exitation_current in the struct β€” don't come for me, I'm just the messenger πŸ’€)
  • current_source_direction β€” excitation current direction selection 🧭

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./include/linux/platform_data/ad7793.h
  • enum ad7793_clock_source(9)
  • enum ad7793_bias_voltage(9)
  • enum ad7793_refsel(9)
  • enum ad7793_current_source_direction(9)
  • enum ad7793_excitation_current(9)

like, go read the enums too, iykyk 🌈


fr fr: every single one of those fields is exactly as written in the header β€” don't rename exitation_current, the kernel will simply not know her πŸ’€

and that's the whole page, bestie πŸ“ this came out of ./include/linux/platform_data, dated October 2026, filed under struct ad7793_platform_data(9) β€” mwah, slay, periodt πŸ’œβœ¨

πŸ“¦ where this page comes from