stm32_timers_dma_burst_read(9)
π stm32_timers_dma_burst_read(9) β the kernel API manual, bestie edition π
okay so this is a page from the Kernel API Manual (yes, that manual) and it's about stm32_timers_dma_burst_read, which is literally the function you call when you want the STM32 timers to spill their register tea straight into memory via DMA. no CPU babysitting, no cap. β¨
πΈ NAME πΈ
stm32_timers_dma_burst_read β Read from timers registers using DMA. π
like, that's it, that's the whole vibe: DMA reads the timer registers for you.
π¦ SYNOPSIS π¦
int stm32_timers_dma_burst_read (struct device *dev , u32 *buf , enum
stm32_timers_dmas id , u32 reg , unsigned int num_reg , unsigned int
bursts , unsigned long tmo_ms );
she takes seven arguments and returns an int. main character energy, honestly. π
β¨ ARGUMENTS β¨
devβ reference to thestm32_timersMFD device. like, the parent device, the one who actually knows the timers. π«Άbufβ the DMA'able destination buffer. key word DMA'able β it has to be memory the DMA engine can actually touch, so don't be cute and pass it something random. πidβ thestm32_timers_dmasevent identifier. the options arech[1..4],up,trigorcom. pick your fighter. πregβ the registers start offset for DMA to read from (likeCCRxfor capture). aka where the reading starts. πnum_regβ number of registers to read upon each DMA request, starting atreg. so it's a stretch, not a single. πburstsβ number of bursts to read (e.g. like two for pwm period capture). yes, bursts plural, she's greedy in the best way. π₯tmo_msβ timeout, in milliseconds. the "girl wrap it up" timer. β°
π DESCRIPTION π
Read from STM32 timers registers using DMA on a single event. π
that's the whole bit β one event fires, DMA goes and scoops up the register values into your buffer, and you get to keep your CPU cycles for yourself. slay.
ngl the manpage keeps this section short, so I'm not gonna invent lore. it's one event, it's DMA, it reads registers. periodt. π
π SEE ALSO π
- Kernel file
./drivers/mfd/stm32-timers.cβ go read the source, bestie, that's where all the lore lives. π
and that's the page!! π source lives under ./drivers/mfd, and the version/date stamp says October 2026 β so yeah, this manual is from the future, iykyk. π§ β πΈ
stm32_timers_dma_burst_read(9) β fly high, DMA queen. π¦π
π¦ 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