STM32L486xx HAL User Manual
Defines
Bit rate calculation helper Macros
SWPMI Exported Macros

Defines

#define __LL_SWPMI_CALC_BITRATE_PRESCALER(__FSWP__, __FSWPCLK__)   ((uint32_t)(((__FSWPCLK__) / ((__FSWP__) * 4)) - 1))
 Helper macro to calculate bit rate value to set in BRR register (LL_SWPMI_SetBitRatePrescaler function)

Define Documentation

#define __LL_SWPMI_CALC_BITRATE_PRESCALER (   __FSWP__,
  __FSWPCLK__ 
)    ((uint32_t)(((__FSWPCLK__) / ((__FSWP__) * 4)) - 1))

Helper macro to calculate bit rate value to set in BRR register (LL_SWPMI_SetBitRatePrescaler function)

Note:
ex: __LL_SWPMI_CALC_BITRATE_PRESCALER(2000000, 80000000);
Parameters:
__FSWP__Within the following range: from 100 Kbit/s up to 2Mbit/s (in bit/s)
__FSWPCLK__PCLK or HSI frequency (in Hz)
Return values:
Bitrateprescaler (BRR register)

Definition at line 245 of file stm32l4xx_ll_swpmi.h.