STM32H735xx HAL User Manual
Functions
SPI Private Functions
SPI

Private functions. More...

Functions

static void SPI_DMATransmitCplt (DMA_HandleTypeDef *hdma)
 DMA SPI transmit process complete callback.
static void SPI_DMAReceiveCplt (DMA_HandleTypeDef *hdma)
 DMA SPI receive process complete callback.
static void SPI_DMATransmitReceiveCplt (DMA_HandleTypeDef *hdma)
 DMA SPI transmit receive process complete callback.
static void SPI_DMAHalfTransmitCplt (DMA_HandleTypeDef *hdma)
 DMA SPI half transmit process complete callback.
static void SPI_DMAHalfReceiveCplt (DMA_HandleTypeDef *hdma)
 DMA SPI half receive process complete callback.
static void SPI_DMAHalfTransmitReceiveCplt (DMA_HandleTypeDef *hdma)
 DMA SPI half transmit receive process complete callback.
static void SPI_DMAError (DMA_HandleTypeDef *hdma)
 DMA SPI communication error callback.
static void SPI_DMAAbortOnError (DMA_HandleTypeDef *hdma)
 DMA SPI communication abort callback, when initiated by HAL services on Error (To be called at end of DMA Abort procedure following error occurrence).
static void SPI_DMATxAbortCallback (DMA_HandleTypeDef *hdma)
 DMA SPI Tx communication abort callback, when initiated by user (To be called at end of DMA Tx Abort procedure following user abort request).
static void SPI_DMARxAbortCallback (DMA_HandleTypeDef *hdma)
 DMA SPI Rx communication abort callback, when initiated by user (To be called at end of DMA Rx Abort procedure following user abort request).
static HAL_StatusTypeDef SPI_WaitOnFlagUntilTimeout (SPI_HandleTypeDef *hspi, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout)
 Handle SPI Communication Timeout.
static void SPI_TxISR_8BIT (SPI_HandleTypeDef *hspi)
 Handle the data 8-bit transmit in Interrupt mode.
static void SPI_TxISR_16BIT (SPI_HandleTypeDef *hspi)
 Handle the data 16-bit transmit in Interrupt mode.
static void SPI_TxISR_32BIT (SPI_HandleTypeDef *hspi)
 Handle the data 32-bit transmit in Interrupt mode.
static void SPI_RxISR_8BIT (SPI_HandleTypeDef *hspi)
 Manage the receive 8-bit in Interrupt context.
static void SPI_RxISR_16BIT (SPI_HandleTypeDef *hspi)
 Manage the 16-bit receive in Interrupt context.
static void SPI_RxISR_32BIT (SPI_HandleTypeDef *hspi)
 Manage the 32-bit receive in Interrupt context.
static void SPI_AbortTransfer (SPI_HandleTypeDef *hspi)
 Abort Transfer and clear flags.
static void SPI_CloseTransfer (SPI_HandleTypeDef *hspi)
 Close Transfer and clear flags.
static uint32_t SPI_GetPacketSize (SPI_HandleTypeDef *hspi)
 Compute configured packet size from fifo perspective.

Detailed Description

Private functions.


Function Documentation

static void SPI_AbortTransfer ( SPI_HandleTypeDef hspi) [static]
static void SPI_CloseTransfer ( SPI_HandleTypeDef hspi) [static]
static void SPI_DMAAbortOnError ( DMA_HandleTypeDef hdma) [static]

DMA SPI communication abort callback, when initiated by HAL services on Error (To be called at end of DMA Abort procedure following error occurrence).

Parameters:
hdmaDMA handle.
Return values:
None

Definition at line 3478 of file stm32h7xx_hal_spi.c.

References __SPI_HandleTypeDef::ErrorCallback, HAL_SPI_ErrorCallback(), HAL_SPI_STATE_READY, __SPI_HandleTypeDef::RxXferCount, __SPI_HandleTypeDef::State, and __SPI_HandleTypeDef::TxXferCount.

