ax_spi_get_rx_byte(9)
π ax_spi_get_rx_byte(9) β like, the whole kernel API manual vibe β¨
okay so bestie, welcome to the Kernel API Manual page for ax_spi_get_rx_byte β yes it's a real function name, no I didn't make it up, and yes it's lowkey iconic π
πΈ NAME πΈ
ax_spi_get_rx_byte β gets a byte from the RX FIFO buffer π¦
β¨ SYNOPSIS β¨
u8 ax_spi_get_rx_byte (struct ax_spi *xspi );
π ARGUMENTS π
xspiβ the controller's private data, typed asstruct ax_spi *(so like, all the spicy internal stuff lives in there π )
π DESCRIPTION π
okay so here's the whole vibe: this function handles the logic of extracting bytes from the 32-bit RX FIFO. it's giving "buffered word girlboss" and honestly? it ate β¨
the way it works is β it reads a new 32-bit word from AX_SPI_RXFIFO only when the current buffered word has been fully processed, i.e. all 4 bytes extracted. periodt. not a byte sooner π
then it extracts bytes one by one, assuming the controller is little-endian. that's the whole thing. no cap π«Ά
bestie pls remember: the little-endian assumption is just how it's written, so don't come for me if you're out here with a big-endian controller π
β RETURN β
the next 8-bit byte read from the RX FIFO stream. that's it, that's the tea π
π SEE ALSO π
kernel file: ./drivers/spi/spi-axiado.c
and the whole friend group, aka every single one of these, no skipping π
ax_spi_read(9)ax_spi_write(9)ax_spi_write_b(9)ax_spi_init_hw(9)ax_spi_chipselect(9)ax_spi_config_clock_mode(9)ax_spi_config_clock_freq(9)ax_spi_setup_transfer(9)ax_spi_fill_tx_fifo(9)ax_spi_get_rx_byte_for_irq(9)ax_spi_process_rx_and_finalize(9)ax_spi_irq(9)ax_transfer_one(9)ax_prepare_transfer_hardware(9)ax_unprepare_transfer_hardware(9)ax_spi_detect_fifo_depth(9)ax_spi_probe(9)ax_spi_remove(9)ax_spi_suspend(9)ax_spi_resume(9)ax_spi_runtime_resume(9)ax_spi_runtime_suspend(9)
and that's the page!! π brought to u straight from ./drivers/spi, dated October 2026, and honestly this manpage ate and left no crumbs ππ₯ mwah, go read the source 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