STM32L486xx HAL User Manual
Functions
Configuration
SWPMI Exported Functions

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.
__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.
__STATIC_INLINE void LL_SWPMI_EnableLoopback (SWPMI_TypeDef *SWPMIx)
 Enable loopback mode.
__STATIC_INLINE void LL_SWPMI_DisableLoopback (SWPMI_TypeDef *SWPMIx)
 Disable loopback mode.
__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.
__STATIC_INLINE void LL_SWPMI_Deactivate (SWPMI_TypeDef *SWPMIx)
 Deactivate immediately Single wire protocol bus (immediate transition to DEACTIVATED state)
__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)
__STATIC_INLINE void LL_SWPMI_SetBitRatePrescaler (SWPMI_TypeDef *SWPMIx, uint32_t BitRatePrescaler)
 Set Bitrate prescaler SWPMI_freq = SWPMI_clk / (((BitRate) + 1) * 4)
__STATIC_INLINE uint32_t LL_SWPMI_GetBitRatePrescaler (SWPMI_TypeDef *SWPMIx)
 Get Bitrate prescaler.
__STATIC_INLINE void LL_SWPMI_SetVoltageClass (SWPMI_TypeDef *SWPMIx, uint32_t VoltageClass)
 Set SWP Voltage Class.
__STATIC_INLINE uint32_t LL_SWPMI_GetVoltageClass (SWPMI_TypeDef *SWPMIx)
 Get SWP Voltage Class.

Function Documentation

__STATIC_INLINE void LL_SWPMI_Activate ( SWPMI_TypeDef *  SWPMIx)

Activate Single wire protocol bus (SUSPENDED or ACTIVATED state)

Note:
SWP bus stays in the ACTIVATED state as long as there is a communication with the slave, either in transmission or in reception. The SWP bus switches back to the SUSPENDED state as soon as there is no more transmission or reception activity, after 7 idle bits.
Reference Manual to LL API cross reference:
CR SWPACT LL_SWPMI_Activate
Parameters:
SWPMIxSWPMI Instance
Return values:
None

Definition at line 352 of file stm32l4xx_ll_swpmi.h.

__STATIC_INLINE void LL_SWPMI_Deactivate ( SWPMI_TypeDef *  SWPMIx)

Deactivate immediately Single wire protocol bus (immediate transition to DEACTIVATED state)

Reference Manual to LL API cross reference:
CR SWPACT LL_SWPMI_Deactivate
Parameters:
SWPMIxSWPMI Instance
Return values:
None

Definition at line 379 of file stm32l4xx_ll_swpmi.h.

__STATIC_INLINE void LL_SWPMI_DisableLoopback ( SWPMI_TypeDef *  SWPMIx)

Disable loopback mode.

Reference Manual to LL API cross reference:
CR LPBK LL_SWPMI_DisableLoopback
Parameters:
SWPMIxSWPMI Instance
Return values:
None

Definition at line 337 of file stm32l4xx_ll_swpmi.h.

__STATIC_INLINE void LL_SWPMI_EnableLoopback ( SWPMI_TypeDef *  SWPMIx)

Enable loopback mode.

Reference Manual to LL API cross reference:
CR LPBK LL_SWPMI_EnableLoopback
Parameters:
SWPMIxSWPMI Instance
Return values:
None

Definition at line 326 of file stm32l4xx_ll_swpmi.h.

__STATIC_INLINE uint32_t LL_SWPMI_GetBitRatePrescaler ( SWPMI_TypeDef *  SWPMIx)

Get Bitrate prescaler.

Reference Manual to LL API cross reference:
BRR BR LL_SWPMI_GetBitRatePrescaler
Parameters:
SWPMIxSWPMI Instance
Return values:
Anumber between Min_Data=0 and Max_Data=63

Definition at line 414 of file stm32l4xx_ll_swpmi.h.

__STATIC_INLINE uint32_t LL_SWPMI_GetReceptionMode ( SWPMI_TypeDef *  SWPMIx)

Get Reception buffering mode.

