STM32L4xx_HAL_Driver  1.14.0

Functions

__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...
 

Detailed Description

Function Documentation

◆ LL_SWPMI_ClearFlag_RXBER()

__STATIC_INLINE void LL_SWPMI_ClearFlag_RXBER ( SWPMI_TypeDef *  SWPMIx)

Clear receive CRC error flag ICR CRXBERF LL_SWPMI_ClearFlag_RXBER.

Parameters
SWPMIxSWPMI Instance
Return values
None

Definition at line 591 of file stm32l4xx_ll_swpmi.h.

592 {
593  WRITE_REG(SWPMIx->ICR, SWPMI_ICR_CRXBERF);
594 }

◆ LL_SWPMI_ClearFlag_RXBF()

__STATIC_INLINE void LL_SWPMI_ClearFlag_RXBF ( SWPMI_TypeDef *  SWPMIx)

Clear receive buffer full flag ICR CRXBFF LL_SWPMI_ClearFlag_RXBF.

Parameters
SWPMIxSWPMI Instance
Return values
None

Definition at line 569 of file stm32l4xx_ll_swpmi.h.

570 {
571  WRITE_REG(SWPMIx->ICR, SWPMI_ICR_CRXBFF);
572 }

◆ LL_SWPMI_ClearFlag_RXOVR()

__STATIC_INLINE void LL_SWPMI_ClearFlag_RXOVR ( SWPMI_TypeDef *  SWPMIx)

Clear receive overrun error flag ICR CRXOVRF LL_SWPMI_ClearFlag_RXOVR.

Parameters
SWPMIxSWPMI Instance
Return values
None

Definition at line 602 of file stm32l4xx_ll_swpmi.h.

603 {
604  WRITE_REG(SWPMIx->ICR, SWPMI_ICR_CRXOVRF);
605 }

◆ LL_SWPMI_ClearFlag_SR()

__STATIC_INLINE void LL_SWPMI_ClearFlag_SR ( SWPMI_TypeDef *  SWPMIx)

Clear slave resume flag ICR CSRF LL_SWPMI_ClearFlag_SR.

Parameters
SWPMIxSWPMI Instance
Return values
None

Definition at line 635 of file stm32l4xx_ll_swpmi.h.

636 {
637  WRITE_REG(SWPMIx->ICR, SWPMI_ICR_CSRF);
638 }

◆ LL_SWPMI_ClearFlag_TC()

__STATIC_INLINE void LL_SWPMI_ClearFlag_TC ( SWPMI_TypeDef *  SWPMIx)

Clear transfer complete flag ICR CTCF LL_SWPMI_ClearFlag_TC.

Parameters
SWPMIxSWPMI Instance
Return values
None

Definition at line 624 of file stm32l4xx_ll_swpmi.h.

625 {
626  WRITE_REG(SWPMIx->ICR, SWPMI_ICR_CTCF);
627 }

◆ LL_SWPMI_ClearFlag_TXBE()

__STATIC_INLINE void LL_SWPMI_ClearFlag_TXBE ( SWPMI_TypeDef *  SWPMIx)

Clear transmit buffer empty flag ICR CTXBEF LL_SWPMI_ClearFlag_TXBE.

Parameters
SWPMIxSWPMI Instance
Return values
None

Definition at line 580 of file stm32l4xx_ll_swpmi.h.

581 {
582  WRITE_REG(SWPMIx->ICR, SWPMI_ICR_CTXBEF);
583 }

◆ LL_SWPMI_ClearFlag_TXUNR()

__STATIC_INLINE void LL_SWPMI_ClearFlag_TXUNR ( SWPMI_TypeDef *  SWPMIx)

Clear transmit underrun error flag ICR CTXUNRF LL_SWPMI_ClearFlag_TXUNR.

Parameters
SWPMIxSWPMI Instance
Return values
None

Definition at line 613 of file stm32l4xx_ll_swpmi.h.

614 {
615  WRITE_REG(SWPMIx->ICR, SWPMI_ICR_CTXUNRF);
616 }

◆ LL_SWPMI_IsActiveFlag_DEACT()

__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.

Parameters
SWPMIxSWPMI Instance
Return values
Stateof bit (1 or 0).

Definition at line 558 of file stm32l4xx_ll_swpmi.h.

559 {
560  return ((READ_BIT(SWPMIx->ISR, SWPMI_ISR_DEACTF) == (SWPMI_ISR_DEACTF)) ? 1UL : 0UL);
561 }

