Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Embed: (wiki syntax)

« Back to documentation index

stm32l4xx_ll_swpmi.h File Reference

stm32l4xx_ll_swpmi.h File Reference

Header file of SWPMI LL module. More...

Go to the source code of this file.

Functions

__STATIC_INLINE void LL_SWPMI_SetReceptionMode (SWPMI_TypeDef *SWPMIx, uint32_t Mode)
 Set Reception buffering mode.
__STATIC_INLINE uint32_t LL_SWPMI_GetReceptionMode (SWPMI_TypeDef *SWPMIx)
 Get Reception buffering mode CR RXMODE LL_SWPMI_GetReceptionMode.
__STATIC_INLINE void LL_SWPMI_SetTransmissionMode (SWPMI_TypeDef *SWPMIx, uint32_t Mode)
 Set Transmission buffering mode.
__STATIC_INLINE uint32_t LL_SWPMI_GetTransmissionMode (SWPMI_TypeDef *SWPMIx)
 Get Transmission buffering mode CR TXMODE LL_SWPMI_GetTransmissionMode.
__STATIC_INLINE void LL_SWPMI_EnableLoopback (SWPMI_TypeDef *SWPMIx)
 Enable Loopback mode CR LPBK LL_SWPMI_EnableLoopback.
__STATIC_INLINE void LL_SWPMI_DisableLoopback (SWPMI_TypeDef *SWPMIx)
 Disable Loopback mode CR LPBK LL_SWPMI_DisableLoopback.
__STATIC_INLINE void LL_SWPMI_Activate (SWPMI_TypeDef *SWPMIx)
 Activate Single wire protocol bus (SUSPENDED or ACTIVATED state)
__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.
__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.
__STATIC_INLINE void LL_SWPMI_SetBitRatePrescaler (SWPMI_TypeDef *SWPMIx, uint32_t Prescaler)
 Set Bitrate prescaler SWPMI_freq = SWPMI_clk / (((BitRate) + 1) * 4) BRR BR LL_SWPMI_SetBitRatePrescaler.
__STATIC_INLINE uint32_t LL_SWPMI_GetBitRatePrescaler (SWPMI_TypeDef *SWPMIx)
 Get Bitrate prescaler BRR BR LL_SWPMI_GetBitRatePrescaler.
__STATIC_INLINE void LL_SWPMI_SetVoltageClass (SWPMI_TypeDef *SWPMIx, uint32_t Class)
 Set SWP Voltage Class OR CLASS LL_SWPMI_SetVoltageClass.
__STATIC_INLINE uint32_t LL_SWPMI_GetVoltageClass (SWPMI_TypeDef *SWPMIx)
 Get SWP Voltage Class OR CLASS LL_SWPMI_GetVoltageClass.
__STATIC_INLINE uint32_t LL_SWPMI_IsActiveFlag_RXBF (SWPMI_TypeDef *SWPMIx)
 Check if the last word of the frame underreception has arrived in SWPMI_RDR.
__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.
__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.
__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.
__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.
__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.
__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.
__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.
__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.
__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.
__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.
__STATIC_INLINE void LL_SWPMI_ClearFlag_RXBF (SWPMI_TypeDef *SWPMIx)
 Clear receive buffer full flag ICR CRXBFF LL_SWPMI_ClearFlag_RXBF.
__STATIC_INLINE void LL_SWPMI_ClearFlag_TXBE (SWPMI_TypeDef *SWPMIx)
 Clear transmit buffer empty flag ICR CTXBEF LL_SWPMI_ClearFlag_TXBE.
__STATIC_INLINE void LL_SWPMI_ClearFlag_RXBER (SWPMI_TypeDef *SWPMIx)
 Clear receive CRC error flag ICR CRXBERF LL_SWPMI_ClearFlag_RXBER.
__STATIC_INLINE void LL_SWPMI_ClearFlag_RXOVR (SWPMI_TypeDef *SWPMIx)
 Clear receive overrun error flag ICR CRXOVRF LL_SWPMI_ClearFlag_RXOVR.
__STATIC_INLINE void LL_SWPMI_ClearFlag_TXUNR (SWPMI_TypeDef *SWPMIx)
 Clear transmit underrun error flag ICR CTXUNRF LL_SWPMI_ClearFlag_TXUNR.
__STATIC_INLINE void LL_SWPMI_ClearFlag_TC (SWPMI_TypeDef *SWPMIx)
 Clear transfer complete flag ICR CTCF LL_SWPMI_ClearFlag_TC.
__STATIC_INLINE void LL_SWPMI_ClearFlag_SR (SWPMI_TypeDef *SWPMIx)
 Clear slave resume flag ICR CSRF LL_SWPMI_ClearFlag_SR.
__STATIC_INLINE void LL_SWPMI_EnableIT_SR (SWPMI_TypeDef *SWPMIx)
 Enable Slave resume interrupt IER SRIE LL_SWPMI_EnableIT_SR.
__STATIC_INLINE void LL_SWPMI_EnableIT_TC (SWPMI_TypeDef *SWPMIx)
 Enable Transmit complete interrupt IER TCIE LL_SWPMI_EnableIT_TC.
__STATIC_INLINE void LL_SWPMI_EnableIT_TX (SWPMI_TypeDef *SWPMIx)
 Enable Transmit interrupt IER TIE LL_SWPMI_EnableIT_TX.
__STATIC_INLINE void LL_SWPMI_EnableIT_RX (SWPMI_TypeDef *SWPMIx)
 Enable Receive interrupt IER RIE LL_SWPMI_EnableIT_RX.
