stmpe_set_altfunc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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'am
  • block β€” 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 πŸŽ€

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