Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
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 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 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 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) 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 BitRatePrescaler) |
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 VoltageClass) |
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. |
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. CR SWPACT LL_SWPMI_Activate
- Parameters:
-
SWPMIx SWPMI Instance
- Return values:
-
None
Definition at line 354 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) CR SWPACT LL_SWPMI_Deactivate.
- Parameters:
-
SWPMIx SWPMI Instance
- Return values:
-
None
Definition at line 381 of file stm32l4xx_ll_swpmi.h.
__STATIC_INLINE void LL_SWPMI_DisableLoopback | ( | SWPMI_TypeDef * | SWPMIx ) |
Disable loopback mode CR LPBK LL_SWPMI_DisableLoopback.
- Parameters:
-
SWPMIx SWPMI Instance
- Return values:
-
None
Definition at line 339 of file stm32l4xx_ll_swpmi.h.
__STATIC_INLINE void LL_SWPMI_EnableLoopback | ( | SWPMI_TypeDef * | SWPMIx ) |
Enable loopback mode CR LPBK LL_SWPMI_EnableLoopback.
- Parameters:
-
SWPMIx SWPMI Instance
- Return values:
-
None
Definition at line 328 of file stm32l4xx_ll_swpmi.h.
__STATIC_INLINE uint32_t LL_SWPMI_GetBitRatePrescaler | ( | SWPMI_TypeDef * | SWPMIx ) |
Get Bitrate prescaler BRR BR LL_SWPMI_GetBitRatePrescaler.
- Parameters:
-
SWPMIx SWPMI Instance
- Return values:
-
A number between Min_Data=0 and Max_Data=63
Definition at line 416 of file stm32l4xx_ll_swpmi.h.
__STATIC_INLINE uint32_t LL_SWPMI_GetReceptionMode | ( | SWPMI_TypeDef * | SWPMIx ) |
Get Reception buffering mode CR RXMODE LL_SWPMI_GetReceptionMode.
- Parameters:
-
SWPMIx SWPMI Instance
- Return values:
-
Returned value can be one of the following values: - LL_SWPMI_SW_BUFFER_RX_SINGLE
- LL_SWPMI_SW_BUFFER_RX_MULTI
Definition at line 289 of file stm32l4xx_ll_swpmi.h.
__STATIC_INLINE uint32_t LL_SWPMI_GetTransmissionMode | ( | SWPMI_TypeDef * | SWPMIx ) |
Get Transmission buffering mode CR TXMODE LL_SWPMI_GetTransmissionMode.
- Parameters:
-
SWPMIx SWPMI Instance
- Return values:
-
Returned value can be one of the following values: - LL_SWPMI_SW_BUFFER_TX_SINGLE
- LL_SWPMI_SW_BUFFER_TX_MULTI
Definition at line 317 of file stm32l4xx_ll_swpmi.h.
__STATIC_INLINE uint32_t LL_SWPMI_GetVoltageClass | ( | SWPMI_TypeDef * | SWPMIx ) |
Get SWP Voltage Class OR CLASS LL_SWPMI_GetVoltageClass.
- Parameters:
-
SWPMIx SWPMI Instance
- Return values:
-
Returned value can be one of the following values: - LL_SWPMI_VOLTAGE_CLASS_C
- LL_SWPMI_VOLTAGE_CLASS_B
Definition at line 443 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.
CR SWPACT LL_SWPMI_Activate
- Parameters:
-
SWPMIx SWPMI Instance
- Return values:
-
State of bit (1 or 0).
Definition at line 369 of file stm32l4xx_ll_swpmi.h.
__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.
- Parameters:
-
SWPMIx SWPMI Instance
- Return values:
-
None
Definition at line 393 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) BRR BR LL_SWPMI_SetBitRatePrescaler.
- Parameters:
-
SWPMIx SWPMI Instance BitRatePrescaler A number between Min_Data=0 and Max_Data=63
- Return values:
-
None
Definition at line 405 of file stm32l4xx_ll_swpmi.h.
__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. CR RXMODE LL_SWPMI_SetReceptionMode
- Parameters:
-
SWPMIx SWPMI Instance RxBufferingMode This parameter can be one of the following values: - LL_SWPMI_SW_BUFFER_RX_SINGLE
- LL_SWPMI_SW_BUFFER_RX_MULTI
- Return values:
-
None
Definition at line 276 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. CR TXMODE LL_SWPMI_SetTransmissionMode
- Parameters:
-
SWPMIx SWPMI Instance TxBufferingMode This parameter can be one of the following values: - LL_SWPMI_SW_BUFFER_TX_SINGLE
- LL_SWPMI_SW_BUFFER_TX_MULTI
- Return values:
-
None
Definition at line 304 of file stm32l4xx_ll_swpmi.h.
__STATIC_INLINE void LL_SWPMI_SetVoltageClass | ( | SWPMI_TypeDef * | SWPMIx, |
uint32_t | VoltageClass | ||
) |
Set SWP Voltage Class OR CLASS LL_SWPMI_SetVoltageClass.
- Parameters:
-
SWPMIx SWPMI Instance VoltageClass This parameter can be one of the following values: - LL_SWPMI_VOLTAGE_CLASS_C
- LL_SWPMI_VOLTAGE_CLASS_B
- Return values:
-
None
Definition at line 430 of file stm32l4xx_ll_swpmi.h.
Generated on Tue Jul 12 2022 17:38:58 by
