Macros | |
#define | __LL_I2C_CONVERT_CLK_SSL_CNT(__PERIPHCLK__, __SPEED__) ((__PERIPHCLK__) / 2 / (__SPEED__)) |
Compute CLK_SSL_CNT value according to Peripheral Clock and expected Speed. More... | |
#define | __LL_I2C_CONVERT_SPEED_MODE(__SPEED__) |
Get Speed Mode according to expected Speed. More... | |
#define __LL_I2C_CONVERT_CLK_SSL_CNT | ( | __PERIPHCLK__, | |
__SPEED__ | |||
) | ((__PERIPHCLK__) / 2 / (__SPEED__)) |
Compute CLK_SSL_CNT value according to Peripheral Clock and expected Speed.
__PERIPHCLK__ | Peripheral Clock frequency used for I2C instance |
__SPEED__ | Speed value to achieve |
CLK_SSL_CNT | value to be used for XS_SCL_HCNT, XS_SCL_LCNT registers where X can be (S, F, H) |
Definition at line 298 of file gr55xx_ll_i2c.h.
#define __LL_I2C_CONVERT_SPEED_MODE | ( | __SPEED__ | ) |
Get Speed Mode according to expected Speed.
__SPEED__ | Speed value to achieve |
Returned | value can be one of the following values: |
Definition at line 308 of file gr55xx_ll_i2c.h.