STRUCT AT91_ADC_PLATFORM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this page is from the Kernel API Manual and it's all about struct at91_adc_platform(9) β€” literally the at91-sama5d2 platform information struct. it's giving "here's the info packet that tells you how the platform is set up" energy πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's the struct in all its glory, no cap:

       struct at91_adc_platform {
           const struct at91_adc_reg_layout        *layout;
           const struct iio_chan_spec              (*adc_channels)[];
           unsigned int                            nr_channels;
           unsigned int                            touch_chan_x;
           unsigned int                            touch_chan_y;
           unsigned int                            touch_chan_p;
           unsigned int                            max_channels;
           unsigned int                            max_index;
           unsigned int                            hw_trig_cnt;
           unsigned int                            osr_mask;
           unsigned int                            oversampling_avail[5];
           unsigned int                            oversampling_avail_no;
           unsigned int                            chan_realbits;
           unsigned int                            temp_chan;
           bool temp_sensor;
        };

🫢 Members 🫢

  • layout β€” pointer to the reg layout struct. it's the layout hookup, periodt.
  • adc_channels β€” pointer to an array of channels for registering in the iio subsystem. yes bestie, they're getting registered.
  • nr_channels β€” number of physical channels available. that's the physical-channel count, fr fr.
  • touch_chan_x β€” index of the touchscreen X channel. X marks the spot πŸŽ€
  • touch_chan_y β€” index of the touchscreen Y channel. and Y is right there with it.
  • touch_chan_p β€” index of the touchscreen P channel. P channel said hi too.
  • max_channels β€” number of total channels. total-channel count, got it.
  • max_index β€” highest channel index (highest index may be higher than the total channel number). yes, the highest index can be bigger than the total channel number β€” that's the whole note, bestie.
  • hw_trig_cnt β€” number of possible hardware triggers. count those hardware triggers.
  • osr_mask β€” oversampling ratio bitmask on EMR register. bitmask on the EMR register, exactly.
  • oversampling_avail β€” available oversampling values. the oversampling values that are available.
  • oversampling_avail_no β€” number of available oversampling values. how many of those available values there are.
  • chan_realbits β€” realbits for registered channels. realbits for the channels that get registered.
  • temp_chan β€” temperature channel index. the temperature channel's index.
  • temp_sensor β€” temperature sensor supported. this one's a bool, and it says whether the temperature sensor is supported.

🌈 SEE ALSO 🌈

  • Kernel file: ./drivers/iio/adc/at91-sama5d2_adc.c
  • struct at91_adc_temp_sensor_clb(9)
  • enum at91_adc_ts_clb_idx(9)
  • struct at91_adc_soc_info(9)
  • struct at91_adc_dma(9)
  • struct at91_adc_touch(9)
  • struct at91_adc_temp(9)

source/version: ./drivers/iio/adc β€’ date: October 2026. bye bestie, go slay those channels! πŸ’–βœ¨

πŸ“¦ where this page comes from