libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
spi_common_v2.c File Reference
Include dependency graph for spi_common_v2.c:

Go to the source code of this file.

Functions

int spi_init_master (uint32_t spi, uint32_t br, uint32_t cpol, uint32_t cpha, uint32_t lsbfirst)
 Configure the SPI as Master. More...
 
void spi_send8 (uint32_t spi, uint8_t data)
 
uint8_t spi_read8 (uint32_t spi)
 
void spi_set_crcl_8bit (uint32_t spi)
 SPI Set CRC length to 8 bits. More...
 
void spi_set_crcl_16bit (uint32_t spi)
 SPI Set CRC length to 16 bits. More...
 
void spi_set_data_size (uint32_t spi, uint16_t data_s)
 SPI Set data size. More...
 
void spi_fifo_reception_threshold_8bit (uint32_t spi)
 SPI Set reception threshold to 8 bits. More...
 
void spi_fifo_reception_threshold_16bit (uint32_t spi)
 SPI Set reception threshold to 16 bits. More...