STM32L486xx HAL User Manual
Functions
SWPMI Private Functions
SWPMI

Functions

static HAL_StatusTypeDef SWPMI_Transmit_IT (SWPMI_HandleTypeDef *hswpmi)
 Transmit an amount of data in interrupt mode.
static HAL_StatusTypeDef SWPMI_EndTransmit_IT (SWPMI_HandleTypeDef *hswpmi)
 Wraps up transmission in non-blocking mode.
static HAL_StatusTypeDef SWPMI_Receive_IT (SWPMI_HandleTypeDef *hswpmi)
 Receive an amount of data in interrupt mode.
static HAL_StatusTypeDef SWPMI_EndReceive_IT (SWPMI_HandleTypeDef *hswpmi)
 Wraps up reception in non-blocking mode.
static HAL_StatusTypeDef SWPMI_EndTransmitReceive_IT (SWPMI_HandleTypeDef *hswpmi)
 Wraps up transmission and reception in non-blocking mode.
static void SWPMI_DMATransmitCplt (DMA_HandleTypeDef *hdma)
 DMA SWPMI transmit process complete callback.
static void SWPMI_DMATxHalfCplt (DMA_HandleTypeDef *hdma)
 DMA SWPMI transmit process half complete callback.
static void SWPMI_DMAReceiveCplt (DMA_HandleTypeDef *hdma)
 DMA SWPMI receive process complete callback.
static void SWPMI_DMARxHalfCplt (DMA_HandleTypeDef *hdma)
 DMA SWPMI receive process half complete callback.
static void SWPMI_DMAError (DMA_HandleTypeDef *hdma)
 DMA SWPMI communication error callback.
static void SWPMI_DMAAbortOnError (DMA_HandleTypeDef *hdma)
 DMA SWPMI communication abort callback.
static HAL_StatusTypeDef SWPMI_WaitOnFlagSetUntilTimeout (SWPMI_HandleTypeDef *hswpmi, uint32_t Flag, uint32_t Tickstart, uint32_t Timeout)
 Handle SWPMI Communication Timeout.

Function Documentation

static void SWPMI_DMAAbortOnError ( DMA_HandleTypeDef hdma) [static]

DMA SWPMI communication abort callback.

Parameters:
hdmaDMA handle
Return values:
None

Definition at line 1850 of file stm32l4xx_hal_swpmi.c.

References __SWPMI_HandleTypeDef::ErrorCallback, HAL_SWPMI_ErrorCallback(), HAL_SWPMI_STATE_READY, __SWPMI_HandleTypeDef::RxXferCount, __SWPMI_HandleTypeDef::State, and __SWPMI_HandleTypeDef::TxXferCount.

Referenced by HAL_SWPMI_IRQHandler().

static void SWPMI_DMAError ( DMA_HandleTypeDef hdma) [static]
static void SWPMI_DMAReceiveCplt ( DMA_HandleTypeDef hdma) [static]
static void SWPMI_DMARxHalfCplt ( DMA_HandleTypeDef hdma) [static]

DMA SWPMI receive process half complete callback.

Parameters:
hdmaDMA handle
Return values:
None

Definition at line 1812 of file stm32l4xx_hal_swpmi.c.

References HAL_SWPMI_RxHalfCpltCallback(), and __SWPMI_HandleTypeDef::RxHalfCpltCallback.

Referenced by HAL_SWPMI_Receive_DMA().

static void SWPMI_DMATransmitCplt ( DMA_HandleTypeDef hdma) [static]
static void SWPMI_DMATxHalfCplt ( DMA_HandleTypeDef hdma) [static]

DMA SWPMI transmit process half complete callback.

Parameters:
hdmaDMA handle
Return values:
None

Definition at line 1760 of file stm32l4xx_hal_swpmi.c.

References HAL_SWPMI_TxHalfCpltCallback(), and __SWPMI_HandleTypeDef::TxHalfCpltCallback.

Referenced by HAL_SWPMI_Transmit_DMA().

static HAL_StatusTypeDef SWPMI_EndReceive_IT ( SWPMI_HandleTypeDef hswpmi) [static]

Wraps up reception in non-blocking mode.

Parameters:
hswpmiSWPMI handle
Return values:
HALstatus
HALstatus

