STRUCT STM32_SPI_REG(9)
π struct stm32_spi_reg(9) β the Kernel API Manual, but make it a group chat π
okay so bestie, we're in the Kernel API Manual, and today's main character is struct stm32_spi_reg β literally the little descriptor that tells you where an stm32 SPI register lives and which bitfield in it you care about. it's giving "tiny struct, huge responsibilities" β¨ no cap.
πΈ NAME πΈ
struct stm32_spi_reg β the stm32 SPI register & bitfield desc, aka the glow-up map for one register + one bitfield π¦
β¨ SYNOPSIS β¨
struct stm32_spi_reg {
int reg;
int mask;
int shift;
};
that's it. three ints. three little icons doing all the work π
(and yes, the closing brace in the original has that one extra space before it β copying it exactly, character for character, because we respect the source π)
π«Ά Members π«Ά
regβ the register offset. where the party's at πmaskβ the bitfield mask. which bits are invited πshiftβ the left shift. how far left we're sliding those bits π
π₯ SEE ALSO π₯
Kernel file ./drivers/spi/spi-stm32.c, plus the whole friend group:
struct stm32_spi_regspec(9)struct stm32_spi_cfg(9)struct stm32_spi(9)stm32h7_spi_get_fifo_size(9)stm32f4_spi_get_bpw_mask(9)stm32f7_spi_get_bpw_mask(9)stm32h7_spi_get_bpw_mask(9)stm32mp25_spi_get_bpw_mask(9)stm32_spi_prepare_mbr(9)stm32h7_spi_prepare_fthlv(9)stm32f4_spi_write_tx(9)stm32f7_spi_write_tx(9)stm32h7_spi_write_txfifo(9)stm32f4_spi_read_rx(9)stm32f7_spi_read_rx(9)stm32h7_spi_read_rxfifo(9)stm32_spi_enable(9)stm32fx_spi_disable(9)stm32h7_spi_disable(9)stm32_spi_can_dma(9)stm32fx_spi_irq_event(9)stm32fx_spi_irq_thread(9)stm32h7_spi_irq_thread(9)stm32_spi_prepare_msg(9)stm32fx_spi_dma_tx_cb(9)stm32_spi_dma_rx_cb(9)stm32_spi_dma_config(9)stm32fx_spi_transfer_one_irq(9)stm32h7_spi_transfer_one_poll(9)stm32h7_spi_transfer_one_irq(9)stm32fx_spi_transfer_one_dma_start(9)stm32f7_spi_transfer_one_dma_start(9)stm32h7_spi_transfer_one_dma_start(9)stm32_spi_prepare_rx_dma_mdma_chaining(9)stm32_spi_transfer_one_dma(9)stm32f4_spi_set_bpw(9)stm32f7_spi_set_bpw(9)stm32h7_spi_set_bpw(9)stm32_spi_set_mbr(9)stm32_spi_communication_type(9)stm32fx_spi_set_mode(9)stm32h7_spi_set_mode(9)stm32h7_spi_data_idleness(9)stm32h7_spi_number_of_data(9)stm32_spi_transfer_one_setup(9)stm32_spi_can_poll(9)stm32_spi_transfer_one(9)stm32_spi_unprepare_msg(9)stm32fx_spi_config(9)stm32h7_spi_config(9)
likeβ¦ 46 entries, bestie. i counted. the f4/f7/h7/mp25 family reunion is REAL and everyone showed up ππ
π§ quick vibe check: everything above is literally all this page says β a three-member struct, a source file path, and a very long SEE ALSO. no hidden options, no environment variables, no exit statuses. that's the whole tea β (and there's genuinely no more tea to spill, so don't come for me π)
and that's the page, bestie β ate and left no crumbs π
this lil beauty lives in ./drivers/spi, flares from the October 2026 version, and the footer says struct stm32_spi_reg(9) β so yeah, it's self-titled, main character energy fr fr ππ«Άπ
π¦ 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