STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_ll_swpmi.h File Reference

Header file of SWPMI LL module. More...

Go to the source code of this file.

Data Structures

struct  LL_SWPMI_InitTypeDef
 SWPMI Init structures definition. More...
 

Functions

__STATIC_INLINE void LL_SWPMI_SetReceptionMode (SWPMI_TypeDef *SWPMIx, uint32_t RxBufferingMode)
 Set Reception buffering mode. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_GetReceptionMode (SWPMI_TypeDef *SWPMIx)
 Get Reception buffering mode CR RXMODE LL_SWPMI_GetReceptionMode. More...
 
__STATIC_INLINE void LL_SWPMI_SetTransmissionMode (SWPMI_TypeDef *SWPMIx, uint32_t TxBufferingMode)
 Set Transmission buffering mode. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_GetTransmissionMode (SWPMI_TypeDef *SWPMIx)
 Get Transmission buffering mode CR TXMODE LL_SWPMI_GetTransmissionMode. More...
 
__STATIC_INLINE void LL_SWPMI_EnableLoopback (SWPMI_TypeDef *SWPMIx)
 Enable loopback mode CR LPBK LL_SWPMI_EnableLoopback. More...
 
__STATIC_INLINE void LL_SWPMI_DisableLoopback (SWPMI_TypeDef *SWPMIx)
 Disable loopback mode CR LPBK LL_SWPMI_DisableLoopback. More...
 
__STATIC_INLINE void LL_SWPMI_Activate (SWPMI_TypeDef *SWPMIx)
 Activate Single wire protocol bus (SUSPENDED or ACTIVATED state) More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActivated (SWPMI_TypeDef *SWPMIx)
 Check if Single wire protocol bus is in ACTIVATED state. CR SWPACT LL_SWPMI_Activate. More...
 
__STATIC_INLINE void LL_SWPMI_Deactivate (SWPMI_TypeDef *SWPMIx)
 Deactivate immediately Single wire protocol bus (immediate transition to DEACTIVATED state) CR SWPACT LL_SWPMI_Deactivate. More...
 
__STATIC_INLINE void LL_SWPMI_RequestDeactivation (SWPMI_TypeDef *SWPMIx)
 Request a deactivation of Single wire protocol bus (request to go in DEACTIVATED state if no resume from slave) CR DEACT LL_SWPMI_RequestDeactivation. More...
 
__STATIC_INLINE void LL_SWPMI_SetBitRatePrescaler (SWPMI_TypeDef *SWPMIx, uint32_t BitRatePrescaler)
 Set Bitrate prescaler SWPMI_freq = SWPMI_clk / (((BitRate) + 1) * 4) BRR BR LL_SWPMI_SetBitRatePrescaler. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_GetBitRatePrescaler (SWPMI_TypeDef *SWPMIx)
 Get Bitrate prescaler BRR BR LL_SWPMI_GetBitRatePrescaler. More...
 
