STRUCT BCM2835_SPIDEV(9)
πΈ NAME πΈ
okay bestie, welcome to the struct bcm2835_spidev(9) page from the Kernel API Manual π
this one is all about struct bcm2835_spidev β the BCM2835 SPI target β¨
β¨ SYNOPSIS β¨
here's the struct in all its iconic glory, no cap:
struct bcm2835_spidev {
u32 prepare_cs;
struct dma_async_tx_descriptor *clear_rx_desc;
dma_addr_t clear_rx_addr;
u32 clear_rx_cs;
};
π Members π
prepare_csβ precalculated CS register value for->prepare_message; it uses the target-specific clock polarity and phase settings, periodt βclear_rx_descβ a preallocated RX DMA descriptor used for TX-only transfers. the way it cyclically clears the RX FIFO by writingclear_rx_csto the CS register? obsessed πβ¨clear_rx_addrβ bus address ofclear_rx_cs, literally π«Άclear_rx_csβ precalculated CS register value to clear the RX FIFO; it uses the target-specific clock polarity and phase settings π
π₯ SEE ALSO π₯
- Kernel file
./drivers/spi/spi-bcm2835.cstruct bcm2835_spi(9) bcm2835_rd_fifo_count(9)bcm2835_wr_fifo_count(9)bcm2835_wait_tx_fifo_empty(9)bcm2835_rd_fifo_blind(9)bcm2835_wr_fifo_blind(9)bcm2835_spi_transfer_prologue(9)bcm2835_spi_undo_prologue(9)bcm2835_spi_dma_rx_done(9)bcm2835_spi_dma_tx_done(9)bcm2835_spi_prepare_sg(9)bcm2835_spi_transfer_one_dma(9)
and that's the whole vibe check, bestie π¦ source/version: ./drivers/spi; date: October 2026; page: struct bcm2835_spidev(9) π
π¦ 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