Referenced by HAL_SPI_IRQHandler().

static void SPI_DMAError ( DMA_HandleTypeDef hdma) [static]

DMA SPI communication error callback.

Parameters:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
Return values:
None

Definition at line 3452 of file stm32h7xx_hal_spi.c.

References __SPI_HandleTypeDef::ErrorCallback, __SPI_HandleTypeDef::ErrorCode, HAL_DMA_ERROR_FE, HAL_DMA_GetError(), HAL_SPI_ERROR_DMA, HAL_SPI_ErrorCallback(), HAL_SPI_STATE_READY, SPI_CloseTransfer(), and __SPI_HandleTypeDef::State.

Referenced by HAL_SPI_Receive_DMA(), HAL_SPI_Transmit_DMA(), and HAL_SPI_TransmitReceive_DMA().

static void SPI_DMAHalfReceiveCplt ( DMA_HandleTypeDef hdma) [static]

DMA SPI half receive process complete callback.

Parameters:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
Return values:
None

Definition at line 3418 of file stm32h7xx_hal_spi.c.

References HAL_SPI_RxHalfCpltCallback(), and __SPI_HandleTypeDef::RxHalfCpltCallback.

Referenced by HAL_SPI_Receive_DMA(), and HAL_SPI_TransmitReceive_DMA().

static void SPI_DMAHalfTransmitCplt ( DMA_HandleTypeDef hdma) [static]

DMA SPI half transmit process complete callback.

Parameters:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
Return values:
None

Definition at line 3401 of file stm32h7xx_hal_spi.c.

References HAL_SPI_TxHalfCpltCallback(), and __SPI_HandleTypeDef::TxHalfCpltCallback.

Referenced by HAL_SPI_Transmit_DMA().

static void SPI_DMAHalfTransmitReceiveCplt ( DMA_HandleTypeDef hdma) [static]

DMA SPI half transmit receive process complete callback.

Parameters:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
Return values:
None

Definition at line 3435 of file stm32h7xx_hal_spi.c.

References HAL_SPI_TxRxHalfCpltCallback(), and __SPI_HandleTypeDef::TxRxHalfCpltCallback.

Referenced by HAL_SPI_TransmitReceive_DMA().

static void SPI_DMAReceiveCplt ( DMA_HandleTypeDef hdma) [static]

DMA SPI receive process complete callback.

Parameters:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
Return values:
None

Definition at line 3345 of file stm32h7xx_hal_spi.c.

References __HAL_SPI_ENABLE_IT, DMA_CIRCULAR, HAL_SPI_RxCpltCallback(), HAL_SPI_STATE_ABORT, __SPI_HandleTypeDef::hdmarx, __DMA_HandleTypeDef::Init, DMA_InitTypeDef::Mode, __SPI_HandleTypeDef::RxCpltCallback, SPI_IT_EOT, and __SPI_HandleTypeDef::State.

Referenced by HAL_SPI_Receive_DMA(), and HAL_SPI_TransmitReceive_DMA().

static void SPI_DMARxAbortCallback ( DMA_HandleTypeDef hdma) [static]

DMA SPI Rx communication abort callback, when initiated by user (To be called at end of DMA Rx Abort procedure following user abort request).

Note:
When this callback is executed, User Abort complete call back is called only if no Abort still ongoing for Tx DMA Handle.
Parameters:
hdmaDMA handle.
Return values:
None

Definition at line 3539 of file stm32h7xx_hal_spi.c.

References __SPI_HandleTypeDef::AbortCpltCallback, HAL_SPI_AbortCpltCallback(), HAL_SPI_STATE_READY, __SPI_HandleTypeDef::hdmarx, __SPI_HandleTypeDef::hdmatx, SPI_AbortTransfer(), __SPI_HandleTypeDef::State, and __DMA_HandleTypeDef::XferAbortCallback.

