LL I2C Generic Driver
__LL_I2C_FREQ_MHZ_TO_HZ
__LL_I2C_RISE_TIME
__LL_I2C_SPEED_TO_CCR
__LL_I2C_SPEED_STANDARD_TO_CCR
978/1371
Mhz.
Parameters:
__PCLK__: This parameter must be a
value of peripheral clock (in Hz).
Return value:
Value: of peripheral clock (in Mhz)
Description:
Convert Peripheral Clock Frequency in
Hz.
Parameters:
__PCLK__: This parameter must be a
value of peripheral clock (in Mhz).
Return value:
Value: of peripheral clock (in Hz)
Description:
Compute I2C Clock rising time.
Parameters:
__FREQRANGE__: This parameter
must be a value of peripheral clock (in
Mhz).
__SPEED__: This parameter must be a
value lower than 400kHz (in Hz).
Return value:
Value: between Min_Data=0x02 and
Max_Data=0x3F
Description:
Compute Speed clock range to a Clock
Control Register (I2C_CCR_CCR) value.
Parameters:
__PCLK__: This parameter must be a
value of peripheral clock (in Hz).
__SPEED__: This parameter must be a
value lower than 400kHz (in Hz).
__DUTYCYCLE__: This parameter can
be one of the following values:
Return value:
Value: between Min_Data=0x004 and
Max_Data=0xFFF, except in FAST
DUTY mode where Min_Data=0x001.
Description:
DocID028236 Rev 2
LL_I2C_DUTYCYCLE_2
LL_I2C_DUTYCYCLE_16_9
UM1940
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers