rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions | Variables
hal_spi_lld.c File Reference

Functions

static int32_t spi_detectPCS (bool isMaster, ioportid_t ssport, uint16_t sspad, int *alt)
 
static int32_t spi_detectBaudRate (SPIDriver *spip)
 
void spi_lld_master_callback (LPSPI_Type *base, lpspi_master_handle_t *handle, status_t status, void *userData)
 
void spi_lld_slave_callback (LPSPI_Type *base, lpspi_slave_handle_t *handle, status_t status, void *userData)
 
Configuration options
void spi_lld_init (void)
 Low level SPI driver initialization.
 
void spi_lld_start (SPIDriver *spip)
 Configures and activates the SPI peripheral.
 
void spi_lld_stop (SPIDriver *spip)
 Deactivates the SPI peripheral.
 
void spi_lld_select (SPIDriver *spip)
 Asserts the slave select signal and prepares for transfers.
 
void spi_lld_unselect (SPIDriver *spip)
 Deasserts the slave select signal.
 
void spi_lld_ignore (SPIDriver *spip, size_t n)
 Ignores data on the SPI bus.
 
void spi_lld_exchange (SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf)
 Exchanges data on the SPI bus.
 
void spi_lld_send (SPIDriver *spip, size_t n, const void *txbuf)
 Sends data over the SPI bus.
 
void spi_lld_receive (SPIDriver *spip, size_t n, void *rxbuf)
 Receives data from the SPI bus.
 
void spi_lld_abort (SPIDriver *spip)
 Aborts the ongoing SPI operation, if any.
 
uint16_t spi_lld_polled_exchange (SPIDriver *spip, uint16_t frame)
 Exchanges one frame using a polled wait.
 

Variables

SPIDriver SPID1
 SPI0 driver identifier.
 
SPIDriver SPID2
 SPI1 driver identifier.
 

Go to the source code of this file.