RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros | Functions
stm32h7xx_ll_swpmi.h File Reference

Header file of SWPMI LL module. More...

#include "stm32h7xx.h"

Go to the source code of this file.

Macros

#define LL_SWPMI_ICR_CRXBFF   SWPMI_ICR_CRXBFF
 
#define LL_SWPMI_ICR_CTXBEF   SWPMI_ICR_CTXBEF
 
#define LL_SWPMI_ICR_CRXBERF   SWPMI_ICR_CRXBERF
 
#define LL_SWPMI_ICR_CRXOVRF   SWPMI_ICR_CRXOVRF
 
#define LL_SWPMI_ICR_CTXUNRF   SWPMI_ICR_CTXUNRF
 
#define LL_SWPMI_ICR_CTCF   SWPMI_ICR_CTCF
 
#define LL_SWPMI_ICR_CSRF   SWPMI_ICR_CSRF
 
#define LL_SWPMI_ISR_RXBFF   SWPMI_ISR_RXBFF
 
#define LL_SWPMI_ISR_TXBEF   SWPMI_ISR_TXBEF
 
#define LL_SWPMI_ISR_RXBERF   SWPMI_ISR_RXBERF
 
#define LL_SWPMI_ISR_RXOVRF   SWPMI_ISR_RXOVRF
 
#define LL_SWPMI_ISR_TXUNRF   SWPMI_ISR_TXUNRF
 
#define LL_SWPMI_ISR_RXNE   SWPMI_ISR_RXNE
 
#define LL_SWPMI_ISR_TXE   SWPMI_ISR_TXE
 
#define LL_SWPMI_ISR_TCF   SWPMI_ISR_TCF
 
#define LL_SWPMI_ISR_SRF   SWPMI_ISR_SRF
 
#define LL_SWPMI_ISR_SUSP   SWPMI_ISR_SUSP
 
#define LL_SWPMI_ISR_DEACTF   SWPMI_ISR_DEACTF
 
#define LL_SWPMI_IER_SRIE   SWPMI_IER_SRIE
 
#define LL_SWPMI_IER_TCIE   SWPMI_IER_TCIE
 
#define LL_SWPMI_IER_TIE   SWPMI_IER_TIE
 
#define LL_SWPMI_IER_RIE   SWPMI_IER_RIE
 
#define LL_SWPMI_IER_TXUNRIE   SWPMI_IER_TXUNRIE
 
#define LL_SWPMI_IER_RXOVRIE   SWPMI_IER_RXOVRIE
 
#define LL_SWPMI_IER_RXBERIE   SWPMI_IER_RXBERIE
 
#define LL_SWPMI_IER_TXBEIE   SWPMI_IER_TXBEIE
 
#define LL_SWPMI_IER_RXBFIE   SWPMI_IER_RXBFIE
 
#define LL_SWPMI_SW_BUFFER_RX_SINGLE   ((uint32_t)0x00000000)
 
#define LL_SWPMI_SW_BUFFER_RX_MULTI   SWPMI_CR_RXMODE
 
#define LL_SWPMI_SW_BUFFER_TX_SINGLE   ((uint32_t)0x00000000)
 
#define LL_SWPMI_SW_BUFFER_TX_MULTI   SWPMI_CR_TXMODE
 
#define LL_SWPMI_VOLTAGE_CLASS_C   ((uint32_t)0x00000000)
 
#define LL_SWPMI_VOLTAGE_CLASS_B   SWPMI_OR_CLASS
 
#define LL_SWPMI_DMA_REG_DATA_TRANSMIT   (uint32_t)0
 
#define LL_SWPMI_DMA_REG_DATA_RECEIVE   (uint32_t)1
 
#define LL_SWPMI_WriteReg(__INSTANCE__, __REG__, __VALUE__)   WRITE_REG(__INSTANCE__->__REG__, (__VALUE__))
 Write a value in SWPMI register.
 
#define LL_SWPMI_ReadReg(__INSTANCE__, __REG__)   READ_REG(__INSTANCE__->__REG__)
 Read a value in SWPMI register.
 
#define __LL_SWPMI_CALC_BITRATE_PRESCALER(__FSWP__, __FSWPCLK__)   ((uint32_t)(((__FSWPCLK__) / ((__FSWP__) * 4)) - 1))
 Helper macro to calculate bit rate value to set in BRR register (LL_SWPMI_SetBitRatePrescaler function)
 