◆ LL_SWPMI_IsActiveFlag_RXBER()

__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.

Parameters
SWPMIxSWPMI Instance
Return values
Stateof bit (1 or 0).

Definition at line 466 of file stm32l4xx_ll_swpmi.h.

467 {
468  return ((READ_BIT(SWPMIx->ISR, SWPMI_ISR_RXBERF) == (SWPMI_ISR_RXBERF)) ? 1UL : 0UL);
469 }

◆ LL_SWPMI_IsActiveFlag_RXBF()

__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.

Parameters
SWPMIxSWPMI Instance
Return values
Stateof bit (1 or 0).

Definition at line 444 of file stm32l4xx_ll_swpmi.h.

445 {
446  return ((READ_BIT(SWPMIx->ISR, SWPMI_ISR_RXBFF) == (SWPMI_ISR_RXBFF)) ? 1UL : 0UL);
447 }

◆ LL_SWPMI_IsActiveFlag_RXNE()

__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.

Parameters
SWPMIxSWPMI Instance
Return values
Stateof bit (1 or 0).

Definition at line 500 of file stm32l4xx_ll_swpmi.h.

501 {
502  return ((READ_BIT(SWPMIx->ISR, SWPMI_ISR_RXNE) == (SWPMI_ISR_RXNE)) ? 1UL : 0UL);
503 }

◆ LL_SWPMI_IsActiveFlag_RXOVR()

__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.

Parameters
SWPMIxSWPMI Instance
Return values
Stateof bit (1 or 0).

Definition at line 477 of file stm32l4xx_ll_swpmi.h.

478 {
479  return ((READ_BIT(SWPMIx->ISR, SWPMI_ISR_RXOVRF) == (SWPMI_ISR_RXOVRF)) ? 1UL : 0UL);
480 }

◆ LL_SWPMI_IsActiveFlag_SR()

__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.

Parameters
SWPMIxSWPMI Instance
Return values
Stateof bit (1 or 0).

Definition at line 536 of file stm32l4xx_ll_swpmi.h.

537 {
538  return ((READ_BIT(SWPMIx->ISR, SWPMI_ISR_SRF) == (SWPMI_ISR_SRF)) ? 1UL : 0UL);
539 }

◆ LL_SWPMI_IsActiveFlag_SUSP()

__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.

Parameters
SWPMIxSWPMI Instance
Return values
Stateof bit (1 or 0).

Definition at line 547 of file stm32l4xx_ll_swpmi.h.

548 {
549  return ((READ_BIT(SWPMIx->ISR, SWPMI_ISR_SUSP) == (SWPMI_ISR_SUSP)) ? 1UL : 0UL);
550 }

◆ LL_SWPMI_IsActiveFlag_TC()

__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.

Parameters
SWPMIxSWPMI Instance
Return values
Stateof bit (1 or 0).

Definition at line 524 of file stm32l4xx_ll_swpmi.h.

525 {
526  return ((READ_BIT(SWPMIx->ISR, SWPMI_ISR_TCF) == (SWPMI_ISR_TCF)) ? 1UL : 0UL);
527 }

◆ LL_SWPMI_IsActiveFlag_TXBE()

__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.

Parameters
SWPMIxSWPMI Instance
Return values
Stateof bit (1 or 0).

Definition at line 455 of file stm32l4xx_ll_swpmi.h.

456 {
457  return ((READ_BIT(SWPMIx->ISR, SWPMI_ISR_TXBEF) == (SWPMI_ISR_TXBEF)) ? 1UL : 0UL);
458 }

◆ LL_SWPMI_IsActiveFlag_TXE()

__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.

Parameters
SWPMIxSWPMI Instance
Return values
Stateof bit (1 or 0).

Definition at line 512 of file stm32l4xx_ll_swpmi.h.

513 {
514  return ((READ_BIT(SWPMIx->ISR, SWPMI_ISR_TXE) == (SWPMI_ISR_TXE)) ? 1UL : 0UL);
515 }

◆ LL_SWPMI_IsActiveFlag_TXUNR()

__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.

Parameters
SWPMIxSWPMI Instance
Return values
Stateof bit (1 or 0).

Definition at line 488 of file stm32l4xx_ll_swpmi.h.

489 {
490  return ((READ_BIT(SWPMIx->ISR, SWPMI_ISR_TXUNRF) == (SWPMI_ISR_TXUNRF)) ? 1UL : 0UL);
491 }