RTEMS 6.1-rc5
|
Header file of SWPMI LL module. More...
#include "stm32h7xx.h"
Go to the source code of this file.
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. | |
Header file of SWPMI LL module.
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.