Functions

__STATIC_INLINE void LL_SWPMI_SetReceptionMode (SWPMI_TypeDef *SWPMIx, uint32_t RxBufferingMode)
 Set Reception buffering mode.
 
__STATIC_INLINE uint32_t LL_SWPMI_GetReceptionMode (SWPMI_TypeDef *SWPMIx)
 Get Reception buffering mode @rmtoll CR RXMODE LL_SWPMI_GetReceptionMode.
 
__STATIC_INLINE void LL_SWPMI_SetTransmissionMode (SWPMI_TypeDef *SWPMIx, uint32_t TxBufferingMode)
 Set Transmission buffering mode.
 
__STATIC_INLINE uint32_t LL_SWPMI_GetTransmissionMode (SWPMI_TypeDef *SWPMIx)
 Get Transmission buffering mode @rmtoll CR TXMODE LL_SWPMI_GetTransmissionMode.
 
__STATIC_INLINE void LL_SWPMI_EnableLoopback (SWPMI_TypeDef *SWPMIx)
 Enable loopback mode @rmtoll CR LPBK LL_SWPMI_EnableLoopback.
 
__STATIC_INLINE void LL_SWPMI_DisableLoopback (SWPMI_TypeDef *SWPMIx)
 Disable loopback mode @rmtoll CR LPBK LL_SWPMI_DisableLoopback.
 
__STATIC_INLINE void LL_SWPMI_EnableTransceiver (SWPMI_TypeDef *SWPMIx)
 Enable SWPMI transceiver.
 
__STATIC_INLINE void LL_SWPMI_DisableTransceiver (SWPMI_TypeDef *SWPMIx)
 Disable SWPMI transceiver.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledTransceiver (SWPMI_TypeDef *SWPMIx)
 Check if SWPMI transceiver is enabled @rmtoll CR SWPEN LL_SWPMI_IsEnabledTransceiver.
 
__STATIC_INLINE void LL_SWPMI_Activate (SWPMI_TypeDef *SWPMIx)
 Activate Single wire protocol bus (SUSPENDED or ACTIVATED state)
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActivated (SWPMI_TypeDef *SWPMIx)
 Check if Single wire protocol bus is in ACTIVATED state. @rmtoll CR SWPACT LL_SWPMI_Activate.
 
__STATIC_INLINE void LL_SWPMI_Deactivate (SWPMI_TypeDef *SWPMIx)
 Deactivate immediately Single wire protocol bus (immediate transition to DEACTIVATED state) @rmtoll CR SWPACT LL_SWPMI_Deactivate.
 
__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) @rmtoll CR DEACT LL_SWPMI_RequestDeactivation.
 
__STATIC_INLINE void LL_SWPMI_SetBitRatePrescaler (SWPMI_TypeDef *SWPMIx, uint32_t BitRatePrescaler)
 Set Bitrate prescaler SWPMI_freq = SWPMI_clk / (((BitRate) + 1) * 4) @rmtoll BRR BR LL_SWPMI_SetBitRatePrescaler.
 
__STATIC_INLINE uint32_t LL_SWPMI_GetBitRatePrescaler (SWPMI_TypeDef *SWPMIx)
 Get Bitrate prescaler @rmtoll BRR BR LL_SWPMI_GetBitRatePrescaler.
 
__STATIC_INLINE void LL_SWPMI_SetVoltageClass (SWPMI_TypeDef *SWPMIx, uint32_t VoltageClass)
 Set SWP Voltage Class @rmtoll OR CLASS LL_SWPMI_SetVoltageClass.
 
__STATIC_INLINE uint32_t LL_SWPMI_GetVoltageClass (SWPMI_TypeDef *SWPMIx)
 Get SWP Voltage Class @rmtoll OR CLASS LL_SWPMI_GetVoltageClass.
 
__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. @rmtoll ISR RXBFF LL_SWPMI_IsActiveFlag_RXBF.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_TXBE (SWPMI_TypeDef *SWPMIx)
 Check if Frame transmission buffer has been emptied @rmtoll ISR TXBEF LL_SWPMI_IsActiveFlag_TXBE.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_RXBER (SWPMI_TypeDef *SWPMIx)
 Check if CRC error in reception has been detected @rmtoll ISR RXBERF LL_SWPMI_IsActiveFlag_RXBER.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_RXOVR (SWPMI_TypeDef *SWPMIx)
 Check if Overrun in reception has been detected @rmtoll ISR RXOVRF LL_SWPMI_IsActiveFlag_RXOVR.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_TXUNR (SWPMI_TypeDef *SWPMIx)
 Check if underrun error in transmission has been detected @rmtoll ISR TXUNRF LL_SWPMI_IsActiveFlag_TXUNR.
 
