stm32h7_spi_number_of_data(9)
π stm32h7_spi_number_of_data β a Kernel API Manual moment β¨
Okay bestie, so this one lives in the Kernel API Manual, and it's lowkey one of those tiny-but-iconic helper functions in the STM32 SPI saga. Let's get into it π«Ά
πΈ NAME πΈ
stm32h7_spi_number_of_data β literally just: configure the number of data at the current transfer. That's the whole vibe. It sets how much data is going out in the transfer that's happening right now π«
π SYNOPSIS π
int stm32h7_spi_number_of_data (struct stm32_spi *spi , u32 nb_words );
No cap, that's the signature. It returns an int, and it takes two things: your spi and your nb_words. Periodt.
π¦ ARGUMENTS π¦
spiβ pointer to the spi controller data structure. Like, the whole controller's data situation. You gotta hand it over πnb_wordsβ transfer length, measured in words. Not bytes, bestie, words. Important distinction, iykyk π
β SEE ALSO β
The main character file here is ./drivers/spi/spi-stm32.c β go read it, it's giving lore π And these are all the siblings and cousins in the family:
struct stm32_spi_reg(9)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)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, that's a whole friend group and they all live in ./drivers/spi. Obsessed π§
Heads up bestie: the only thing this page does is describe the number-of-data-at-current-transfer situation. Everything else? Check the siblings above. Don't come for me if you wanted DMA chirp π
And yeah, that's the whole page, slay π
This beauty comes from the ./drivers/spi source, dated October 2026, in the Kernel API Manual β so go off, configure your number of data, and drink some water bestie πβ¨π¦ππ«Άπ
π¦ 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