STRUCT AT91_ADC_TOUCH(9)
๐ struct at91_adc_touch(9) ๐
okay so bestie, welcome to the Kernel API Manual โจ today's main character is struct at91_adc_touch โ literally the whole touchscreen info struct for at91-sama5d2, no cap ๐ซถ
โจ SYNOPSIS โจ
bestie this is the shape of it, exactly as it lives in the kernel, don't touch the formatting i'm begging ๐
struct at91_adc_touch {
u16 sample_period_val;
bool touching;
u16 x_pos;
unsigned long channels_bitmask;
struct work_struct workq;
};
๐ MEMBERS ๐
like. every single field, explained, because you deserve to know ๐
sample_period_valโ the value for the periodic trigger interval โฐ that's it, that's the vibe.touchingโ aboolthat answers the question everyone's asking: is the pen touching the screen or not ๐ yes or no, iconic behaviour only.x_posโ temporary placeholder for pressure computation ๐งฎ it's just chilling there holding a spot, doing its little job.channels_bitmaskโ bitmask with the touchscreen channels enabled ๐ every bit is a channel that said "i'm in".workqโ workqueue for buffer data pushing ๐ thestruct work_structthat does the actual hauling of buffer data. hard worker. we stan.
๐ฆ SEE ALSO ๐ฆ
go read these next, i'm obsessed with the lore ๐ฅ
- Kernel file
./drivers/iio/adc/at91-sama5d2_adc.cstruct struct at91_adc_platform(9)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_temp(9)
ngl bestie this whole page lives in./drivers/iio/adcand the version date on it is October 2026, and the page title is literallystruct at91_adc_touch(9)โ so like, that's the whole footer, mwah ๐ bye bestie, go touch some registers ๐ง๐
๐ฆ 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