EasyManua.ls Logo

ST STM32F2

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
LL I2C Generic Driver
UM1940
954/1371
DocID028236 Rev 2
Function description
Get the SCL high and low period.
Parameters
I2Cx: I2C Instance.
Return values
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
Function name
__STATIC_INLINE void LL_I2C_ConfigSpeed (I2C_TypeDef *
I2Cx, uint32_t PeriphClock, uint32_t ClockSpeed, uint32_t
DutyCycle)
Function description
Configure the SCL speed.
Parameters
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
Return values
None:
Notes
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
Function name
__STATIC_INLINE void LL_I2C_SetMode (I2C_TypeDef * I2Cx,
uint32_t PeripheralMode)
Function description
Configure peripheral mode.
Parameters
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
Return values
None:
Notes
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to
check whether or not SMBus feature is supported by the I2Cx
Instance.

Table of Contents

Related product manuals