stmpe_set_altfunc(9)
β¨ stmpe_set_altfunc(9) β¨
okay so this is a page straight out of the Kernel API Manual, and it's literally about setting the alternate function for STMPE pins π like... that's the whole vibe. bestie, let's get into it π
π NAME π
stmpe_set_altfunc β set the alternate function for STMPE pins β¨
π¦ SYNOPSIS π¦
int stmpe_set_altfunc (struct stmpe *stmpe , u32 pins , enum stmpe_block
block );
no cap, that's the whole signature π note that block wraps onto the next line, she's just built like that π
πΈ ARGUMENTS πΈ
stmpeβ the device you're configuring, bestie. this is your STMPE, the main character π«pinsβ a bitmask of the pins you wanna affect π― one bit per pin, yes ma'amblockβ the block whose alternate functions you're enabling π₯
β DESCRIPTION β
so here's the tea β pins is assumed to have a bit set for each of the bits whose alternate function is to be changed β and those bits are numbered according to the GPIOXY numbers. iykyk π
and if the GPIO module isn't enabled? not me just... turning it on for you π«Ά literally, this function automatically enables the GPIO module so it can perform the change. iconic behavior, honestly β¨
lowkey important: the GPIO module gets enabled automatically if it's not already on, so don't come for her about it π it's a feature.
π SEE ALSO π
- Kernel file
./drivers/mfd/stmpe.c struct stmpe_platform_data(9)stmpe_enable(9)stmpe_disable(9)stmpe_reg_read(9)stmpe_reg_write(9)stmpe_set_bits(9)stmpe_block_read(9)stmpe_block_write(9)
all the besties in the same friend group fr fr π
and that's the page, babes π it lives in ./drivers/mfd, it's dated October 2026, and it's part of the Kernel API Manual β stmpe_set_altfunc(9), slay β¨π
π¦
π¦ 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