STM32F439xx HAL User Manual
Functions
Configuration
I2C Exported Functions

Functions

__STATIC_INLINE void LL_I2C_Enable (I2C_TypeDef *I2Cx)
 Enable I2C peripheral (PE = 1).
__STATIC_INLINE void LL_I2C_Disable (I2C_TypeDef *I2Cx)
 Disable I2C peripheral (PE = 0).
__STATIC_INLINE uint32_t LL_I2C_IsEnabled (I2C_TypeDef *I2Cx)
 Check if the I2C peripheral is enabled or disabled.
__STATIC_INLINE void LL_I2C_ConfigFilters (I2C_TypeDef *I2Cx, uint32_t AnalogFilter, uint32_t DigitalFilter)
 Configure Noise Filters (Analog and Digital).
__STATIC_INLINE void LL_I2C_SetDigitalFilter (I2C_TypeDef *I2Cx, uint32_t DigitalFilter)
 Configure Digital Noise Filter.
__STATIC_INLINE uint32_t LL_I2C_GetDigitalFilter (I2C_TypeDef *I2Cx)
 Get the current Digital Noise Filter configuration.
__STATIC_INLINE void LL_I2C_EnableAnalogFilter (I2C_TypeDef *I2Cx)
 Enable Analog Noise Filter.
__STATIC_INLINE void LL_I2C_DisableAnalogFilter (I2C_TypeDef *I2Cx)
 Disable Analog Noise Filter.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledAnalogFilter (I2C_TypeDef *I2Cx)
 Check if Analog Noise Filter is enabled or disabled.
__STATIC_INLINE void LL_I2C_EnableDMAReq_TX (I2C_TypeDef *I2Cx)
 Enable DMA transmission requests.
__STATIC_INLINE void LL_I2C_DisableDMAReq_TX (I2C_TypeDef *I2Cx)
 Disable DMA transmission requests.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledDMAReq_TX (I2C_TypeDef *I2Cx)
 Check if DMA transmission requests are enabled or disabled.
__STATIC_INLINE void LL_I2C_EnableDMAReq_RX (I2C_TypeDef *I2Cx)
 Enable DMA reception requests.
__STATIC_INLINE void LL_I2C_DisableDMAReq_RX (I2C_TypeDef *I2Cx)
 Disable DMA reception requests.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledDMAReq_RX (I2C_TypeDef *I2Cx)
 Check if DMA reception requests are enabled or disabled.
__STATIC_INLINE uint32_t LL_I2C_DMA_GetRegAddr (I2C_TypeDef *I2Cx)
 Get the data register address used for DMA transfer.
__STATIC_INLINE void LL_I2C_EnableClockStretching (I2C_TypeDef *I2Cx)
 Enable Clock stretching.
__STATIC_INLINE void LL_I2C_DisableClockStretching (I2C_TypeDef *I2Cx)
 Disable Clock stretching.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledClockStretching (I2C_TypeDef *I2Cx)
 Check if Clock stretching is enabled or disabled.
__STATIC_INLINE void LL_I2C_EnableGeneralCall (I2C_TypeDef *I2Cx)
 Enable General Call.
__STATIC_INLINE void LL_I2C_DisableGeneralCall (I2C_TypeDef *I2Cx)
 Disable General Call.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledGeneralCall (I2C_TypeDef *I2Cx)
 Check if General Call is enabled or disabled.
__STATIC_INLINE void LL_I2C_SetOwnAddress1 (I2C_TypeDef *I2Cx, uint32_t OwnAddress1, uint32_t OwnAddrSize)
 Set the Own Address1.
__STATIC_INLINE void LL_I2C_SetOwnAddress2 (I2C_TypeDef *I2Cx, uint32_t OwnAddress2)
 Set the 7bits Own Address2.
__STATIC_INLINE void LL_I2C_EnableOwnAddress2 (I2C_TypeDef *I2Cx)
 Enable acknowledge on Own Address2 match address.
__STATIC_INLINE void LL_I2C_DisableOwnAddress2 (I2C_TypeDef *I2Cx)
 Disable acknowledge on Own Address2 match address.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledOwnAddress2 (I2C_TypeDef *I2Cx)
 Check if Own Address1 acknowledge is enabled or disabled.
