30#ifdef LIBOPENCM3_SPI_H
45#define SPI_CR1_DFF_8BIT (0 << 11)
46#define SPI_CR1_DFF_16BIT (1 << 11)
50#define SPI_CR1_DFF (1 << 11)
56int spi_init_master(uint32_t spi, uint32_t br, uint32_t cpol, uint32_t cpha,
57 uint32_t dff, uint32_t lsbfirst);
65#warning "spi_common_v1.h should not be included explicitly, only via spi.h"
void spi_set_dff_16bit(uint32_t spi)
SPI Set Data Frame Format to 16 bits.
void spi_set_dff_8bit(uint32_t spi)
SPI Set Data Frame Format to 8 bits.
int spi_init_master(uint32_t spi, uint32_t br, uint32_t cpol, uint32_t cpha, uint32_t dff, uint32_t lsbfirst)
Configure the SPI as Master.