__STATIC_INLINE void LL_SWPMI_EnableIT_TXUNR (SWPMI_TypeDef *SWPMIx)
 Enable Transmit underrun error interrupt IER TXUNRIE LL_SWPMI_EnableIT_TXUNR.
__STATIC_INLINE void LL_SWPMI_EnableIT_RXOVR (SWPMI_TypeDef *SWPMIx)
 Enable Receive overrun error interrupt IER RXOVRIE LL_SWPMI_EnableIT_RXOVR.
__STATIC_INLINE void LL_SWPMI_EnableIT_RXBER (SWPMI_TypeDef *SWPMIx)
 Enable Receive CRC error interrupt IER RXBERIE LL_SWPMI_EnableIT_RXBER.
__STATIC_INLINE void LL_SWPMI_EnableIT_TXBE (SWPMI_TypeDef *SWPMIx)
 Enable Transmit buffer empty interrupt IER TXBEIE LL_SWPMI_EnableIT_TXBE.
__STATIC_INLINE void LL_SWPMI_EnableIT_RXBF (SWPMI_TypeDef *SWPMIx)
 Enable Receive buffer full interrupt IER RXBFIE LL_SWPMI_EnableIT_RXBF.
__STATIC_INLINE void LL_SWPMI_DisableIT_SR (SWPMI_TypeDef *SWPMIx)
 Disable Slave resume interrupt IER SRIE LL_SWPMI_DisableIT_SR.
__STATIC_INLINE void LL_SWPMI_DisableIT_TC (SWPMI_TypeDef *SWPMIx)
 Disable Transmit complete interrupt IER TCIE LL_SWPMI_DisableIT_TC.
__STATIC_INLINE void LL_SWPMI_DisableIT_TX (SWPMI_TypeDef *SWPMIx)
 Disable Transmit interrupt IER TIE LL_SWPMI_DisableIT_TX.
__STATIC_INLINE void LL_SWPMI_DisableIT_RX (SWPMI_TypeDef *SWPMIx)
 Disable Receive interrupt IER RIE LL_SWPMI_DisableIT_RX.
__STATIC_INLINE void LL_SWPMI_DisableIT_TXUNR (SWPMI_TypeDef *SWPMIx)
 Disable Transmit underrun error interrupt IER TXUNRIE LL_SWPMI_DisableIT_TXUNR.
__STATIC_INLINE void LL_SWPMI_DisableIT_RXOVR (SWPMI_TypeDef *SWPMIx)
 Disable Receive overrun error interrupt IER RXOVRIE LL_SWPMI_DisableIT_RXOVR.
__STATIC_INLINE void LL_SWPMI_DisableIT_RXBER (SWPMI_TypeDef *SWPMIx)
 Disable Receive CRC error interrupt IER RXBERIE LL_SWPMI_DisableIT_RXBER.
__STATIC_INLINE void LL_SWPMI_DisableIT_TXBE (SWPMI_TypeDef *SWPMIx)
 Disable Transmit buffer empty interrupt IER TXBEIE LL_SWPMI_DisableIT_TXBE.
__STATIC_INLINE void LL_SWPMI_DisableIT_RXBF (SWPMI_TypeDef *SWPMIx)
 Disable Receive buffer full interrupt IER RXBFIE LL_SWPMI_DisableIT_RXBF.
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_SR (SWPMI_TypeDef *SWPMIx)
 Check if Slave resume interrupt is enabled IER SRIE LL_SWPMI_IsEnabledIT_SR.
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_TC (SWPMI_TypeDef *SWPMIx)
 Check if Transmit complete interrupt is enabled IER TCIE LL_SWPMI_IsEnabledIT_TC.
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_TX (SWPMI_TypeDef *SWPMIx)
 Check if Transmit interrupt is enabled IER TIE LL_SWPMI_IsEnabledIT_TX.
__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledIT_RX (SWPMI_TypeDef *SWPMIx)
 Check if Receive interrupt is enabled 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 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 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 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 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 IER RXBFIE LL_SWPMI_IsEnabledIT_RXBF.
__STATIC_INLINE void LL_SWPMI_EnableDMAReq_RX (SWPMI_TypeDef *SWPMIx)
 Enable DMA mode for reception CR RXDMA LL_SWPMI_EnableDMAReq_RX.
__STATIC_INLINE void LL_SWPMI_DisableDMAReq_RX (SWPMI_TypeDef *SWPMIx)
 Disable DMA mode for reception 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 CR RXDMA LL_SWPMI_IsEnabledDMAReq_RX.
__STATIC_INLINE void LL_SWPMI_EnableDMAReq_TX (SWPMI_TypeDef *SWPMIx)
 Enable DMA mode for transmission CR TXDMA LL_SWPMI_EnableDMAReq_TX.
__STATIC_INLINE void LL_SWPMI_DisableDMAReq_TX (SWPMI_TypeDef *SWPMIx)
 Disable DMA mode for transmission 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 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 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 RFL RFL LL_SWPMI_GetReceiveFrameLength.
__STATIC_INLINE void LL_SWPMI_TransmitData32 (SWPMI_TypeDef *SWPMIx, uint32_t TxData)
 Transmit Data Register TDR TD LL_SWPMI_TransmitData32.
__STATIC_INLINE uint32_t LL_SWPMI_ReceiveData32 (SWPMI_TypeDef *SWPMIx)
 Receive Data Register 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
Version:
V1.1.0
Date:
16-September-2015
Attention:

© COPYRIGHT(c) 2015 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32l4xx_ll_swpmi.h.