__STATIC_INLINE void LL_I2C_SetPeriphClock (I2C_TypeDef *I2Cx, uint32_t PeriphClock)
 Configure the Peripheral clock frequency.
__STATIC_INLINE uint32_t LL_I2C_GetPeriphClock (I2C_TypeDef *I2Cx)
 Get the Peripheral clock frequency.
__STATIC_INLINE void LL_I2C_SetDutyCycle (I2C_TypeDef *I2Cx, uint32_t DutyCycle)
 Configure the Duty cycle (Fast mode only).
__STATIC_INLINE uint32_t LL_I2C_GetDutyCycle (I2C_TypeDef *I2Cx)
 Get the Duty cycle (Fast mode only).
__STATIC_INLINE void LL_I2C_SetClockSpeedMode (I2C_TypeDef *I2Cx, uint32_t ClockSpeedMode)
 Configure the I2C master clock speed mode.
__STATIC_INLINE uint32_t LL_I2C_GetClockSpeedMode (I2C_TypeDef *I2Cx)
 Get the the I2C master speed mode.
__STATIC_INLINE void LL_I2C_SetRiseTime (I2C_TypeDef *I2Cx, uint32_t RiseTime)
 Configure the SCL, SDA rising time.
__STATIC_INLINE uint32_t LL_I2C_GetRiseTime (I2C_TypeDef *I2Cx)
 Get the SCL, SDA rising time.
__STATIC_INLINE void LL_I2C_SetClockPeriod (I2C_TypeDef *I2Cx, uint32_t ClockPeriod)
 Configure the SCL high and low period.
__STATIC_INLINE uint32_t LL_I2C_GetClockPeriod (I2C_TypeDef *I2Cx)
 Get the SCL high and low period.
__STATIC_INLINE void LL_I2C_ConfigSpeed (I2C_TypeDef *I2Cx, uint32_t PeriphClock, uint32_t ClockSpeed, uint32_t DutyCycle)
 Configure the SCL speed.
__STATIC_INLINE void LL_I2C_SetMode (I2C_TypeDef *I2Cx, uint32_t PeripheralMode)
 Configure peripheral mode.
__STATIC_INLINE uint32_t LL_I2C_GetMode (I2C_TypeDef *I2Cx)
 Get peripheral mode.
__STATIC_INLINE void LL_I2C_EnableSMBusAlert (I2C_TypeDef *I2Cx)
 Enable SMBus alert (Host or Device mode)
__STATIC_INLINE void LL_I2C_DisableSMBusAlert (I2C_TypeDef *I2Cx)
 Disable SMBus alert (Host or Device mode)
__STATIC_INLINE uint32_t LL_I2C_IsEnabledSMBusAlert (I2C_TypeDef *I2Cx)
 Check if SMBus alert (Host or Device mode) is enabled or disabled.
__STATIC_INLINE void LL_I2C_EnableSMBusPEC (I2C_TypeDef *I2Cx)
 Enable SMBus Packet Error Calculation (PEC).
__STATIC_INLINE void LL_I2C_DisableSMBusPEC (I2C_TypeDef *I2Cx)
 Disable SMBus Packet Error Calculation (PEC).
__STATIC_INLINE uint32_t LL_I2C_IsEnabledSMBusPEC (I2C_TypeDef *I2Cx)
 Check if SMBus Packet Error Calculation (PEC) is enabled or disabled.

Function Documentation

__STATIC_INLINE void LL_I2C_ConfigFilters ( I2C_TypeDef *  I2Cx,
uint32_t  AnalogFilter,
uint32_t  DigitalFilter 
)

Configure Noise Filters (Analog and Digital).

Note:
If the analog filter is also enabled, the digital filter is added to analog filter. The filters can only be programmed when the I2C is disabled (PE = 0).
Reference Manual to LL API cross reference:
FLTR ANOFF LL_I2C_ConfigFilters
FLTR DNF LL_I2C_ConfigFilters
Parameters:
I2CxI2C Instance.
AnalogFilterThis parameter can be one of the following values:
DigitalFilterThis parameter must be a value between Min_Data=0x00 (Digital filter disabled) and Max_Data=0x0F (Digital filter enabled and filtering capability up to 15*TPCLK1) This parameter is used to configure the digital noise filter on SDA and SCL input. The digital filter will suppress the spikes with a length of up to DNF[3:0]*TPCLK1.
Return values:
None