__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) @rmtoll ISR RXNE LL_SWPMI_IsActiveFlag_RXNE.
 
__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) @rmtoll ISR TXE LL_SWPMI_IsActiveFlag_TXE.
 
__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 @rmtoll ISR TCF LL_SWPMI_IsActiveFlag_TC.
 
__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 @rmtoll ISR SRF LL_SWPMI_IsActiveFlag_SR.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_SUSP (SWPMI_TypeDef *SWPMIx)
 Check if SWP bus is in SUSPENDED or DEACTIVATED state @rmtoll ISR SUSP LL_SWPMI_IsActiveFlag_SUSP.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_DEACT (SWPMI_TypeDef *SWPMIx)
 Check if SWP bus is in DEACTIVATED state @rmtoll ISR DEACTF LL_SWPMI_IsActiveFlag_DEACT.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_RDYF (SWPMI_TypeDef *SWPMIx)
 Check if SWPMI transceiver is ready @rmtoll ISR RDYF LL_SWPMI_IsActiveFlag_RDYF.
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_RXBF (SWPMI_TypeDef *SWPMIx)
 Clear receive buffer full flag @rmtoll ICR CRXBFF LL_SWPMI_ClearFlag_RXBF.
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_TXBE (SWPMI_TypeDef *SWPMIx)
 Clear transmit buffer empty flag @rmtoll ICR CTXBEF LL_SWPMI_ClearFlag_TXBE.
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_RXBER (SWPMI_TypeDef *SWPMIx)
 Clear receive CRC error flag @rmtoll ICR CRXBERF LL_SWPMI_ClearFlag_RXBER.
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_RXOVR (SWPMI_TypeDef *SWPMIx)
 Clear receive overrun error flag @rmtoll ICR CRXOVRF LL_SWPMI_ClearFlag_RXOVR.
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_TXUNR (SWPMI_TypeDef *SWPMIx)
 Clear transmit underrun error flag @rmtoll ICR CTXUNRF LL_SWPMI_ClearFlag_TXUNR.
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_TC (SWPMI_TypeDef *SWPMIx)
 Clear transfer complete flag @rmtoll ICR CTCF LL_SWPMI_ClearFlag_TC.
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_SR (SWPMI_TypeDef *SWPMIx)
 Clear slave resume flag @rmtoll ICR CSRF LL_SWPMI_ClearFlag_SR.
 
__STATIC_INLINE void LL_SWPMI_ClearFlag_RDY (SWPMI_TypeDef *SWPMIx)
 Clear SWPMI transceiver ready flag @rmtoll ISR CRDYF LL_SWPMI_ClearFlag_RDY.
 
__STATIC_INLINE void LL_SWPMI_EnableIT_RDY (SWPMI_TypeDef *SWPMIx)
 Enable SWPMI transceiver ready interrupt @rmtoll IER RDYIE LL_SWPMI_EnableIT_RDY.
 
__STATIC_INLINE void LL_SWPMI_EnableIT_SR (SWPMI_TypeDef *SWPMIx)
 Enable Slave resume interrupt @rmtoll IER SRIE LL_SWPMI_EnableIT_SR.
 
__STATIC_INLINE void LL_SWPMI_EnableIT_TC (SWPMI_TypeDef *SWPMIx)
 Enable Transmit complete interrupt @rmtoll IER TCIE LL_SWPMI_EnableIT_TC.
 
__STATIC_INLINE void LL_SWPMI_EnableIT_TX (SWPMI_TypeDef *SWPMIx)
 Enable Transmit interrupt @rmtoll IER TIE LL_SWPMI_EnableIT_TX.
 
__STATIC_INLINE void LL_SWPMI_EnableIT_RX (SWPMI_TypeDef *SWPMIx)
 Enable Receive interrupt @rmtoll IER RIE LL_SWPMI_EnableIT_RX.
 
__STATIC_INLINE void LL_SWPMI_EnableIT_TXUNR (SWPMI_TypeDef *SWPMIx)
 Enable Transmit underrun error interrupt @rmtoll IER TXUNRIE LL_SWPMI_EnableIT_TXUNR.
 
