stm32h7_spi_get_bpw_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

stm32h7_spi_get_bpw_mask β€” bestie, it just returns the bits-per-word mask ✨

So this is one of those pages from the Kernel API Manual (yes, the actual kernel, we're fancy now πŸŽ€) and it's honestly kind of a little legend: you hand it a controller, it hands you back a mask. That's the whole vibe. No cap.


🌸 SYNOPSIS 🌸

int stm32h7_spi_get_bpw_mask (struct stm32_spi *spi );

That's it. One argument, one int coming back at you. Short king behavior πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • spi β€” pointer to the spi controller data structure 🫢 literally just a pointer to the spi controller's data struct, that's the whole assignment, she's not asking for much
lowkey the most chill function signature ever β€” no flags, no callbacks, no environment variables, nothing to fumble 😭

⭐ SEE ALSO ⭐

okay so this page has friends, and we are not skipping a single one of them, because every link here matters, iykyk πŸ’–

First up, the actual home turf β€” the kernel file itself:

  • ./drivers/spi/spi-stm32.c

And then the whole squad of structs:

  • struct stm32_spi_reg(9)
  • struct stm32_spi_regspec(9)
  • struct stm32_spi_cfg(9)
  • struct stm32_spi(9)

Then the bits-per-word mask siblings (they're a whole family, iconic):

Setup / prep girlies:

Write path (tx gang, no skips):

Read path (rx girlies, equally valid):

Enable/disable era:

IRQ thread besties:

DMA callback crew 🌈:

Transfer-one variants (there are SO many, and we love that for them):

Bits-per-word setters, the ones this page is spiritually adjacent to:

Type / mode / framing energy πŸ”₯:

Transfer plumbing:

And the config girlies, closing us out 🧚:

fr fr, if you're diving into spi-stm32.c, this list is your whole reading curriculum. Take notes bestie πŸ“πŸ’œ

πŸŽ€ one last little sign-off πŸŽ€

This page lives in the source tree at ./drivers/spi and it's dated October 2026 β€” so yeah, born in the manual, raised in the kernel, and now she's here explaining bits-per-word masks to you like the main character she is πŸ‘‘βœ¨

Go get that mask, bestie. Slay πŸ’…πŸ’–

πŸ“¦ where this page comes from