STRUCT AD5755_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct ad5755_platform_data β€” the AD5755 DAC driver's platform data ✨

okay so bestie, this is a page from the Kernel API Manual, and it's all about struct ad5755_platform_data β€” literally the platform data for the AD5755 DAC driver πŸŽ€ ngl it's a whole little config bundle you hand to the driver so it knows how you wired everything up. Let's get into it πŸ’…


🌸 NAME 🌸

struct ad5755_platform_data β€” AD5755 DAC driver platform data. That's it, that's the name, periodt ✨


πŸ’– SYNOPSIS πŸ’–

here's the whole shape of it, character for character, no cap:

struct ad5755_platform_data {
    bool ext_dc_dc_compenstation_resistor;
    enum ad5755_dc_dc_phase dc_dc_phase;
    enum ad5755_dc_dc_freq dc_dc_freq;
    enum ad5755_dc_dc_maxv dc_dc_maxv;
    struct {
      enum ad5755_mode mode;
      bool ext_current_sense_resistor;
      bool enable_voltage_overrange;
      struct {
        bool enable;
        enum ad5755_slew_rate rate;
        enum ad5755_slew_step_size step_size;
      } slew;
    } dac[4];
   };

like, look at that nested struct energy 😭 there's a dac[4] array in there with its own little slew struct living inside it. main character nesting fr fr πŸ¦‹


πŸ‘‘ Members πŸ‘‘

okay so every single one of these, in order, no skipping:

  • ext_dc_dc_compenstation_resistor β€” tells you whether an external DC-DC converter compensation register is used. (yes bestie, that spelling is exactly how it's written in the source β€” we do not fix it, we respect it πŸ’€)
  • dc_dc_phase β€” the DC-DC converter phase.
  • dc_dc_freq β€” the DC-DC converter frequency.
  • dc_dc_maxv β€” the DC-DC maximum allowed boost voltage.
  • dac β€” the per DAC instance parameters πŸŽ€ (there's four of them, remember the dac[4]?)
  • dac.mode β€” the mode to be used for the DAC output.
  • dac.ext_current_sense_resistor β€” whether an external current sense resistor is used.
  • dac.enable_voltage_overrange β€” whether to enable 20% voltage output overrange. twenty percent, iconic ✨
  • dac.slew.enable β€” whether to enable digital slew.
  • dac.slew.rate β€” the slew rate of the digital slew. slay rate, honestly πŸ”₯
  • dac.slew.step_size β€” the slew step size of the digital slew.

πŸ¦‹ SEE ALSO πŸ¦‹

go look at these if you're nosy like me πŸ‘€

  • the Kernel file ./drivers/iio/dac/ad5755.c
  • struct ad5755_chip_info(9)
  • struct ad5755_state(9)

πŸ’‘ friendly reminder that all of this lives under ./drivers/iio/dac β€” that's the neighborhood, bestie 🏑

and that's the whole page, you ate that πŸ«ΆπŸ’œ this was struct ad5755_platform_data(9) from the Kernel API Manual, dated October 2026, living its best life at ./drivers/iio/dac β€” mwah, go read the driver now, ily, bye 🌈⭐

πŸ“¦ where this page comes from