Definition at line 430 of file stm32f4xx_ll_i2c.h.

Referenced by LL_I2C_Init().

__STATIC_INLINE void LL_I2C_ConfigSpeed ( I2C_TypeDef *  I2Cx,
uint32_t  PeriphClock,
uint32_t  ClockSpeed,
uint32_t  DutyCycle 
)

Configure the SCL speed.

Note:
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
Parameters:
I2CxI2C Instance.
PeriphClockPeripheral Clock (in Hz)
ClockSpeedThis parameter must be a value lower than 400kHz (in Hz).
DutyCycleThis parameter can be one of the following values:
Return values:
None

Definition at line 853 of file stm32f4xx_ll_i2c.h.

References __LL_I2C_FREQ_HZ_TO_MHZ, __LL_I2C_RISE_TIME, LL_I2C_CLOCK_SPEED_FAST_MODE, LL_I2C_CLOCK_SPEED_STANDARD_MODE, and LL_I2C_MAX_SPEED_STANDARD.

Referenced by LL_I2C_Init().

__STATIC_INLINE void LL_I2C_Disable ( I2C_TypeDef *  I2Cx)

Disable I2C peripheral (PE = 0).

Reference Manual to LL API cross reference:
CR1 PE LL_I2C_Disable
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 399 of file stm32f4xx_ll_i2c.h.

Referenced by LL_I2C_Init().

__STATIC_INLINE void LL_I2C_DisableAnalogFilter ( I2C_TypeDef *  I2Cx)

Disable Analog Noise Filter.

Note:
This filter can only be programmed when the I2C is disabled (PE = 0).
Reference Manual to LL API cross reference:
FLTR ANOFF LL_I2C_DisableAnalogFilter
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 484 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_DisableClockStretching ( I2C_TypeDef *  I2Cx)

Disable Clock stretching.

Note:
This bit can only be programmed when the I2C is disabled (PE = 0).
Reference Manual to LL API cross reference:
CR1 NOSTRETCH LL_I2C_DisableClockStretching
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 597 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_DisableDMAReq_RX ( I2C_TypeDef *  I2Cx)

Disable DMA reception requests.

Reference Manual to LL API cross reference:
CR2 DMAEN LL_I2C_DisableDMAReq_RX
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 551 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_DisableDMAReq_TX ( I2C_TypeDef *  I2Cx)

Disable DMA transmission requests.

Reference Manual to LL API cross reference:
CR2 DMAEN LL_I2C_DisableDMAReq_TX
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 518 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_DisableGeneralCall ( I2C_TypeDef *  I2Cx)

Disable General Call.

Note:
When disabled the Address 0x00 is NACKed.
Reference Manual to LL API cross reference:
CR1 ENGC LL_I2C_DisableGeneralCall
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 632 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_DisableOwnAddress2 ( I2C_TypeDef *  I2Cx)

Disable acknowledge on Own Address2 match address.

Reference Manual to LL API cross reference:
OAR2 ENDUAL LL_I2C_DisableOwnAddress2
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 696 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_DisableSMBusAlert ( I2C_TypeDef *  I2Cx)

Disable SMBus alert (Host or Device mode)

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
SMBus Device mode:
  • SMBus Alert pin is not drived (can be used as a standard GPIO) and Alert Response Address Header acknowledge is disabled. SMBus Host mode:
  • SMBus Alert pin management is not supported.
Reference Manual to LL API cross reference:
CR1 ALERT LL_I2C_DisableSMBusAlert
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 957 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_DisableSMBusPEC ( I2C_TypeDef *  I2Cx)

Disable SMBus Packet Error Calculation (PEC).

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Reference Manual to LL API cross reference:
CR1 ENPEC LL_I2C_DisableSMBusPEC
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 996 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_DMA_GetRegAddr ( I2C_TypeDef *  I2Cx)

Get the data register address used for DMA transfer.

Reference Manual to LL API cross reference:
DR DR LL_I2C_DMA_GetRegAddr
Parameters:
I2CxI2C Instance.
Return values:
Addressof data register

Definition at line 573 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_Enable ( I2C_TypeDef *  I2Cx)

Enable I2C peripheral (PE = 1).