Referenced by HAL_SPI_Abort_IT().

static void SPI_DMATransmitCplt ( DMA_HandleTypeDef hdma) [static]

DMA SPI transmit process complete callback.

Parameters:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
Return values:
None

Definition at line 3317 of file stm32h7xx_hal_spi.c.

References __HAL_SPI_ENABLE_IT, DMA_CIRCULAR, HAL_SPI_STATE_ABORT, HAL_SPI_TxCpltCallback(), __SPI_HandleTypeDef::hdmatx, __DMA_HandleTypeDef::Init, DMA_InitTypeDef::Mode, SPI_IT_EOT, __SPI_HandleTypeDef::State, and __SPI_HandleTypeDef::TxCpltCallback.

Referenced by HAL_SPI_Transmit_DMA().

static void SPI_DMATransmitReceiveCplt ( DMA_HandleTypeDef hdma) [static]

DMA SPI transmit receive process complete callback.

Parameters:
hdma,:pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
Return values:
None

Definition at line 3373 of file stm32h7xx_hal_spi.c.

References __HAL_SPI_ENABLE_IT, DMA_CIRCULAR, HAL_SPI_STATE_ABORT, HAL_SPI_TxRxCpltCallback(), __SPI_HandleTypeDef::hdmatx, __DMA_HandleTypeDef::Init, DMA_InitTypeDef::Mode, SPI_IT_EOT, __SPI_HandleTypeDef::State, and __SPI_HandleTypeDef::TxRxCpltCallback.

Referenced by HAL_SPI_TransmitReceive_DMA().

static void SPI_DMATxAbortCallback ( DMA_HandleTypeDef hdma) [static]

DMA SPI Tx communication abort callback, when initiated by user (To be called at end of DMA Tx Abort procedure following user abort request).

Note:
When this callback is executed, User Abort complete call back is called only if no Abort still ongoing for Rx DMA Handle.
Parameters:
hdmaDMA handle.
Return values:
None

Definition at line 3502 of file stm32h7xx_hal_spi.c.

References __SPI_HandleTypeDef::AbortCpltCallback, HAL_SPI_AbortCpltCallback(), HAL_SPI_STATE_READY, __SPI_HandleTypeDef::hdmarx, __SPI_HandleTypeDef::hdmatx, SPI_AbortTransfer(), __SPI_HandleTypeDef::State, and __DMA_HandleTypeDef::XferAbortCallback.

Referenced by HAL_SPI_Abort_IT().

static uint32_t SPI_GetPacketSize ( SPI_HandleTypeDef hspi) [static]

Compute configured packet size from fifo perspective.

Parameters:
hspi,:pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
Return values:
Packetsize occupied in the fifo

Definition at line 3942 of file stm32h7xx_hal_spi.c.

References SPI_InitTypeDef::DataSize, SPI_InitTypeDef::FifoThreshold, and __SPI_HandleTypeDef::Init.

Referenced by HAL_SPI_Init().

static void SPI_RxISR_16BIT ( SPI_HandleTypeDef hspi) [static]

Manage the 16-bit receive in Interrupt context.

Parameters:
hspi,:pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
Return values:
None

Definition at line 3611 of file stm32h7xx_hal_spi.c.

References __HAL_SPI_DISABLE_IT, __SPI_HandleTypeDef::Instance, __SPI_HandleTypeDef::pRxBuffPtr, __SPI_HandleTypeDef::RxXferCount, __SPI_HandleTypeDef::RxXferSize, and SPI_IT_RXP.

Referenced by HAL_SPI_Receive_IT(), and HAL_SPI_TransmitReceive_IT().

static void SPI_RxISR_32BIT ( SPI_HandleTypeDef hspi) [static]

Manage the 32-bit receive in Interrupt context.

Parameters:
hspi,:pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
Return values:
None

Definition at line 3654 of file stm32h7xx_hal_spi.c.

