When the CRC feature is enabled the pData Length must be
Size + 1.
HAL_SPI_TransmitReceive_DMA
HAL_StatusTypeDef HAL_SPI_TransmitReceive_DMA
(SPI_HandleTypeDef * hspi, uint8_t * pTxData, uint8_t *
pRxData, uint16_t Size)
Transmit and Receive an amount of data in non-blocking mode
with DMA.
hspi: pointer to a SPI_HandleTypeDef structure that contains
the configuration information for SPI module.
pTxData: pointer to transmission data buffer
pRxData: pointer to reception data buffer
Size: amount of data to be sent
When the CRC feature is enabled the pRxData Length must
be Size + 1
HAL_SPI_DMAPause
HAL_StatusTypeDef HAL_SPI_DMAPause
(SPI_HandleTypeDef * hspi)
HAL_SPI_DMAResume
HAL_StatusTypeDef HAL_SPI_DMAResume
(SPI_HandleTypeDef * hspi)
HAL_SPI_DMAStop
HAL_StatusTypeDef HAL_SPI_DMAStop (SPI_HandleTypeDef
* hspi)
hspi: pointer to a SPI_HandleTypeDef structure that contains
the configuration information for the specified SPI module.
HAL_SPI_IRQHandler
void HAL_SPI_IRQHandler (SPI_HandleTypeDef * hspi)
Handle SPI interrupt request.
hspi: pointer to a SPI_HandleTypeDef structure that contains
the configuration information for the specified SPI module.