Reference Manual to LL API cross reference:
CR1 PE LL_I2C_Enable
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 388 of file stm32f4xx_ll_i2c.h.

Referenced by LL_I2C_Init().

__STATIC_INLINE void LL_I2C_EnableAnalogFilter ( I2C_TypeDef *  I2Cx)

Enable Analog Noise Filter.

Note:
This filter can only be programmed when the I2C is disabled (PE = 0).
Reference Manual to LL API cross reference:
FLTR ANOFF LL_I2C_EnableAnalogFilter
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 472 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableClockStretching ( I2C_TypeDef *  I2Cx)

Enable Clock stretching.

Note:
This bit can only be programmed when the I2C is disabled (PE = 0).
Reference Manual to LL API cross reference:
CR1 NOSTRETCH LL_I2C_EnableClockStretching
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 585 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableDMAReq_RX ( I2C_TypeDef *  I2Cx)

Enable DMA reception requests.

Reference Manual to LL API cross reference:
CR2 DMAEN LL_I2C_EnableDMAReq_RX
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 540 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableDMAReq_TX ( I2C_TypeDef *  I2Cx)

Enable DMA transmission requests.

Reference Manual to LL API cross reference:
CR2 DMAEN LL_I2C_EnableDMAReq_TX
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 507 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableGeneralCall ( I2C_TypeDef *  I2Cx)

Enable General Call.

Note:
When enabled the Address 0x00 is ACKed.
Reference Manual to LL API cross reference:
CR1 ENGC LL_I2C_EnableGeneralCall
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 620 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableOwnAddress2 ( I2C_TypeDef *  I2Cx)

Enable acknowledge on Own Address2 match address.

Reference Manual to LL API cross reference:
OAR2 ENDUAL LL_I2C_EnableOwnAddress2
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 685 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableSMBusAlert ( I2C_TypeDef *  I2Cx)

Enable SMBus alert (Host or Device mode)

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
SMBus Device mode:
  • SMBus Alert pin is drived low and Alert Response Address Header acknowledge is enabled. SMBus Host mode:
  • SMBus Alert pin management is supported.
Reference Manual to LL API cross reference:
CR1 ALERT LL_I2C_EnableSMBusAlert
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 939 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableSMBusPEC ( I2C_TypeDef *  I2Cx)

Enable SMBus Packet Error Calculation (PEC).

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Reference Manual to LL API cross reference:
CR1 ENPEC LL_I2C_EnableSMBusPEC
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 983 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_GetClockPeriod ( I2C_TypeDef *  I2Cx)

Get the SCL high and low period.

Reference Manual to LL API cross reference:
CCR CCR LL_I2C_GetClockPeriod
Parameters:
I2CxI2C Instance.
Return values:
Valuebetween Min_Data=0x004 and Max_Data=0xFFF, except in FAST DUTY mode where Min_Data=0x001.

Definition at line 832 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_GetClockSpeedMode ( I2C_TypeDef *  I2Cx)

Get the the I2C master speed mode.

Reference Manual to LL API cross reference:
CCR FS LL_I2C_GetClockSpeedMode
Parameters:
I2CxI2C Instance.
Return values:
Returnedvalue can be one of the following values:

Definition at line 784 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_GetDigitalFilter ( I2C_TypeDef *  I2Cx)

Get the current Digital Noise Filter configuration.

Reference Manual to LL API cross reference:
FLTR DNF LL_I2C_GetDigitalFilter
Parameters:
I2CxI2C Instance.
Return values:
Valuebetween Min_Data=0x0 and Max_Data=0xF

Definition at line 458 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_GetDutyCycle ( I2C_TypeDef *  I2Cx)

Get the Duty cycle (Fast mode only).

Reference Manual to LL API cross reference:
CCR DUTY LL_I2C_GetDutyCycle
Parameters:
I2CxI2C Instance.
Return values:
Returnedvalue can be one of the following values:

Definition at line 757 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_GetMode ( I2C_TypeDef *  I2Cx)

Get peripheral mode.

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Reference Manual to LL API cross reference:
CR1 SMBUS LL_I2C_GetMode
CR1 SMBTYPE LL_I2C_GetMode
CR1 ENARP LL_I2C_GetMode
Parameters:
I2CxI2C Instance.
Return values:
Returnedvalue can be one of the following values:

Definition at line 921 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_GetPeriphClock ( I2C_TypeDef *  I2Cx)

Get the Peripheral clock frequency.

Reference Manual to LL API cross reference:
CR2 FREQ LL_I2C_GetPeriphClock
Parameters:
I2CxI2C Instance.
Return values:
Valueof Peripheral Clock (in Hz)

Definition at line 730 of file stm32f4xx_ll_i2c.h.

References __LL_I2C_FREQ_MHZ_TO_HZ.

__STATIC_INLINE uint32_t LL_I2C_GetRiseTime ( I2C_TypeDef *  I2Cx)

Get the SCL, SDA rising time.

Reference Manual to LL API cross reference:
TRISE TRISE LL_I2C_GetRiseTime
Parameters:
I2CxI2C Instance.
Return values:
Valuebetween Min_Data=0x02 and Max_Data=0x3F

Definition at line 808 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabled ( I2C_TypeDef *  I2Cx)

Check if the I2C peripheral is enabled or disabled.

Reference Manual to LL API cross reference:
CR1 PE LL_I2C_IsEnabled
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 410 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledAnalogFilter ( I2C_TypeDef *  I2Cx)

Check if Analog Noise Filter is enabled or disabled.

Reference Manual to LL API cross reference:
FLTR ANOFF LL_I2C_IsEnabledAnalogFilter
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 495 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledClockStretching ( I2C_TypeDef *  I2Cx)

Check if Clock stretching is enabled or disabled.

Reference Manual to LL API cross reference:
CR1 NOSTRETCH LL_I2C_IsEnabledClockStretching
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 608 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledDMAReq_RX ( I2C_TypeDef *  I2Cx)

Check if DMA reception requests are enabled or disabled.

Reference Manual to LL API cross reference:
CR2 DMAEN LL_I2C_IsEnabledDMAReq_RX
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 562 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledDMAReq_TX ( I2C_TypeDef *  I2Cx)

Check if DMA transmission requests are enabled or disabled.

Reference Manual to LL API cross reference:
CR2 DMAEN LL_I2C_IsEnabledDMAReq_TX
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 529 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledGeneralCall ( I2C_TypeDef *  I2Cx)

Check if General Call is enabled or disabled.

Reference Manual to LL API cross reference:
CR1 ENGC LL_I2C_IsEnabledGeneralCall
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 643 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledOwnAddress2 ( I2C_TypeDef *  I2Cx)

Check if Own Address1 acknowledge is enabled or disabled.

Reference Manual to LL API cross reference:
OAR2 ENDUAL LL_I2C_IsEnabledOwnAddress2
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 707 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledSMBusAlert ( I2C_TypeDef *  I2Cx)

Check if SMBus alert (Host or Device mode) is enabled or disabled.

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Reference Manual to LL API cross reference:
CR1 ALERT LL_I2C_IsEnabledSMBusAlert
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 970 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledSMBusPEC ( I2C_TypeDef *  I2Cx)

Check if SMBus Packet Error Calculation (PEC) is enabled or disabled.

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Reference Manual to LL API cross reference:
CR1 ENPEC LL_I2C_IsEnabledSMBusPEC
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1009 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_SetClockPeriod ( I2C_TypeDef *  I2Cx,
uint32_t  ClockPeriod 
)

Configure the SCL high and low period.

Note:
This bit can only be programmed when the I2C is disabled (PE = 0).
Reference Manual to LL API cross reference:
CCR CCR LL_I2C_SetClockPeriod
Parameters:
I2CxI2C Instance.
ClockPeriodThis parameter must be a value between Min_Data=0x004 and Max_Data=0xFFF, except in FAST DUTY mode where Min_Data=0x001.
Return values:
None

Definition at line 821 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_SetClockSpeedMode ( I2C_TypeDef *  I2Cx,
uint32_t  ClockSpeedMode 
)

Configure the I2C master clock speed mode.

Reference Manual to LL API cross reference:
CCR FS LL_I2C_SetClockSpeedMode
Parameters:
I2CxI2C Instance.
ClockSpeedModeThis parameter can be one of the following values:
Return values:
None

