Compute Speed Standard 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 100kHz (in Hz).
Return value:
Value: between Min_Data=0x004 and
Max_Data=0xFFF.
__LL_I2C_SPEED_FAST_TO_CCR
Description:
Compute Speed Fast 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 between Min_Data=100Khz and
Max_Data=400Khz (in Hz).
__DUTYCYCLE__: This parameter can
be one of the following values:
LL_I2C_DUTYCYCLE_2
LL_I2C_DUTYCYCLE_16_9
Return value:
Value: between Min_Data=0x001 and
Max_Data=0xFFF
Description:
Get the Least significant bits of a 10-Bits
address.
Parameters:
__ADDRESS__: This parameter must be
a value of a 10-Bits slave address.
Return value:
Value: between Min_Data=0x00 and
Max_Data=0xFF
__LL_I2C_10BIT_HEADER_WRITE
Description:
Convert a 10-Bits address to a 10-Bits
header with Write direction.
Parameters:
__ADDRESS__: This parameter must be
a value of a 10-Bits slave address.