__STATIC_INLINE void LL_SWPMI_EnableIT_RXOVR (SWPMI_TypeDef *SWPMIx)
 Enable Receive overrun error interrupt @rmtoll IER RXOVRIE LL_SWPMI_EnableIT_RXOVR.
 
__STATIC_INLINE void LL_SWPMI_EnableIT_RXBER (SWPMI_TypeDef *SWPMIx)
 Enable Receive CRC error interrupt @rmtoll IER RXBERIE LL_SWPMI_EnableIT_RXBER.
 
__STATIC_INLINE void LL_SWPMI_EnableIT_TXBE (SWPMI_TypeDef *SWPMIx)
 Enable Transmit buffer empty interrupt @rmtoll IER TXBEIE LL_SWPMI_EnableIT_TXBE.
 
__STATIC_INLINE void LL_SWPMI_EnableIT_RXBF (SWPMI_TypeDef *SWPMIx)
 Enable Receive buffer full interrupt @rmtoll IER RXBFIE LL_SWPMI_EnableIT_RXBF.
 
__STATIC_INLINE void LL_SWPMI_DisableIT_RDY (SWPMI_TypeDef *SWPMIx)
 Disable SWPMI transceiver ready interrupt @rmtoll IER RDYIE LL_SWPMI_DisableIT_RDY.
 
__STATIC_INLINE void LL_SWPMI_DisableIT_SR (SWPMI_TypeDef *SWPMIx)
 Disable Slave resume interrupt @rmtoll IER SRIE LL_SWPMI_DisableIT_SR.
 
__STATIC_INLINE void LL_SWPMI_DisableIT_TC (SWPMI_TypeDef *SWPMIx)
 Disable Transmit complete interrupt @rmtoll IER TCIE LL_SWPMI_DisableIT_TC.
 
__STATIC_INLINE void LL_SWPMI_DisableIT_TX (SWPMI_TypeDef *SWPMIx)
 Disable Transmit interrupt @rmtoll IER TIE LL_SWPMI_DisableIT_TX.
 
__STATIC_INLINE void LL_SWPMI_DisableIT_RX (SWPMI_TypeDef *SWPMIx)
 Disable Receive interrupt @rmtoll IER RIE LL_SWPMI_DisableIT_RX.
 
__STATIC_INLINE void LL_SWPMI_DisableIT_TXUNR (SWPMI_TypeDef *SWPMIx)
 Disable Transmit underrun error interrupt @rmtoll IER TXUNRIE LL_SWPMI_DisableIT_TXUNR.
 
__STATIC_INLINE void LL_SWPMI_DisableIT_RXOVR (SWPMI_TypeDef *SWPMIx)
 Disable Receive overrun error interrupt @rmtoll IER RXOVRIE LL_SWPMI_DisableIT_RXOVR.
 
__STATIC_INLINE void LL_SWPMI_DisableIT_RXBER (SWPMI_TypeDef *SWPMIx)
 Disable Receive CRC error interrupt @rmtoll IER RXBERIE LL_SWPMI_DisableIT_RXBER.
 
__STATIC_INLINE void LL_SWPMI_DisableIT_TXBE (SWPMI_TypeDef *SWPMIx)
 Disable Transmit buffer empty interrupt @rmtoll IER TXBEIE LL_SWPMI_DisableIT_TXBE.
 
