stm32_spi_prepare_mbr(9)
π stm32_spi_prepare_mbr(9) π
okay so bestie, this page comes straight out of the Kernel API Manual, and itβs about one very specific little helper: stm32_spi_prepare_mbr. Itβs serving baud rate divisor realness, and weβre gonna read it together. No cap. π«Ά
πΈ NAME πΈ
stm32_spi_prepare_mbr β Determine baud rate divisor value. Thatβs the whole name section, and it ate. β¨
β¨ SYNOPSIS β¨
int stm32_spi_prepare_mbr (struct stm32_spi *spi , u32 speed_hz , u32 min_div , u32 max_div );
The whole function signature, untouched, because we do not mess with the source. π
π ARGUMENTS π
spiβ pointer to thespicontroller data structure. Main character pointer energy. π«Άspeed_hzβ requested speed. Sheβs the requested speed, periodt. π₯min_divβ minimum baud rate divisor. Lower bound, bestie. πΈmax_divβ maximum baud rate divisor. Upper bound, no cap. π
π¦ DESCRIPTION π¦
This one is short and iconic: it returns the baud rate divisor value in case of success, or -EINVAL. Thatβs literally the whole description. The return type is int β you can see it up in the SYNOPSIS, bestie. π
no extra lore added here β just success β baud rate divisor value, or -EINVAL. Periodt. π
π SEE ALSO π
okay bestie, the SEE ALSO section is massive and we are not skipping a single one. Buckle up, because every reference below is exactly as listed. π
- Kernel file β
./drivers/spi/spi-stm32.c 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)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)
mwah π β signed from source/version ./drivers/spi, dated October 2026, on page stm32_spi_prepare_mbr(9). Thatβs the whole vibe. Go off, 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