__STATIC_INLINE void LL_SWPMI_SetVoltageClass (SWPMI_TypeDef *SWPMIx, uint32_t VoltageClass)
 Set SWP Voltage Class OR CLASS LL_SWPMI_SetVoltageClass. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_GetVoltageClass (SWPMI_TypeDef *SWPMIx)
 Get SWP Voltage Class OR CLASS LL_SWPMI_GetVoltageClass. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_RXBF (SWPMI_TypeDef *SWPMIx)
 Check if the last word of the frame under reception has arrived in SWPMI_RDR. ISR RXBFF LL_SWPMI_IsActiveFlag_RXBF. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_TXBE (SWPMI_TypeDef *SWPMIx)
 Check if Frame transmission buffer has been emptied ISR TXBEF LL_SWPMI_IsActiveFlag_TXBE. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_RXBER (SWPMI_TypeDef *SWPMIx)
 Check if CRC error in reception has been detected ISR RXBERF LL_SWPMI_IsActiveFlag_RXBER. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_RXOVR (SWPMI_TypeDef *SWPMIx)
 Check if Overrun in reception has been detected ISR RXOVRF LL_SWPMI_IsActiveFlag_RXOVR. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_TXUNR (SWPMI_TypeDef *SWPMIx)
 Check if underrun error in transmission has been detected ISR TXUNRF LL_SWPMI_IsActiveFlag_TXUNR. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_RXNE (SWPMI_TypeDef *SWPMIx)
 Check if Receive data register not empty (it means that Received data is ready to be read in the SWPMI_RDR register) ISR RXNE LL_SWPMI_IsActiveFlag_RXNE. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_TXE (SWPMI_TypeDef *SWPMIx)
 Check if Transmit data register is empty (it means that Data written in transmit data register SWPMI_TDR has been transmitted and SWPMI_TDR can be written to again) ISR TXE LL_SWPMI_IsActiveFlag_TXE. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_TC (SWPMI_TypeDef *SWPMIx)
 Check if Both transmission and reception are completed and SWP is switched to the SUSPENDED state ISR TCF LL_SWPMI_IsActiveFlag_TC. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_SR (SWPMI_TypeDef *SWPMIx)
 Check if a Resume by slave state has been detected during the SWP bus SUSPENDED state ISR SRF LL_SWPMI_IsActiveFlag_SR. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_SUSP (SWPMI_TypeDef *SWPMIx)
 Check if SWP bus is in SUSPENDED or DEACTIVATED state ISR SUSP LL_SWPMI_IsActiveFlag_SUSP. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_DEACT (SWPMI_TypeDef *SWPMIx)
 Check if SWP bus is in DEACTIVATED state ISR DEACTF LL_SWPMI_IsActiveFlag_DEACT. More...
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_RXBF (SWPMI_TypeDef *SWPMIx)
 Clear receive buffer full flag ICR CRXBFF LL_SWPMI_ClearFlag_RXBF. More...
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_TXBE (SWPMI_TypeDef *SWPMIx)
 Clear transmit buffer empty flag ICR CTXBEF LL_SWPMI_ClearFlag_TXBE. More...
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_RXBER (SWPMI_TypeDef *SWPMIx)
 Clear receive CRC error flag ICR CRXBERF LL_SWPMI_ClearFlag_RXBER. More...
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_RXOVR (SWPMI_TypeDef *SWPMIx)
 Clear receive overrun error flag ICR CRXOVRF LL_SWPMI_ClearFlag_RXOVR. More...
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_TXUNR (SWPMI_TypeDef *SWPMIx)
 Clear transmit underrun error flag ICR CTXUNRF LL_SWPMI_ClearFlag_TXUNR. More...
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_TC (SWPMI_TypeDef *SWPMIx)
 Clear transfer complete flag ICR CTCF LL_SWPMI_ClearFlag_TC. More...
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_SR (SWPMI_TypeDef *SWPMIx)
 Clear slave resume flag ICR CSRF LL_SWPMI_ClearFlag_SR. More...
 
__STATIC_INLINE void LL_SWPMI_EnableIT_SR (SWPMI_TypeDef *SWPMIx)
 Enable Slave resume interrupt IER SRIE LL_SWPMI_EnableIT_SR. More...
 
__STATIC_INLINE void LL_SWPMI_EnableIT_TC (SWPMI_TypeDef *SWPMIx)
 Enable Transmit complete interrupt IER TCIE LL_SWPMI_EnableIT_TC. More...
 
__STATIC_INLINE void LL_SWPMI_EnableIT_TX (SWPMI_TypeDef *SWPMIx)
 Enable Transmit interrupt IER TIE LL_SWPMI_EnableIT_TX. More...
 
__STATIC_INLINE void LL_SWPMI_EnableIT_RX (SWPMI_TypeDef *SWPMIx)
 Enable Receive interrupt IER RIE LL_SWPMI_EnableIT_RX. More...
 
__STATIC_INLINE void LL_SWPMI_EnableIT_TXUNR (SWPMI_TypeDef *SWPMIx)
 Enable Transmit underrun error interrupt IER TXUNRIE LL_SWPMI_EnableIT_TXUNR. More...
 
