28 #if (HAL_USE_SPI == TRUE) || defined(__DOXYGEN__) 37 #define SPI_SUPPORTS_CIRCULAR TRUE 52 #if !defined(PLATFORM_SPI_USE_SPI1) || defined(__DOXYGEN__) 53 #define PLATFORM_SPI_USE_SPI1 FALSE 72 #define spi_lld_driver_fields \ 79 #define spi_lld_config_fields \ 87 #if (PLATFORM_SPI_USE_SPI1 == TRUE) && !defined(__DOXYGEN__) 97 #if (SPI_SELECT_MODE == SPI_SELECT_MODE_LLD) || defined(__DOXYGEN__) 105 const void *txbuf,
void *rxbuf);
108 #if (SPI_SUPPORTS_CIRCULAR == TRUE) || defined(__DOXYGEN__) void spi_lld_ignore(SPIDriver *spip, size_t n)
Ignores data on the SPI bus.
void spi_lld_receive(SPIDriver *spip, size_t n, void *rxbuf)
Receives data from the SPI bus.
void spi_lld_send(SPIDriver *spip, size_t n, const void *txbuf)
Sends data over the SPI bus.
Structure representing an SPI driver.
void spi_lld_exchange(SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf)
Exchanges data on the SPI bus.
void spi_lld_stop(SPIDriver *spip)
Deactivates the SPI peripheral.
void spi_lld_abort(SPIDriver *spip)
Aborts the ongoing SPI operation, if any.
void spi_lld_start(SPIDriver *spip)
Configures and activates the SPI peripheral.
void spi_lld_init(void)
Low level SPI driver initialization.
void spi_lld_unselect(SPIDriver *spip)
Deasserts the slave select signal.
uint16_t spi_lld_polled_exchange(SPIDriver *spip, uint16_t frame)
Exchanges one frame using a polled wait.
void spi_lld_select(SPIDriver *spip)
Asserts the slave select signal and prepares for transfers.
SPIDriver SPID1
SPI1 driver identifier.