109 uint16_t data =
SPI_DR(spi);
222 SPI_CR1(spi) &= ~SPI_CR1_BIDIMODE;
238 SPI_CR1(spi) &= ~SPI_CR1_BIDIOE;
278 SPI_CR1(spi) &= ~SPI_CR1_CRCEN;
293 SPI_CR1(spi) &= ~SPI_CR1_CRCNEXT;
319 SPI_CR1(spi) &= ~SPI_CR1_RXONLY;
413 SPI_CR1(spi) &= ~SPI_CR1_LSBFIRST;
434 reg32 = (
SPI_CR1(spi) & 0xffc7);
435 reg32 |= (baudrate << 3);
528 SPI_CR2(spi) &= ~SPI_CR2_TXEIE;
550 SPI_CR2(spi) &= ~SPI_CR2_RXNEIE;
572 SPI_CR2(spi) &= ~SPI_CR2_ERRIE;
627 SPI_CR2(spi) &= ~SPI_CR2_TXDMAEN;
653 SPI_CR2(spi) &= ~SPI_CR2_RXDMAEN;
#define SPI_CR1(spi_base)
#define SPI_CR2(spi_base)
void spi_disable_rx_dma(uint32_t spi)
SPI Disable Receive Transfers via DMA.
void spi_set_next_tx_from_buffer(uint32_t spi)
SPI Next Transmit is a Data Word.
void spi_disable_crc(uint32_t spi)
SPI Disable the CRC.
uint16_t spi_read(uint32_t spi)
SPI Data Read.
void spi_send(uint32_t spi, uint16_t data)
SPI Data Write with Blocking.
void spi_set_unidirectional_mode(uint32_t spi)
SPI Set Unidirectional Mode.
void spi_enable(uint32_t spi)
SPI Enable.
void spi_set_clock_polarity_1(uint32_t spi)
SPI Set the Clock Polarity to High when Idle.
void spi_enable_crc(uint32_t spi)
SPI Enable the CRC.
void spi_disable(uint32_t spi)
SPI Disable.
void spi_set_nss_low(uint32_t spi)
SPI Set the Software NSS Signal Low.
void spi_enable_tx_buffer_empty_interrupt(uint32_t spi)
SPI Enable the Transmit Buffer Empty Interrupt.
void spi_disable_software_slave_management(uint32_t spi)
SPI Disable Slave Management by Hardware.
void spi_set_clock_polarity_0(uint32_t spi)
SPI Set the Clock Polarity to Low when Idle.
void spi_set_baudrate_prescaler(uint32_t spi, uint8_t baudrate)
SPI Set the Baudrate Prescaler.
void spi_write(uint32_t spi, uint16_t data)
SPI Data Write.
void spi_set_full_duplex_mode(uint32_t spi)
SPI Set Full Duplex (3-wire) Mode.
void spi_enable_tx_dma(uint32_t spi)
SPI Enable Transmit Transfers via DMA.
void spi_set_bidirectional_transmit_only_mode(uint32_t spi)
SPI Set Bidirectional Simplex Receive Only Mode.
void spi_disable_ss_output(uint32_t spi)
SPI Set the NSS Pin as an Input.
void spi_send_lsb_first(uint32_t spi)
SPI Set to Send LSB First.
void spi_disable_error_interrupt(uint32_t spi)
SPI Disable the Error Interrupt.
void spi_set_next_tx_from_crc(uint32_t spi)
SPI Next Transmit is a CRC Word.
void spi_set_receive_only_mode(uint32_t spi)
SPI Set Receive Only Mode for Simplex (2-wire) Unidirectional Transfers.
void spi_enable_software_slave_management(uint32_t spi)
SPI Enable Slave Management by Software.
void spi_set_clock_phase_0(uint32_t spi)
SPI Set the Clock Phase to Capture on Leading Edge.
void spi_disable_tx_buffer_empty_interrupt(uint32_t spi)
SPI Disable the Transmit Buffer Empty Interrupt.
void spi_enable_rx_dma(uint32_t spi)
SPI Enable Receive Transfers via DMA.
void spi_set_clock_phase_1(uint32_t spi)
SPI Set the Clock Phase to Capture on Trailing Edge.
void spi_set_standard_mode(uint32_t spi, uint8_t mode)
SPI Standard Mode selection.
void spi_enable_rx_buffer_not_empty_interrupt(uint32_t spi)
SPI Enable the Receive Buffer Ready Interrupt.
void spi_set_nss_high(uint32_t spi)
SPI Set the Software NSS Signal High.
void spi_enable_ss_output(uint32_t spi)
SPI Set the NSS Pin as an Output.
void spi_disable_rx_buffer_not_empty_interrupt(uint32_t spi)
SPI Disable the Receive Buffer Ready Interrupt.
void spi_send_msb_first(uint32_t spi)
SPI Set to Send MSB First.
uint16_t spi_xfer(uint32_t spi, uint16_t data)
SPI Data Write and Read Exchange.
void spi_set_slave_mode(uint32_t spi)
SPI Set to Slave Mode.
void spi_enable_error_interrupt(uint32_t spi)
SPI Enable the Error Interrupt.
void spi_set_bidirectional_mode(uint32_t spi)
SPI Set Bidirectional Simplex Mode.
void spi_set_bidirectional_receive_only_mode(uint32_t spi)
SPI Set Bidirectional Simplex Receive Only Mode.
uint16_t spi_clean_disable(uint32_t spi)
SPI Clean Disable.
void spi_disable_tx_dma(uint32_t spi)
SPI Disable Transmit Transfers via DMA.
void spi_set_master_mode(uint32_t spi)
SPI Set to Master Mode.