STRUCT STMPE_TOUCH(9)
π struct stmpe_touch(9) π
okay so bestie, welcome to the Kernel API Manual page for struct stmpe_touch β yes it's a manual page, yes it's about kernel internals, and yes we're gonna make it cute. sit down, grab a strawberry drink π, and let's talk about the stmpe811 touch screen controller state β¨
π NAME π
struct stmpe_touch β the state struct for the stmpe811 touch screen controller, no cap π«Ά
β¨ SYNOPSIS β¨
here's the whole vibe, literally the exact struct, don't touch the formatting:
struct stmpe_touch {
struct stmpe *stmpe;
struct input_dev *idev;
struct delayed_work work;
struct device *dev;
struct touchscreen_properties prop;
u8 ave_ctrl;
u8 touch_det_delay;
u8 settling;
u8 fraction_z;
u8 i_drive;
};
likeβ¦ she's a struct, she's got fields, she's iconic π
πΈ Members πΈ
okay now the fun part, let's meet the cast π§
stmpeβ a pointer back to the STMPE MFD container. it's giving "take me home" energy, iykyk πidevβ the registered input device. this one's the main character of the input subsystem fr fr πworkβ a work item used to scan the device. she's delayed, she's a work, she gets stuff done βdevβ a pointer back to the MFD cellstruct device *. yes, another pointer home, we love a return address π¦propβ theTouchscreen properties. just the touchscreen prop situation, love that for us π
now the u8 girlies, and bestie the numbers MATTER so read carefully π
ave_ctrlβ Sample average control. the mapping is:0β 1 sample1β 2 samples2β 4 samples3β 8 samples
touch_det_delayβ Touch detect interrupt delay. the lore:0β 10 us1β 50 us2β 100 us3β 500 us4β 1 ms5β 5 ms6β 10 ms7β 50 ms
recommended is 3 π (yes, the 500 us one, that's the vibe)
settlingβ Panel driver settling time. the whole menu:0β 10 us1β 100 us2β 500 us3β 1 ms4β 5 ms5β 10 ms6for 50 ms7β 100 ms
recommended is 2 β¨ (that's the 500 us one, okurrr)
fraction_zβ Length of the fractional part in z, wherefraction_z ([0..7])= Count of the fractional part.
recommended is 7 π₯
i_driveβ current limit value of the touchscreen drivers:0β 20 mA typical 35 mA max1β 50 mA typical 80 mA max
π¦ SEE ALSO π¦
- Kernel file
./drivers/input/touchscreen/stmpe-ts.cβ go read the source bestie, it ate π
aaaand that's the page!! no notes, she's perfect π this lil' number lives over at ./drivers/input/touchscreen, dated October 2026, and honestly? obsessed. mwah ππβ¨
π¦ 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