__STATIC_INLINE void LL_SWPMI_EnableIT_RXOVR (SWPMI_TypeDef *SWPMIx)
 Enable Receive overrun error interrupt IER RXOVRIE LL_SWPMI_EnableIT_RXOVR. More...
 
__STATIC_INLINE void LL_SWPMI_EnableIT_RXBER (SWPMI_TypeDef *SWPMIx)
 Enable Receive CRC error interrupt IER RXBERIE LL_SWPMI_EnableIT_RXBER. More...
 
__STATIC_INLINE void LL_SWPMI_EnableIT_TXBE (SWPMI_TypeDef *SWPMIx)
 Enable Transmit buffer empty interrupt IER TXBEIE LL_SWPMI_EnableIT_TXBE. More...
 
__STATIC_INLINE void LL_SWPMI_EnableIT_RXBF (SWPMI_TypeDef *SWPMIx)
 Enable Receive buffer full interrupt IER RXBFIE LL_SWPMI_EnableIT_RXBF. More...
 
__STATIC_INLINE void LL_SWPMI_DisableIT_SR (SWPMI_TypeDef *SWPMIx)
 Disable Slave resume interrupt IER SRIE LL_SWPMI_DisableIT_SR. More...
 
__STATIC_INLINE void LL_SWPMI_DisableIT_TC (SWPMI_TypeDef *SWPMIx)
 Disable Transmit complete interrupt IER TCIE LL_SWPMI_DisableIT_TC. More...
 
__STATIC_INLINE void LL_SWPMI_DisableIT_TX (SWPMI_TypeDef *SWPMIx)
 Disable Transmit interrupt IER TIE LL_SWPMI_DisableIT_TX. More...
 
__STATIC_INLINE void LL_SWPMI_DisableIT_RX (SWPMI_TypeDef *SWPMIx)
 Disable Receive interrupt IER RIE LL_SWPMI_DisableIT_RX. More...
 
__STATIC_INLINE void LL_SWPMI_DisableIT_TXUNR (SWPMI_TypeDef *SWPMIx)
 Disable Transmit underrun error interrupt IER TXUNRIE LL_SWPMI_DisableIT_TXUNR. More...
 
__STATIC_INLINE void LL_SWPMI_DisableIT_RXOVR (SWPMI_TypeDef *SWPMIx)
 Disable Receive overrun error interrupt IER RXOVRIE LL_SWPMI_DisableIT_RXOVR. More...
 
__STATIC_INLINE void LL_SWPMI_DisableIT_RXBER (SWPMI_TypeDef *SWPMIx)
 Disable Receive CRC error interrupt IER RXBERIE LL_SWPMI_DisableIT_RXBER. More...
 
__STATIC_INLINE void LL_SWPMI_DisableIT_TXBE (SWPMI_TypeDef *SWPMIx)
 Disable Transmit buffer empty interrupt IER TXBEIE LL_SWPMI_DisableIT_TXBE. More...
 
__STATIC_INLINE void LL_SWPMI_DisableIT_RXBF (SWPMI_TypeDef *SWPMIx)
 Disable Receive buffer full interrupt IER RXBFIE LL_SWPMI_DisableIT_RXBF. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_SR (SWPMI_TypeDef *SWPMIx)
 Check if Slave resume interrupt is enabled IER SRIE LL_SWPMI_IsEnabledIT_SR. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_TC (SWPMI_TypeDef *SWPMIx)
 Check if Transmit complete interrupt is enabled IER TCIE LL_SWPMI_IsEnabledIT_TC. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_TX (SWPMI_TypeDef *SWPMIx)
 Check if Transmit interrupt is enabled IER TIE LL_SWPMI_IsEnabledIT_TX. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_RX (SWPMI_TypeDef *SWPMIx)
 Check if Receive interrupt is enabled IER RIE LL_SWPMI_IsEnabledIT_RX. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_TXUNR (SWPMI_TypeDef *SWPMIx)
 Check if Transmit underrun error interrupt is enabled IER TXUNRIE LL_SWPMI_IsEnabledIT_TXUNR. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_RXOVR (SWPMI_TypeDef *SWPMIx)
 Check if Receive overrun error interrupt is enabled IER RXOVRIE LL_SWPMI_IsEnabledIT_RXOVR. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_RXBER (SWPMI_TypeDef *SWPMIx)
 Check if Receive CRC error interrupt is enabled IER RXBERIE LL_SWPMI_IsEnabledIT_RXBER. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_TXBE (SWPMI_TypeDef *SWPMIx)
 Check if Transmit buffer empty interrupt is enabled IER TXBEIE LL_SWPMI_IsEnabledIT_TXBE. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_RXBF (SWPMI_TypeDef *SWPMIx)
 Check if Receive buffer full interrupt is enabled IER RXBFIE LL_SWPMI_IsEnabledIT_RXBF. More...
 
