RTEMS 6.1-rc6
Loading...
Searching...
No Matches
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 @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.
 

Detailed Description

Function Documentation

◆ LL_SWPMI_Activate()

__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. @rmtoll CR SWPACT LL_SWPMI_Activate
Parameters
SWPMIxSWPMI Instance
Return values
None

◆ LL_SWPMI_Deactivate()

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

Parameters
SWPMIxSWPMI Instance
Return values
None

◆ LL_SWPMI_DisableLoopback()

__STATIC_INLINE void LL_SWPMI_DisableLoopback ( SWPMI_TypeDef SWPMIx)

Disable loopback mode @rmtoll CR LPBK LL_SWPMI_DisableLoopback.

Parameters
SWPMIxSWPMI Instance
Return values
None

◆ LL_SWPMI_DisableTransceiver()

__STATIC_INLINE void LL_SWPMI_DisableTransceiver ( SWPMI_TypeDef SWPMIx)

Disable SWPMI transceiver.

Note
SWPMI_IO pin is controlled by GPIO controller @rmtoll CR SWPEN LL_SWPMI_DisableTransceiver
Parameters
SWPMIxSWPMI Instance
Return values
None

◆ LL_SWPMI_EnableLoopback()

__STATIC_INLINE void LL_SWPMI_EnableLoopback ( SWPMI_TypeDef SWPMIx)

Enable loopback mode @rmtoll CR LPBK LL_SWPMI_EnableLoopback.

Parameters
SWPMIxSWPMI Instance
Return values
None

◆ LL_SWPMI_EnableTransceiver()

__STATIC_INLINE void LL_SWPMI_EnableTransceiver ( SWPMI_TypeDef SWPMIx)

Enable SWPMI transceiver.

Note
SWPMI_IO pin is controlled by SWPMI @rmtoll CR SWPEN LL_SWPMI_EnableTransceiver
Parameters
SWPMIxSWPMI Instance
Return values
None

◆ LL_SWPMI_GetBitRatePrescaler()

__STATIC_INLINE uint32_t LL_SWPMI_GetBitRatePrescaler ( SWPMI_TypeDef SWPMIx)

Get Bitrate prescaler @rmtoll BRR BR LL_SWPMI_GetBitRatePrescaler.

Parameters
SWPMIxSWPMI Instance
Return values
Anumber between Min_Data=0 and Max_Data=255U

◆ LL_SWPMI_GetReceptionMode()

__STATIC_INLINE uint32_t LL_SWPMI_GetReceptionMode ( SWPMI_TypeDef SWPMIx)

Get Reception buffering mode @rmtoll CR RXMODE LL_SWPMI_GetReceptionMode.

Parameters
SWPMIxSWPMI Instance
Return values
Returnedvalue can be one of the following values:

◆ LL_SWPMI_GetTransmissionMode()

__STATIC_INLINE uint32_t LL_SWPMI_GetTransmissionMode ( SWPMI_TypeDef SWPMIx)

Get Transmission buffering mode @rmtoll CR TXMODE LL_SWPMI_GetTransmissionMode.

Parameters
SWPMIxSWPMI Instance
Return values
Returnedvalue can be one of the following values:

◆ LL_SWPMI_GetVoltageClass()

__STATIC_INLINE uint32_t LL_SWPMI_GetVoltageClass ( SWPMI_TypeDef SWPMIx)

Get SWP Voltage Class @rmtoll OR CLASS LL_SWPMI_GetVoltageClass.

Parameters
SWPMIxSWPMI Instance
Return values
Returnedvalue can be one of the following values:

◆ LL_SWPMI_IsActivated()

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

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

◆ LL_SWPMI_IsEnabledTransceiver()

__STATIC_INLINE uint32_t LL_SWPMI_IsEnabledTransceiver ( SWPMI_TypeDef SWPMIx)

Check if SWPMI transceiver is enabled @rmtoll CR SWPEN LL_SWPMI_IsEnabledTransceiver.

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

◆ LL_SWPMI_RequestDeactivation()

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

Parameters
SWPMIxSWPMI Instance
Return values
None

◆ LL_SWPMI_SetBitRatePrescaler()

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

Parameters
SWPMIxSWPMI Instance
BitRatePrescalerA number between Min_Data=0 and Max_Data=255U
Return values
None

◆ LL_SWPMI_SetReceptionMode()

__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. @rmtoll CR RXMODE LL_SWPMI_SetReceptionMode
Parameters
SWPMIxSWPMI Instance
RxBufferingModeThis parameter can be one of the following values:
Return values
None

◆ LL_SWPMI_SetTransmissionMode()

__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. @rmtoll CR TXMODE LL_SWPMI_SetTransmissionMode
Parameters
SWPMIxSWPMI Instance
TxBufferingModeThis parameter can be one of the following values:
Return values
None

◆ LL_SWPMI_SetVoltageClass()

__STATIC_INLINE void LL_SWPMI_SetVoltageClass ( SWPMI_TypeDef SWPMIx,
uint32_t  VoltageClass 
)

Set SWP Voltage Class @rmtoll OR CLASS LL_SWPMI_SetVoltageClass.

Parameters
SWPMIxSWPMI Instance
VoltageClassThis parameter can be one of the following values:
Return values
None