RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Macros
Bit rate calculation helper Macros

Macros

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

Detailed Description

Macro Definition Documentation

◆ __LL_SWPMI_CALC_BITRATE_PRESCALER

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