__STATIC_INLINE void LL_SWPMI_EnableDMAReq_RX (SWPMI_TypeDef *SWPMIx)
 Enable DMA mode for reception CR RXDMA LL_SWPMI_EnableDMAReq_RX. More...
 
__STATIC_INLINE void LL_SWPMI_DisableDMAReq_RX (SWPMI_TypeDef *SWPMIx)
 Disable DMA mode for reception CR RXDMA LL_SWPMI_DisableDMAReq_RX. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledDMAReq_RX (SWPMI_TypeDef *SWPMIx)
 Check if DMA mode for reception is enabled CR RXDMA LL_SWPMI_IsEnabledDMAReq_RX. More...
 
__STATIC_INLINE void LL_SWPMI_EnableDMAReq_TX (SWPMI_TypeDef *SWPMIx)
 Enable DMA mode for transmission CR TXDMA LL_SWPMI_EnableDMAReq_TX. More...
 
__STATIC_INLINE void LL_SWPMI_DisableDMAReq_TX (SWPMI_TypeDef *SWPMIx)
 Disable DMA mode for transmission CR TXDMA LL_SWPMI_DisableDMAReq_TX. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledDMAReq_TX (SWPMI_TypeDef *SWPMIx)
 Check if DMA mode for transmission is enabled CR TXDMA LL_SWPMI_IsEnabledDMAReq_TX. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_DMA_GetRegAddr (SWPMI_TypeDef *SWPMIx, uint32_t Direction)
 Get the data register address used for DMA transfer TDR TD LL_SWPMI_DMA_GetRegAddr
RDR RD LL_SWPMI_DMA_GetRegAddr. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_GetReceiveFrameLength (SWPMI_TypeDef *SWPMIx)
 Retrieve number of data bytes present in payload of received frame RFL RFL LL_SWPMI_GetReceiveFrameLength. More...
 
__STATIC_INLINE void LL_SWPMI_TransmitData32 (SWPMI_TypeDef *SWPMIx, uint32_t TxData)
 Transmit Data Register TDR TD LL_SWPMI_TransmitData32. More...
 
__STATIC_INLINE uint32_t LL_SWPMI_ReceiveData32 (SWPMI_TypeDef *SWPMIx)
 Receive Data Register RDR RD LL_SWPMI_ReceiveData32. More...
 
__STATIC_INLINE void LL_SWPMI_EnableTXBypass (SWPMI_TypeDef *SWPMIx)
 Enable SWP Transceiver Bypass. More...
 
__STATIC_INLINE void LL_SWPMI_DisableTXBypass (SWPMI_TypeDef *SWPMIx)
 Disable SWP Transceiver Bypass. More...
 
ErrorStatus LL_SWPMI_DeInit (SWPMI_TypeDef *SWPMIx)
 De-initialize the SWPMI peripheral registers to their default reset values. More...
 
ErrorStatus LL_SWPMI_Init (SWPMI_TypeDef *SWPMIx, LL_SWPMI_InitTypeDef *SWPMI_InitStruct)
 Initialize the SWPMI peripheral according to the specified parameters in the SWPMI_InitStruct. More...
 
void LL_SWPMI_StructInit (LL_SWPMI_InitTypeDef *SWPMI_InitStruct)
 Set each LL_SWPMI_InitTypeDef field to default value. More...
 

Detailed Description

Header file of SWPMI LL module.

Author
MCD Application Team
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_ll_swpmi.h.