__STATIC_INLINE void LL_SWPMI_DisableIT_RXBF (SWPMI_TypeDef *SWPMIx)
 Disable Receive buffer full interrupt @rmtoll IER RXBFIE LL_SWPMI_DisableIT_RXBF.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_RDY (SWPMI_TypeDef *SWPMIx)
 Check if SWPMI transceiver ready interrupt is enabled @rmtoll IER RDYIE LL_SWPMI_IsEnabledIT_RDY.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_SR (SWPMI_TypeDef *SWPMIx)
 Check if Slave resume interrupt is enabled @rmtoll IER SRIE LL_SWPMI_IsEnabledIT_SR.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_TC (SWPMI_TypeDef *SWPMIx)
 Check if Transmit complete interrupt is enabled @rmtoll IER TCIE LL_SWPMI_IsEnabledIT_TC.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_TX (SWPMI_TypeDef *SWPMIx)
 Check if Transmit interrupt is enabled @rmtoll IER TIE LL_SWPMI_IsEnabledIT_TX.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_RX (SWPMI_TypeDef *SWPMIx)
 Check if Receive interrupt is enabled @rmtoll IER RIE LL_SWPMI_IsEnabledIT_RX.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_TXUNR (SWPMI_TypeDef *SWPMIx)
 Check if Transmit underrun error interrupt is enabled @rmtoll IER TXUNRIE LL_SWPMI_IsEnabledIT_TXUNR.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_RXOVR (SWPMI_TypeDef *SWPMIx)
 Check if Receive overrun error interrupt is enabled @rmtoll IER RXOVRIE LL_SWPMI_IsEnabledIT_RXOVR.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_RXBER (SWPMI_TypeDef *SWPMIx)
 Check if Receive CRC error interrupt is enabled @rmtoll IER RXBERIE LL_SWPMI_IsEnabledIT_RXBER.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_TXBE (SWPMI_TypeDef *SWPMIx)
 Check if Transmit buffer empty interrupt is enabled @rmtoll IER TXBEIE LL_SWPMI_IsEnabledIT_TXBE.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_RXBF (SWPMI_TypeDef *SWPMIx)
 Check if Receive buffer full interrupt is enabled @rmtoll IER RXBFIE LL_SWPMI_IsEnabledIT_RXBF.
 
__STATIC_INLINE void LL_SWPMI_EnableDMAReq_RX (SWPMI_TypeDef *SWPMIx)
 Enable DMA mode for reception @rmtoll CR RXDMA LL_SWPMI_EnableDMAReq_RX.
 
__STATIC_INLINE void LL_SWPMI_DisableDMAReq_RX (SWPMI_TypeDef *SWPMIx)
 Disable DMA mode for reception @rmtoll CR RXDMA LL_SWPMI_DisableDMAReq_RX.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledDMAReq_RX (SWPMI_TypeDef *SWPMIx)
 Check if DMA mode for reception is enabled @rmtoll CR RXDMA LL_SWPMI_IsEnabledDMAReq_RX.
 
__STATIC_INLINE void LL_SWPMI_EnableDMAReq_TX (SWPMI_TypeDef *SWPMIx)
 Enable DMA mode for transmission @rmtoll CR TXDMA LL_SWPMI_EnableDMAReq_TX.
 
__STATIC_INLINE void LL_SWPMI_DisableDMAReq_TX (SWPMI_TypeDef *SWPMIx)
 Disable DMA mode for transmission @rmtoll CR TXDMA LL_SWPMI_DisableDMAReq_TX.
 
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledDMAReq_TX (SWPMI_TypeDef *SWPMIx)
 Check if DMA mode for transmission is enabled @rmtoll CR TXDMA LL_SWPMI_IsEnabledDMAReq_TX.
 
__STATIC_INLINE uint32_t LL_SWPMI_DMA_GetRegAddr (SWPMI_TypeDef *SWPMIx, uint32_t Direction)
 Get the data register address used for DMA transfer @rmtoll TDR TD LL_SWPMI_DMA_GetRegAddr
RDR RD LL_SWPMI_DMA_GetRegAddr.
 
__STATIC_INLINE uint32_t LL_SWPMI_GetReceiveFrameLength (SWPMI_TypeDef *SWPMIx)
 Retrieve number of data bytes present in payload of received frame @rmtoll RFL RFL LL_SWPMI_GetReceiveFrameLength.
 
__STATIC_INLINE void LL_SWPMI_TransmitData32 (SWPMI_TypeDef *SWPMIx, uint32_t TxData)
 Transmit Data Register @rmtoll TDR TD LL_SWPMI_TransmitData32.
 
__STATIC_INLINE uint32_t LL_SWPMI_ReceiveData32 (SWPMI_TypeDef *SWPMIx)
 Receive Data Register @rmtoll RDR RD LL_SWPMI_ReceiveData32.
 
__STATIC_INLINE void LL_SWPMI_EnableTXBypass (SWPMI_TypeDef *SWPMIx)
 Enable SWP Transceiver Bypass.
 
__STATIC_INLINE void LL_SWPMI_DisableTXBypass (SWPMI_TypeDef *SWPMIx)
 Disable SWP Transceiver Bypass.
 

Detailed Description

Header file of SWPMI LL module.

Author
MCD Application Team
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.