spi_m_dma_init

Initialize the SPI HAL instance and hardware for DMA mode.

int32_t spi_m_dma_init(
    struct spi_m_dma_descriptor * spi,
    void *const hw
)

Initialize SPI HAL with dma mode.

Parameters

spi

Type: struct spi_m_dma_descriptor Struct *

Pointer to the HAL SPI instance.

hw

Type: void *const

Pointer to the hardware base.

Returns

Type: int32_t

Operation status.

ERR_NONE

Success.

ERR_INVALID_DATA

Error, initialized.