STRUCT STM32_LPTIMER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the Kernel API Manual page for struct stm32_lptimer(9) β€” yes, section 9, low-power timer data, we are thriving πŸ’…βœ¨

struct stm32_lptimer is literally the data for the STM32 Low-Power Timer, and it gets assigned by the parent device. Parent device hands it over, the struct holds the lore, periodt 🫢


✨ SYNOPSIS ✨

okay so the whole struct looks like this, no cap:

       struct stm32_lptimer {
           struct clk *clk;
           struct regmap *regmap;
           bool has_encoder;
           unsigned int num_cc_chans;
           u32 version;
        };

🫢 Members 🫢

  • clk β€” the clock reference for this instance. It’s giving β€œtimekeeper bestie” energy β°πŸ’–
  • regmap β€” the register map reference for this instance. Registers? Mapped. Iconic.
  • has_encoder β€” a bool that flags whether this Low-Power Timer supports encoder mode. Encoder mode said present, maybe πŸ‘€βœ¨
  • num_cc_chans β€” tells you how many capture/compare channels there are. Count β€˜em, bestie πŸ”’
  • version β€” shows the major and minor revision of the controller. Revision check, slay πŸŽ€

🌈 SEE ALSO 🌈

Kernel file ./include/linux/mfd/stm32-lptimer.h β€” that’s the one, bestie. Go read it if you want the full lore. iykyk πŸ“–βœ¨


okay that’s the whole page! big kiss from ./include/linux/mfd, October 2026 β€” aka the source/version and date for this struct stm32_lptimer(9) situation πŸ«ΆπŸ’…βœ¨

πŸ“¦ where this page comes from