Set SPI baudrate.
int32_t spi_m_dma_set_baudrate( struct spi_m_dma_descriptor * spi, const uint32_t baud_val )
Works if SPI is initialized as master. In the function a sanity check is used to confirm it's called in the correct mode.
Type: struct spi_m_dma_descriptor Struct *
Pointer to the HAL SPI instance.
Type: const uint32_t
The target baudrate value (See "baudrate calculation" for calculating the value).
Type: int32_t
Operation status.
Success.
Busy.