Get the SCL high and low period.
Value: between Min_Data=0x004 and Max_Data=0xFFF,
except in FAST DUTY mode where Min_Data=0x001.
Reference Manual to
LL API cross
reference:
CCR CCR LL_I2C_GetClockPeriod
LL_I2C_ConfigSpeed
__STATIC_INLINE void LL_I2C_ConfigSpeed (I2C_TypeDef *
I2Cx, uint32_t PeriphClock, uint32_t ClockSpeed, uint32_t
DutyCycle)
I2Cx: I2C Instance.
PeriphClock: Peripheral Clock (in Hz)
ClockSpeed: This parameter must be a value lower than
400kHz (in Hz).
DutyCycle: This parameter can be one of the following
values:
LL_I2C_DUTYCYCLE_2
LL_I2C_DUTYCYCLE_16_9
This bit can only be programmed when the I2C is disabled
(PE = 0).
Reference Manual to
LL API cross
reference:
CR2 FREQ LL_I2C_ConfigSpeed
TRISE TRISE LL_I2C_ConfigSpeed
CCR FS LL_I2C_ConfigSpeed
CCR DUTY LL_I2C_ConfigSpeed
CCR CCR LL_I2C_ConfigSpeed
LL_I2C_SetMode
__STATIC_INLINE void LL_I2C_SetMode (I2C_TypeDef * I2Cx,
uint32_t PeripheralMode)
Configure peripheral mode.
I2Cx: I2C Instance.
PeripheralMode: This parameter can be one of the following
values:
LL_I2C_MODE_I2C
LL_I2C_MODE_SMBUS_HOST
LL_I2C_MODE_SMBUS_DEVICE
LL_I2C_MODE_SMBUS_DEVICE_ARP
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to
check whether or not SMBus feature is supported by the I2Cx
Instance.