Reference Manual to LL API cross reference:
CR RXMODE LL_SWPMI_GetReceptionMode
Parameters:
SWPMIxSWPMI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 287 of file stm32l4xx_ll_swpmi.h.

__STATIC_INLINE uint32_t LL_SWPMI_GetTransmissionMode ( SWPMI_TypeDef *  SWPMIx)

Get Transmission buffering mode.

Reference Manual to LL API cross reference:
CR TXMODE LL_SWPMI_GetTransmissionMode
Parameters:
SWPMIxSWPMI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 315 of file stm32l4xx_ll_swpmi.h.

__STATIC_INLINE uint32_t LL_SWPMI_GetVoltageClass ( SWPMI_TypeDef *  SWPMIx)

Get SWP Voltage Class.

Reference Manual to LL API cross reference:
OR CLASS LL_SWPMI_GetVoltageClass
Parameters:
SWPMIxSWPMI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 441 of file stm32l4xx_ll_swpmi.h.

__STATIC_INLINE uint32_t LL_SWPMI_IsActivated ( SWPMI_TypeDef *  SWPMIx)

Check if Single wire protocol bus is in ACTIVATED state.

Reference Manual to LL API cross reference:
CR SWPACT LL_SWPMI_Activate
Parameters:
SWPMIxSWPMI Instance
Return values:
Stateof bit (1 or 0).

Definition at line 367 of file stm32l4xx_ll_swpmi.h.

Referenced by LL_SWPMI_Init().

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

Reference Manual to LL API cross reference:
CR DEACT LL_SWPMI_RequestDeactivation
Parameters:
SWPMIxSWPMI Instance
Return values:
None

Definition at line 391 of file stm32l4xx_ll_swpmi.h.

__STATIC_INLINE void LL_SWPMI_SetBitRatePrescaler ( SWPMI_TypeDef *  SWPMIx,
uint32_t  BitRatePrescaler 
)

Set Bitrate prescaler SWPMI_freq = SWPMI_clk / (((BitRate) + 1) * 4)

Reference Manual to LL API cross reference:
BRR BR LL_SWPMI_SetBitRatePrescaler
Parameters:
SWPMIxSWPMI Instance
BitRatePrescalerA number between Min_Data=0 and Max_Data=63
Return values:
None

Definition at line 403 of file stm32l4xx_ll_swpmi.h.

Referenced by LL_SWPMI_Init().

__STATIC_INLINE void LL_SWPMI_SetReceptionMode ( SWPMI_TypeDef *  SWPMIx,
uint32_t  RxBufferingMode 
)

Set Reception buffering mode.

Note:
If Multi software buffer mode is chosen, RXDMA bits must also be set.
Reference Manual to LL API cross reference:
CR RXMODE LL_SWPMI_SetReceptionMode
Parameters:
SWPMIxSWPMI Instance
RxBufferingModeThis parameter can be one of the following values:
Return values:
None

Definition at line 274 of file stm32l4xx_ll_swpmi.h.

__STATIC_INLINE void LL_SWPMI_SetTransmissionMode ( SWPMI_TypeDef *  SWPMIx,
uint32_t  TxBufferingMode 
)

Set Transmission buffering mode.

Note:
If Multi software buffer mode is chosen, TXDMA bits must also be set.
Reference Manual to LL API cross reference:
CR TXMODE LL_SWPMI_SetTransmissionMode
Parameters:
SWPMIxSWPMI Instance
TxBufferingModeThis parameter can be one of the following values:
Return values:
None

Definition at line 302 of file stm32l4xx_ll_swpmi.h.

__STATIC_INLINE void LL_SWPMI_SetVoltageClass ( SWPMI_TypeDef *  SWPMIx,
uint32_t  VoltageClass 
)

Set SWP Voltage Class.

Reference Manual to LL API cross reference:
OR CLASS LL_SWPMI_SetVoltageClass
Parameters:
SWPMIxSWPMI Instance
VoltageClassThis parameter can be one of the following values:
Return values:
None

Definition at line 428 of file stm32l4xx_ll_swpmi.h.

Referenced by LL_SWPMI_Init().