Definition at line 771 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_SetDigitalFilter ( I2C_TypeDef *  I2Cx,
uint32_t  DigitalFilter 
)

Configure Digital Noise Filter.

Note:
If the analog filter is also enabled, the digital filter is added to analog filter. This filter can only be programmed when the I2C is disabled (PE = 0).
Reference Manual to LL API cross reference:
FLTR DNF LL_I2C_SetDigitalFilter
Parameters:
I2CxI2C Instance.
DigitalFilterThis parameter must be a value between Min_Data=0x00 (Digital filter disabled) and Max_Data=0x0F (Digital filter enabled and filtering capability up to 15*TPCLK1) This parameter is used to configure the digital noise filter on SDA and SCL input. The digital filter will suppress the spikes with a length of up to DNF[3:0]*TPCLK1.
Return values:
None

Definition at line 447 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_SetDutyCycle ( I2C_TypeDef *  I2Cx,
uint32_t  DutyCycle 
)

Configure the Duty cycle (Fast mode only).

Reference Manual to LL API cross reference:
CCR DUTY LL_I2C_SetDutyCycle
Parameters:
I2CxI2C Instance.
DutyCycleThis parameter can be one of the following values:
Return values:
None

Definition at line 744 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_SetMode ( I2C_TypeDef *  I2Cx,
uint32_t  PeripheralMode 
)

Configure peripheral mode.

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Reference Manual to LL API cross reference:
CR1 SMBUS LL_I2C_SetMode
CR1 SMBTYPE LL_I2C_SetMode
CR1 ENARP LL_I2C_SetMode
Parameters:
I2CxI2C Instance.
PeripheralModeThis parameter can be one of the following values:
Return values:
None

Definition at line 902 of file stm32f4xx_ll_i2c.h.

Referenced by LL_I2C_Init().

__STATIC_INLINE void LL_I2C_SetOwnAddress1 ( I2C_TypeDef *  I2Cx,
uint32_t  OwnAddress1,
uint32_t  OwnAddrSize 
)

Set the Own Address1.

Reference Manual to LL API cross reference:
OAR1 ADD0 LL_I2C_SetOwnAddress1
OAR1 ADD1_7 LL_I2C_SetOwnAddress1
OAR1 ADD8_9 LL_I2C_SetOwnAddress1
OAR1 ADDMODE LL_I2C_SetOwnAddress1
Parameters:
I2CxI2C Instance.
OwnAddress1This parameter must be a value between Min_Data=0 and Max_Data=0x3FF.
OwnAddrSizeThis parameter can be one of the following values:
Return values:
None

Definition at line 661 of file stm32f4xx_ll_i2c.h.

Referenced by LL_I2C_Init().

__STATIC_INLINE void LL_I2C_SetOwnAddress2 ( I2C_TypeDef *  I2Cx,
uint32_t  OwnAddress2 
)

Set the 7bits Own Address2.

Note:
This action has no effect if own address2 is enabled.
Reference Manual to LL API cross reference:
OAR2 ADD2 LL_I2C_SetOwnAddress2
Parameters:
I2CxI2C Instance.
OwnAddress2This parameter must be a value between Min_Data=0 and Max_Data=0x7F.
Return values:
None

Definition at line 674 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_SetPeriphClock ( I2C_TypeDef *  I2Cx,
uint32_t  PeriphClock 
)

Configure the Peripheral clock frequency.

Reference Manual to LL API cross reference:
CR2 FREQ LL_I2C_SetPeriphClock
Parameters:
I2CxI2C Instance.
PeriphClockPeripheral Clock (in Hz)
Return values:
None

Definition at line 719 of file stm32f4xx_ll_i2c.h.

References __LL_I2C_FREQ_HZ_TO_MHZ.

__STATIC_INLINE void LL_I2C_SetRiseTime ( I2C_TypeDef *  I2Cx,
uint32_t  RiseTime 
)

Configure the SCL, SDA rising time.

Note:
This bit can only be programmed when the I2C is disabled (PE = 0).
Reference Manual to LL API cross reference:
TRISE TRISE LL_I2C_SetRiseTime
Parameters:
I2CxI2C Instance.
RiseTimeThis parameter must be a value between Min_Data=0x02 and Max_Data=0x3F.
Return values:
None

Definition at line 797 of file stm32f4xx_ll_i2c.h.