Definition at line 1644 of file stm32l4xx_hal_swpmi.c.

References HAL_SWPMI_STATE_BUSY_TX, HAL_SWPMI_STATE_BUSY_TX_RX, HAL_SWPMI_STATE_READY, __SWPMI_HandleTypeDef::Instance, __SWPMI_HandleTypeDef::State, SWPMI_FLAG_RXBFF, SWPMI_IT_RIE, SWPMI_IT_RXBERIE, SWPMI_IT_RXBFIE, and SWPMI_IT_RXOVRIE.

Referenced by HAL_SWPMI_IRQHandler().

static HAL_StatusTypeDef SWPMI_EndTransmit_IT ( SWPMI_HandleTypeDef hswpmi) [static]
static HAL_StatusTypeDef SWPMI_EndTransmitReceive_IT ( SWPMI_HandleTypeDef hswpmi) [static]

Wraps up transmission and reception in non-blocking mode.

Parameters:
hswpmiSWPMI handle
Return values:
HALstatus
HALstatus

Definition at line 1670 of file stm32l4xx_hal_swpmi.c.

References HAL_SWPMI_STATE_BUSY_RX, HAL_SWPMI_STATE_BUSY_TX, HAL_SWPMI_STATE_BUSY_TX_RX, HAL_SWPMI_STATE_READY, __SWPMI_HandleTypeDef::Instance, __SWPMI_HandleTypeDef::State, SWPMI_FLAG_TCF, and SWPMI_IT_TCIE.

Referenced by HAL_SWPMI_IRQHandler().

static HAL_StatusTypeDef SWPMI_Receive_IT ( SWPMI_HandleTypeDef hswpmi) [static]

Receive an amount of data in interrupt mode.

Note:
Function called under interruption only, once interruptions have been enabled by HAL_SWPMI_Receive_IT()
Parameters:
hswpmiSWPMI handle
Return values:
HALstatus

Definition at line 1612 of file stm32l4xx_hal_swpmi.c.

References HAL_SWPMI_RxCpltCallback(), HAL_SWPMI_STATE_BUSY_RX, HAL_SWPMI_STATE_BUSY_TX_RX, __SWPMI_HandleTypeDef::Instance, __SWPMI_HandleTypeDef::pRxBuffPtr, __SWPMI_HandleTypeDef::RxCpltCallback, __SWPMI_HandleTypeDef::RxXferCount, and __SWPMI_HandleTypeDef::State.

Referenced by HAL_SWPMI_IRQHandler().

static HAL_StatusTypeDef SWPMI_Transmit_IT ( SWPMI_HandleTypeDef hswpmi) [static]

Transmit an amount of data in interrupt mode.

Note:
Function called under interruption only, once interruptions have been enabled by HAL_SWPMI_Transmit_IT()
Parameters:
hswpmiSWPMI handle
Return values:
HALstatus

Definition at line 1549 of file stm32l4xx_hal_swpmi.c.

References HAL_SWPMI_STATE_BUSY_TX, HAL_SWPMI_STATE_BUSY_TX_RX, __SWPMI_HandleTypeDef::Instance, __SWPMI_HandleTypeDef::pTxBuffPtr, __SWPMI_HandleTypeDef::State, SWPMI_IT_TIE, SWPMI_IT_TXUNRIE, and __SWPMI_HandleTypeDef::TxXferCount.

Referenced by HAL_SWPMI_IRQHandler().

static HAL_StatusTypeDef SWPMI_WaitOnFlagSetUntilTimeout ( SWPMI_HandleTypeDef hswpmi,
uint32_t  Flag,
uint32_t  Tickstart,
uint32_t  Timeout 
) [static]

Handle SWPMI Communication Timeout.

Parameters:
hswpmiSWPMI handle
Flag,:specifies the SWPMI flag to check.
TickstartTick start value
Timeouttimeout duration.
Return values:
HALstatus

Definition at line 1874 of file stm32l4xx_hal_swpmi.c.

References HAL_GetTick(), HAL_SWPMI_STATE_READY, __SWPMI_HandleTypeDef::Instance, and __SWPMI_HandleTypeDef::State.

Referenced by HAL_SWPMI_Transmit(), and SWPMI_DMATransmitCplt().