STRUCT AT91_ADC_PLATFORM(9)
β¨ 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 abool, 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
- 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