References __HAL_SPI_DISABLE_IT, __SPI_HandleTypeDef::Instance, __SPI_HandleTypeDef::pRxBuffPtr, __SPI_HandleTypeDef::RxXferCount, __SPI_HandleTypeDef::RxXferSize, and SPI_IT_RXP.

Referenced by HAL_SPI_Receive_IT(), and HAL_SPI_TransmitReceive_IT().

static void SPI_RxISR_8BIT ( SPI_HandleTypeDef hspi) [static]

Manage the receive 8-bit in Interrupt context.

Parameters:
hspi,:pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
Return values:
None

Definition at line 3574 of file stm32h7xx_hal_spi.c.

References __HAL_SPI_DISABLE_IT, __SPI_HandleTypeDef::Instance, __SPI_HandleTypeDef::pRxBuffPtr, __SPI_HandleTypeDef::RxXferCount, __SPI_HandleTypeDef::RxXferSize, and SPI_IT_RXP.

Referenced by HAL_SPI_Receive_IT(), and HAL_SPI_TransmitReceive_IT().

static void SPI_TxISR_16BIT ( SPI_HandleTypeDef hspi) [static]

Handle the data 16-bit transmit in Interrupt mode.

Parameters:
hspi,:pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
Return values:
None

Definition at line 3727 of file stm32h7xx_hal_spi.c.

References __HAL_SPI_DISABLE_IT, __SPI_HandleTypeDef::Instance, __SPI_HandleTypeDef::pTxBuffPtr, SPI_IT_TXP, __SPI_HandleTypeDef::TxXferCount, and __SPI_HandleTypeDef::TxXferSize.

Referenced by HAL_SPI_Transmit_IT(), and HAL_SPI_TransmitReceive_IT().

static void SPI_TxISR_32BIT ( SPI_HandleTypeDef hspi) [static]

Handle the data 32-bit transmit in Interrupt mode.

Parameters:
hspi,:pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
Return values:
None

Definition at line 3769 of file stm32h7xx_hal_spi.c.

References __HAL_SPI_DISABLE_IT, __SPI_HandleTypeDef::Instance, __SPI_HandleTypeDef::pTxBuffPtr, SPI_IT_TXP, __SPI_HandleTypeDef::TxXferCount, and __SPI_HandleTypeDef::TxXferSize.

Referenced by HAL_SPI_Transmit_IT(), and HAL_SPI_TransmitReceive_IT().

static void SPI_TxISR_8BIT ( SPI_HandleTypeDef hspi) [static]

Handle the data 8-bit transmit in Interrupt mode.

Parameters:
hspi,:pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
Return values:
None

Definition at line 3691 of file stm32h7xx_hal_spi.c.

References __HAL_SPI_DISABLE_IT, __SPI_HandleTypeDef::Instance, __SPI_HandleTypeDef::pTxBuffPtr, SPI_IT_TXP, __SPI_HandleTypeDef::TxXferCount, and __SPI_HandleTypeDef::TxXferSize.

Referenced by HAL_SPI_Transmit_IT(), and HAL_SPI_TransmitReceive_IT().

static HAL_StatusTypeDef SPI_WaitOnFlagUntilTimeout ( SPI_HandleTypeDef hspi,
uint32_t  Flag,
FlagStatus  Status,
uint32_t  Tickstart,
uint32_t  Timeout 
) [static]

Handle SPI Communication Timeout.

Parameters:
hspi,:pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module.
Flag,:SPI flag to check
Status,:flag state to check
Timeout,:Timeout duration
Tickstart,:Tick start value
Return values:
HALstatus

Definition at line 3921 of file stm32h7xx_hal_spi.c.

References __HAL_SPI_GET_FLAG, and HAL_GetTick().

Referenced by HAL_SPI_Receive(), HAL_SPI_Transmit(), and HAL_SPI_TransmitReceive().