STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for Configuration:

Functions

__STATIC_INLINE void LL_FMPI2C_Enable (FMPI2C_TypeDef *FMPI2Cx)
 Enable FMPI2C peripheral (PE = 1). @rmtoll CR1 PE LL_FMPI2C_Enable. More...
 
__STATIC_INLINE void LL_FMPI2C_Disable (FMPI2C_TypeDef *FMPI2Cx)
 Disable FMPI2C peripheral (PE = 0). More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabled (const FMPI2C_TypeDef *FMPI2Cx)
 Check if the FMPI2C peripheral is enabled or disabled. @rmtoll CR1 PE LL_FMPI2C_IsEnabled. More...
 
__STATIC_INLINE void LL_FMPI2C_ConfigFilters (FMPI2C_TypeDef *FMPI2Cx, uint32_t AnalogFilter, uint32_t DigitalFilter)
 Configure Noise Filters (Analog and Digital). More...
 
__STATIC_INLINE void LL_FMPI2C_SetDigitalFilter (FMPI2C_TypeDef *FMPI2Cx, uint32_t DigitalFilter)
 Configure Digital Noise Filter. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_GetDigitalFilter (const FMPI2C_TypeDef *FMPI2Cx)
 Get the current Digital Noise Filter configuration. @rmtoll CR1 DNF LL_FMPI2C_GetDigitalFilter. More...
 
__STATIC_INLINE void LL_FMPI2C_EnableAnalogFilter (FMPI2C_TypeDef *FMPI2Cx)
 Enable Analog Noise Filter. More...
 
__STATIC_INLINE void LL_FMPI2C_DisableAnalogFilter (FMPI2C_TypeDef *FMPI2Cx)
 Disable Analog Noise Filter. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledAnalogFilter (const FMPI2C_TypeDef *FMPI2Cx)
 Check if Analog Noise Filter is enabled or disabled. @rmtoll CR1 ANFOFF LL_FMPI2C_IsEnabledAnalogFilter. More...
 
__STATIC_INLINE void LL_FMPI2C_EnableDMAReq_TX (FMPI2C_TypeDef *FMPI2Cx)
 Enable DMA transmission requests. @rmtoll CR1 TXDMAEN LL_FMPI2C_EnableDMAReq_TX. More...
 
__STATIC_INLINE void LL_FMPI2C_DisableDMAReq_TX (FMPI2C_TypeDef *FMPI2Cx)
 Disable DMA transmission requests. @rmtoll CR1 TXDMAEN LL_FMPI2C_DisableDMAReq_TX. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledDMAReq_TX (const FMPI2C_TypeDef *FMPI2Cx)
 Check if DMA transmission requests are enabled or disabled. @rmtoll CR1 TXDMAEN LL_FMPI2C_IsEnabledDMAReq_TX. More...
 
__STATIC_INLINE void LL_FMPI2C_EnableDMAReq_RX (FMPI2C_TypeDef *FMPI2Cx)
 Enable DMA reception requests. @rmtoll CR1 RXDMAEN LL_FMPI2C_EnableDMAReq_RX. More...
 
__STATIC_INLINE void LL_FMPI2C_DisableDMAReq_RX (FMPI2C_TypeDef *FMPI2Cx)
 Disable DMA reception requests. @rmtoll CR1 RXDMAEN LL_FMPI2C_DisableDMAReq_RX. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledDMAReq_RX (const FMPI2C_TypeDef *FMPI2Cx)
 Check if DMA reception requests are enabled or disabled. @rmtoll CR1 RXDMAEN LL_FMPI2C_IsEnabledDMAReq_RX. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_DMA_GetRegAddr (const FMPI2C_TypeDef *FMPI2Cx, uint32_t Direction)
 Get the data register address used for DMA transfer @rmtoll TXDR TXDATA LL_FMPI2C_DMA_GetRegAddr
RXDR RXDATA LL_FMPI2C_DMA_GetRegAddr. More...
 
__STATIC_INLINE void LL_FMPI2C_EnableClockStretching (FMPI2C_TypeDef *FMPI2Cx)
 Enable Clock stretching. More...
 
__STATIC_INLINE void LL_FMPI2C_DisableClockStretching (FMPI2C_TypeDef *FMPI2Cx)
 Disable Clock stretching. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledClockStretching (const FMPI2C_TypeDef *FMPI2Cx)
 Check if Clock stretching is enabled or disabled. @rmtoll CR1 NOSTRETCH LL_FMPI2C_IsEnabledClockStretching. More...
 
__STATIC_INLINE void LL_FMPI2C_EnableSlaveByteControl (FMPI2C_TypeDef *FMPI2Cx)
 Enable hardware byte control in slave mode. @rmtoll CR1 SBC LL_FMPI2C_EnableSlaveByteControl. More...
 
__STATIC_INLINE void LL_FMPI2C_DisableSlaveByteControl (FMPI2C_TypeDef *FMPI2Cx)
 Disable hardware byte control in slave mode. @rmtoll CR1 SBC LL_FMPI2C_DisableSlaveByteControl. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledSlaveByteControl (const FMPI2C_TypeDef *FMPI2Cx)
 Check if hardware byte control in slave mode is enabled or disabled. @rmtoll CR1 SBC LL_FMPI2C_IsEnabledSlaveByteControl. More...
 
__STATIC_INLINE void LL_FMPI2C_EnableGeneralCall (FMPI2C_TypeDef *FMPI2Cx)
 Enable General Call. More...
 
__STATIC_INLINE void LL_FMPI2C_DisableGeneralCall (FMPI2C_TypeDef *FMPI2Cx)
 Disable General Call. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledGeneralCall (const FMPI2C_TypeDef *FMPI2Cx)
 Check if General Call is enabled or disabled. @rmtoll CR1 GCEN LL_FMPI2C_IsEnabledGeneralCall. More...
 
__STATIC_INLINE void LL_FMPI2C_SetMasterAddressingMode (FMPI2C_TypeDef *FMPI2Cx, uint32_t AddressingMode)
 Configure the Master to operate in 7-bit or 10-bit addressing mode. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_GetMasterAddressingMode (const FMPI2C_TypeDef *FMPI2Cx)
 Get the Master addressing mode. @rmtoll CR2 ADD10 LL_FMPI2C_GetMasterAddressingMode. More...
 
__STATIC_INLINE void LL_FMPI2C_SetOwnAddress1 (FMPI2C_TypeDef *FMPI2Cx, uint32_t OwnAddress1, uint32_t OwnAddrSize)
 Set the Own Address1. @rmtoll OAR1 OA1 LL_FMPI2C_SetOwnAddress1
OAR1 OA1MODE LL_FMPI2C_SetOwnAddress1. More...
 
__STATIC_INLINE void LL_FMPI2C_EnableOwnAddress1 (FMPI2C_TypeDef *FMPI2Cx)
 Enable acknowledge on Own Address1 match address. @rmtoll OAR1 OA1EN LL_FMPI2C_EnableOwnAddress1. More...
 
__STATIC_INLINE void LL_FMPI2C_DisableOwnAddress1 (FMPI2C_TypeDef *FMPI2Cx)
 Disable acknowledge on Own Address1 match address. @rmtoll OAR1 OA1EN LL_FMPI2C_DisableOwnAddress1. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledOwnAddress1 (const FMPI2C_TypeDef *FMPI2Cx)
 Check if Own Address1 acknowledge is enabled or disabled. @rmtoll OAR1 OA1EN LL_FMPI2C_IsEnabledOwnAddress1. More...
 
__STATIC_INLINE void LL_FMPI2C_SetOwnAddress2 (FMPI2C_TypeDef *FMPI2Cx, uint32_t OwnAddress2, uint32_t OwnAddrMask)
 Set the 7bits Own Address2. More...
 
__STATIC_INLINE void LL_FMPI2C_EnableOwnAddress2 (FMPI2C_TypeDef *FMPI2Cx)
 Enable acknowledge on Own Address2 match address. @rmtoll OAR2 OA2EN LL_FMPI2C_EnableOwnAddress2. More...
 
__STATIC_INLINE void LL_FMPI2C_DisableOwnAddress2 (FMPI2C_TypeDef *FMPI2Cx)
 Disable acknowledge on Own Address2 match address. @rmtoll OAR2 OA2EN LL_FMPI2C_DisableOwnAddress2. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledOwnAddress2 (const FMPI2C_TypeDef *FMPI2Cx)
 Check if Own Address1 acknowledge is enabled or disabled. @rmtoll OAR2 OA2EN LL_FMPI2C_IsEnabledOwnAddress2. More...
 
__STATIC_INLINE void LL_FMPI2C_SetTiming (FMPI2C_TypeDef *FMPI2Cx, uint32_t Timing)
 Configure the SDA setup, hold time and the SCL high, low period. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_GetTimingPrescaler (const FMPI2C_TypeDef *FMPI2Cx)
 Get the Timing Prescaler setting. @rmtoll TIMINGR PRESC LL_FMPI2C_GetTimingPrescaler. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_GetClockLowPeriod (const FMPI2C_TypeDef *FMPI2Cx)
 Get the SCL low period setting. @rmtoll TIMINGR SCLL LL_FMPI2C_GetClockLowPeriod. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_GetClockHighPeriod (const FMPI2C_TypeDef *FMPI2Cx)
 Get the SCL high period setting. @rmtoll TIMINGR SCLH LL_FMPI2C_GetClockHighPeriod. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_GetDataHoldTime (const FMPI2C_TypeDef *FMPI2Cx)
 Get the SDA hold time. @rmtoll TIMINGR SDADEL LL_FMPI2C_GetDataHoldTime. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_GetDataSetupTime (const FMPI2C_TypeDef *FMPI2Cx)
 Get the SDA setup time. @rmtoll TIMINGR SCLDEL LL_FMPI2C_GetDataSetupTime. More...
 
__STATIC_INLINE void LL_FMPI2C_SetMode (FMPI2C_TypeDef *FMPI2Cx, uint32_t PeripheralMode)
 Configure peripheral mode. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_GetMode (const FMPI2C_TypeDef *FMPI2Cx)
 Get peripheral mode. More...
 
__STATIC_INLINE void LL_FMPI2C_EnableSMBusAlert (FMPI2C_TypeDef *FMPI2Cx)
 Enable SMBus alert (Host or Device mode) More...
 
__STATIC_INLINE void LL_FMPI2C_DisableSMBusAlert (FMPI2C_TypeDef *FMPI2Cx)
 Disable SMBus alert (Host or Device mode) More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledSMBusAlert (const FMPI2C_TypeDef *FMPI2Cx)
 Check if SMBus alert (Host or Device mode) is enabled or disabled. More...
 
__STATIC_INLINE void LL_FMPI2C_EnableSMBusPEC (FMPI2C_TypeDef *FMPI2Cx)
 Enable SMBus Packet Error Calculation (PEC). More...
 
__STATIC_INLINE void LL_FMPI2C_DisableSMBusPEC (FMPI2C_TypeDef *FMPI2Cx)
 Disable SMBus Packet Error Calculation (PEC). More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledSMBusPEC (const FMPI2C_TypeDef *FMPI2Cx)
 Check if SMBus Packet Error Calculation (PEC) is enabled or disabled. More...
 
__STATIC_INLINE void LL_FMPI2C_ConfigSMBusTimeout (FMPI2C_TypeDef *FMPI2Cx, uint32_t TimeoutA, uint32_t TimeoutAMode, uint32_t TimeoutB)
 Configure the SMBus Clock Timeout. More...
 
__STATIC_INLINE void LL_FMPI2C_SetSMBusTimeoutA (FMPI2C_TypeDef *FMPI2Cx, uint32_t TimeoutA)
 Configure the SMBus Clock TimeoutA (SCL low timeout or SCL and SDA high timeout depends on TimeoutA mode). More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_GetSMBusTimeoutA (const FMPI2C_TypeDef *FMPI2Cx)
 Get the SMBus Clock TimeoutA setting. More...
 
__STATIC_INLINE void LL_FMPI2C_SetSMBusTimeoutAMode (FMPI2C_TypeDef *FMPI2Cx, uint32_t TimeoutAMode)
 Set the SMBus Clock TimeoutA mode. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_GetSMBusTimeoutAMode (const FMPI2C_TypeDef *FMPI2Cx)
 Get the SMBus Clock TimeoutA mode. More...
 
__STATIC_INLINE void LL_FMPI2C_SetSMBusTimeoutB (FMPI2C_TypeDef *FMPI2Cx, uint32_t TimeoutB)
 Configure the SMBus Extended Cumulative Clock TimeoutB (Master or Slave mode). More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_GetSMBusTimeoutB (const FMPI2C_TypeDef *FMPI2Cx)
 Get the SMBus Extended Cumulative Clock TimeoutB setting. More...
 
__STATIC_INLINE void LL_FMPI2C_EnableSMBusTimeout (FMPI2C_TypeDef *FMPI2Cx, uint32_t ClockTimeout)
 Enable the SMBus Clock Timeout. More...
 
__STATIC_INLINE void LL_FMPI2C_DisableSMBusTimeout (FMPI2C_TypeDef *FMPI2Cx, uint32_t ClockTimeout)
 Disable the SMBus Clock Timeout. More...
 
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledSMBusTimeout (const FMPI2C_TypeDef *FMPI2Cx, uint32_t ClockTimeout)
 Check if the SMBus Clock Timeout is enabled or disabled. More...
 

Detailed Description

Function Documentation

◆ LL_FMPI2C_ConfigFilters()

__STATIC_INLINE void LL_FMPI2C_ConfigFilters ( FMPI2C_TypeDef *  FMPI2Cx,
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 FMPI2C is disabled (PE = 0). @rmtoll CR1 ANFOFF LL_FMPI2C_ConfigFilters
CR1 DNF LL_FMPI2C_ConfigFilters
Parameters
FMPI2CxFMPI2C Instance.
AnalogFilterThis parameter can be one of the following values:
  • LL_FMPI2C_ANALOGFILTER_ENABLE
  • LL_FMPI2C_ANALOGFILTER_DISABLE
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*tfmpi2cclk). This parameter is used to configure the digital noise filter on SDA and SCL input. The digital filter will filter spikes with a length of up to DNF[3:0]*tfmpi2cclk.
Return values
None

Definition at line 476 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_ConfigSMBusTimeout()

__STATIC_INLINE void LL_FMPI2C_ConfigSMBusTimeout ( FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  TimeoutA,
uint32_t  TimeoutAMode,
uint32_t  TimeoutB 
)

Configure the SMBus Clock Timeout.

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance.
This configuration can only be programmed when associated Timeout is disabled (TimeoutA and/orTimeoutB). @rmtoll TIMEOUTR TIMEOUTA LL_FMPI2C_ConfigSMBusTimeout
TIMEOUTR TIDLE LL_FMPI2C_ConfigSMBusTimeout
TIMEOUTR TIMEOUTB LL_FMPI2C_ConfigSMBusTimeout
Parameters
FMPI2CxFMPI2C Instance.
TimeoutAThis parameter must be a value between Min_Data=0 and Max_Data=0xFFF.
TimeoutAModeThis parameter can be one of the following values:
  • LL_FMPI2C_FMPSMBUS_TIMEOUTA_MODE_SCL_LOW
  • LL_FMPI2C_FMPSMBUS_TIMEOUTA_MODE_SDA_SCL_HIGH
TimeoutB
Return values
None

Definition at line 1084 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_Disable()

__STATIC_INLINE void LL_FMPI2C_Disable ( FMPI2C_TypeDef *  FMPI2Cx)

Disable FMPI2C peripheral (PE = 0).

Note
When PE = 0, the FMPI2C SCL and SDA lines are released. Internal state machines and status bits are put back to their reset value. When cleared, PE must be kept low for at least 3 APB clock cycles. @rmtoll CR1 PE LL_FMPI2C_Disable
Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 444 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DisableAnalogFilter()

__STATIC_INLINE void LL_FMPI2C_DisableAnalogFilter ( FMPI2C_TypeDef *  FMPI2Cx)

Disable Analog Noise Filter.

Note
This filter can only be programmed when the FMPI2C is disabled (PE = 0). @rmtoll CR1 ANFOFF LL_FMPI2C_DisableAnalogFilter
Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 528 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DisableClockStretching()

__STATIC_INLINE void LL_FMPI2C_DisableClockStretching ( FMPI2C_TypeDef *  FMPI2Cx)

Disable Clock stretching.

Note
This bit can only be programmed when the FMPI2C is disabled (PE = 0). @rmtoll CR1 NOSTRETCH LL_FMPI2C_DisableClockStretching
Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 657 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DisableDMAReq_RX()

__STATIC_INLINE void LL_FMPI2C_DisableDMAReq_RX ( FMPI2C_TypeDef *  FMPI2Cx)

Disable DMA reception requests. @rmtoll CR1 RXDMAEN LL_FMPI2C_DisableDMAReq_RX.

Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 594 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DisableDMAReq_TX()

__STATIC_INLINE void LL_FMPI2C_DisableDMAReq_TX ( FMPI2C_TypeDef *  FMPI2Cx)

Disable DMA transmission requests. @rmtoll CR1 TXDMAEN LL_FMPI2C_DisableDMAReq_TX.

Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 561 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DisableGeneralCall()

__STATIC_INLINE void LL_FMPI2C_DisableGeneralCall ( FMPI2C_TypeDef *  FMPI2Cx)

Disable General Call.

Note
When disabled the Address 0x00 is NACKed. @rmtoll CR1 GCEN LL_FMPI2C_DisableGeneralCall
Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 725 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DisableOwnAddress1()

__STATIC_INLINE void LL_FMPI2C_DisableOwnAddress1 ( FMPI2C_TypeDef *  FMPI2Cx)

Disable acknowledge on Own Address1 match address. @rmtoll OAR1 OA1EN LL_FMPI2C_DisableOwnAddress1.

Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 802 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DisableOwnAddress2()

__STATIC_INLINE void LL_FMPI2C_DisableOwnAddress2 ( FMPI2C_TypeDef *  FMPI2Cx)

Disable acknowledge on Own Address2 match address. @rmtoll OAR2 OA2EN LL_FMPI2C_DisableOwnAddress2.

Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 858 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DisableSlaveByteControl()

__STATIC_INLINE void LL_FMPI2C_DisableSlaveByteControl ( FMPI2C_TypeDef *  FMPI2Cx)

Disable hardware byte control in slave mode. @rmtoll CR1 SBC LL_FMPI2C_DisableSlaveByteControl.

Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 690 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DisableSMBusAlert()

__STATIC_INLINE void LL_FMPI2C_DisableSMBusAlert ( FMPI2C_TypeDef *  FMPI2Cx)

Disable SMBus alert (Host or Device mode)

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx 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. @rmtoll CR1 ALERTEN LL_FMPI2C_DisableSMBusAlert
Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 1011 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DisableSMBusPEC()

__STATIC_INLINE void LL_FMPI2C_DisableSMBusPEC ( FMPI2C_TypeDef *  FMPI2Cx)

Disable SMBus Packet Error Calculation (PEC).

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll CR1 PECEN LL_FMPI2C_DisableSMBusPEC
Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 1050 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DisableSMBusTimeout()

__STATIC_INLINE void LL_FMPI2C_DisableSMBusTimeout ( FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  ClockTimeout 
)

Disable the SMBus Clock Timeout.

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll TIMEOUTR TIMOUTEN LL_FMPI2C_DisableSMBusTimeout
TIMEOUTR TEXTEN LL_FMPI2C_DisableSMBusTimeout
Parameters
FMPI2CxFMPI2C Instance.
ClockTimeoutThis parameter can be one of the following values:
  • LL_FMPI2C_FMPSMBUS_TIMEOUTA
  • LL_FMPI2C_FMPSMBUS_TIMEOUTB
  • LL_FMPI2C_FMPSMBUS_ALL_TIMEOUT
Return values
None

Definition at line 1210 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_DMA_GetRegAddr()

__STATIC_INLINE uint32_t LL_FMPI2C_DMA_GetRegAddr ( const FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  Direction 
)

Get the data register address used for DMA transfer @rmtoll TXDR TXDATA LL_FMPI2C_DMA_GetRegAddr
RXDR RXDATA LL_FMPI2C_DMA_GetRegAddr.

Parameters
FMPI2CxFMPI2C Instance
DirectionThis parameter can be one of the following values:
  • LL_FMPI2C_DMA_REG_DATA_TRANSMIT
  • LL_FMPI2C_DMA_REG_DATA_RECEIVE
Return values
Addressof data register

Definition at line 620 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_Enable()

__STATIC_INLINE void LL_FMPI2C_Enable ( FMPI2C_TypeDef *  FMPI2Cx)

Enable FMPI2C peripheral (PE = 1). @rmtoll CR1 PE LL_FMPI2C_Enable.

Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 430 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_EnableAnalogFilter()

__STATIC_INLINE void LL_FMPI2C_EnableAnalogFilter ( FMPI2C_TypeDef *  FMPI2Cx)

Enable Analog Noise Filter.

Note
This filter can only be programmed when the FMPI2C is disabled (PE = 0). @rmtoll CR1 ANFOFF LL_FMPI2C_EnableAnalogFilter
Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 516 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_EnableClockStretching()

__STATIC_INLINE void LL_FMPI2C_EnableClockStretching ( FMPI2C_TypeDef *  FMPI2Cx)

Enable Clock stretching.

Note
This bit can only be programmed when the FMPI2C is disabled (PE = 0). @rmtoll CR1 NOSTRETCH LL_FMPI2C_EnableClockStretching
Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 645 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_EnableDMAReq_RX()

__STATIC_INLINE void LL_FMPI2C_EnableDMAReq_RX ( FMPI2C_TypeDef *  FMPI2Cx)

Enable DMA reception requests. @rmtoll CR1 RXDMAEN LL_FMPI2C_EnableDMAReq_RX.

Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 583 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_EnableDMAReq_TX()

__STATIC_INLINE void LL_FMPI2C_EnableDMAReq_TX ( FMPI2C_TypeDef *  FMPI2Cx)

Enable DMA transmission requests. @rmtoll CR1 TXDMAEN LL_FMPI2C_EnableDMAReq_TX.

Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 550 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_EnableGeneralCall()

__STATIC_INLINE void LL_FMPI2C_EnableGeneralCall ( FMPI2C_TypeDef *  FMPI2Cx)

Enable General Call.

Note
When enabled the Address 0x00 is ACKed. @rmtoll CR1 GCEN LL_FMPI2C_EnableGeneralCall
Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 713 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_EnableOwnAddress1()

__STATIC_INLINE void LL_FMPI2C_EnableOwnAddress1 ( FMPI2C_TypeDef *  FMPI2Cx)

Enable acknowledge on Own Address1 match address. @rmtoll OAR1 OA1EN LL_FMPI2C_EnableOwnAddress1.

Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 791 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_EnableOwnAddress2()

__STATIC_INLINE void LL_FMPI2C_EnableOwnAddress2 ( FMPI2C_TypeDef *  FMPI2Cx)

Enable acknowledge on Own Address2 match address. @rmtoll OAR2 OA2EN LL_FMPI2C_EnableOwnAddress2.

Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 847 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_EnableSlaveByteControl()

__STATIC_INLINE void LL_FMPI2C_EnableSlaveByteControl ( FMPI2C_TypeDef *  FMPI2Cx)

Enable hardware byte control in slave mode. @rmtoll CR1 SBC LL_FMPI2C_EnableSlaveByteControl.

Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 679 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_EnableSMBusAlert()

__STATIC_INLINE void LL_FMPI2C_EnableSMBusAlert ( FMPI2C_TypeDef *  FMPI2Cx)

Enable SMBus alert (Host or Device mode)

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx 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. @rmtoll CR1 ALERTEN LL_FMPI2C_EnableSMBusAlert
Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 993 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_EnableSMBusPEC()

__STATIC_INLINE void LL_FMPI2C_EnableSMBusPEC ( FMPI2C_TypeDef *  FMPI2Cx)

Enable SMBus Packet Error Calculation (PEC).

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll CR1 PECEN LL_FMPI2C_EnableSMBusPEC
Parameters
FMPI2CxFMPI2C Instance.
Return values
None

Definition at line 1037 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_EnableSMBusTimeout()

__STATIC_INLINE void LL_FMPI2C_EnableSMBusTimeout ( FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  ClockTimeout 
)

Enable the SMBus Clock Timeout.

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll TIMEOUTR TIMOUTEN LL_FMPI2C_EnableSMBusTimeout
TIMEOUTR TEXTEN LL_FMPI2C_EnableSMBusTimeout
Parameters
FMPI2CxFMPI2C Instance.
ClockTimeoutThis parameter can be one of the following values:
  • LL_FMPI2C_FMPSMBUS_TIMEOUTA
  • LL_FMPI2C_FMPSMBUS_TIMEOUTB
  • LL_FMPI2C_FMPSMBUS_ALL_TIMEOUT
Return values
None

Definition at line 1192 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_GetClockHighPeriod()

__STATIC_INLINE uint32_t LL_FMPI2C_GetClockHighPeriod ( const FMPI2C_TypeDef *  FMPI2Cx)

Get the SCL high period setting. @rmtoll TIMINGR SCLH LL_FMPI2C_GetClockHighPeriod.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Valuebetween Min_Data=0x00 and Max_Data=0xFF

Definition at line 916 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_GetClockLowPeriod()

__STATIC_INLINE uint32_t LL_FMPI2C_GetClockLowPeriod ( const FMPI2C_TypeDef *  FMPI2Cx)

Get the SCL low period setting. @rmtoll TIMINGR SCLL LL_FMPI2C_GetClockLowPeriod.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Valuebetween Min_Data=0x00 and Max_Data=0xFF

Definition at line 905 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_GetDataHoldTime()

__STATIC_INLINE uint32_t LL_FMPI2C_GetDataHoldTime ( const FMPI2C_TypeDef *  FMPI2Cx)

Get the SDA hold time. @rmtoll TIMINGR SDADEL LL_FMPI2C_GetDataHoldTime.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Valuebetween Min_Data=0x0 and Max_Data=0xF

Definition at line 927 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_GetDataSetupTime()

__STATIC_INLINE uint32_t LL_FMPI2C_GetDataSetupTime ( const FMPI2C_TypeDef *  FMPI2Cx)

Get the SDA setup time. @rmtoll TIMINGR SCLDEL LL_FMPI2C_GetDataSetupTime.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Valuebetween Min_Data=0x0 and Max_Data=0xF

Definition at line 938 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_GetDigitalFilter()

__STATIC_INLINE uint32_t LL_FMPI2C_GetDigitalFilter ( const FMPI2C_TypeDef *  FMPI2Cx)

Get the current Digital Noise Filter configuration. @rmtoll CR1 DNF LL_FMPI2C_GetDigitalFilter.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Valuebetween Min_Data=0x0 and Max_Data=0xF

Definition at line 504 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_GetMasterAddressingMode()

__STATIC_INLINE uint32_t LL_FMPI2C_GetMasterAddressingMode ( const FMPI2C_TypeDef *  FMPI2Cx)

Get the Master addressing mode. @rmtoll CR2 ADD10 LL_FMPI2C_GetMasterAddressingMode.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Returnedvalue can be one of the following values:
  • LL_FMPI2C_ADDRESSING_MODE_7BIT
  • LL_FMPI2C_ADDRESSING_MODE_10BIT

Definition at line 764 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_GetMode()

__STATIC_INLINE uint32_t LL_FMPI2C_GetMode ( const FMPI2C_TypeDef *  FMPI2Cx)

Get peripheral mode.

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll CR1 SMBHEN LL_FMPI2C_GetMode
CR1 SMBDEN LL_FMPI2C_GetMode
Parameters
FMPI2CxFMPI2C Instance.
Return values
Returnedvalue can be one of the following values:
  • LL_FMPI2C_MODE_I2C
  • LL_FMPI2C_MODE_SMBUS_HOST
  • LL_FMPI2C_MODE_SMBUS_DEVICE
  • LL_FMPI2C_MODE_SMBUS_DEVICE_ARP

Definition at line 975 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_GetSMBusTimeoutA()

__STATIC_INLINE uint32_t LL_FMPI2C_GetSMBusTimeoutA ( const FMPI2C_TypeDef *  FMPI2Cx)

Get the SMBus Clock TimeoutA setting.

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll TIMEOUTR TIMEOUTA LL_FMPI2C_GetSMBusTimeoutA
Parameters
FMPI2CxFMPI2C Instance.
Return values
Valuebetween Min_Data=0 and Max_Data=0xFFF

Definition at line 1114 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_GetSMBusTimeoutAMode()

__STATIC_INLINE uint32_t LL_FMPI2C_GetSMBusTimeoutAMode ( const FMPI2C_TypeDef *  FMPI2Cx)

Get the SMBus Clock TimeoutA mode.

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll TIMEOUTR TIDLE LL_FMPI2C_GetSMBusTimeoutAMode
Parameters
FMPI2CxFMPI2C Instance.
Return values
Returnedvalue can be one of the following values:
  • LL_FMPI2C_FMPSMBUS_TIMEOUTA_MODE_SCL_LOW
  • LL_FMPI2C_FMPSMBUS_TIMEOUTA_MODE_SDA_SCL_HIGH

Definition at line 1146 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_GetSMBusTimeoutB()

__STATIC_INLINE uint32_t LL_FMPI2C_GetSMBusTimeoutB ( const FMPI2C_TypeDef *  FMPI2Cx)

Get the SMBus Extended Cumulative Clock TimeoutB setting.

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll TIMEOUTR TIMEOUTB LL_FMPI2C_GetSMBusTimeoutB
Parameters
FMPI2CxFMPI2C Instance.
Return values
Valuebetween Min_Data=0 and Max_Data=0xFFF

Definition at line 1174 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_GetTimingPrescaler()

__STATIC_INLINE uint32_t LL_FMPI2C_GetTimingPrescaler ( const FMPI2C_TypeDef *  FMPI2Cx)

Get the Timing Prescaler setting. @rmtoll TIMINGR PRESC LL_FMPI2C_GetTimingPrescaler.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Valuebetween Min_Data=0x0 and Max_Data=0xF

Definition at line 894 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabled()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabled ( const FMPI2C_TypeDef *  FMPI2Cx)

Check if the FMPI2C peripheral is enabled or disabled. @rmtoll CR1 PE LL_FMPI2C_IsEnabled.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 455 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabledAnalogFilter()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledAnalogFilter ( const FMPI2C_TypeDef *  FMPI2Cx)

Check if Analog Noise Filter is enabled or disabled. @rmtoll CR1 ANFOFF LL_FMPI2C_IsEnabledAnalogFilter.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 539 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabledClockStretching()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledClockStretching ( const FMPI2C_TypeDef *  FMPI2Cx)

Check if Clock stretching is enabled or disabled. @rmtoll CR1 NOSTRETCH LL_FMPI2C_IsEnabledClockStretching.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 668 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabledDMAReq_RX()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledDMAReq_RX ( const FMPI2C_TypeDef *  FMPI2Cx)

Check if DMA reception requests are enabled or disabled. @rmtoll CR1 RXDMAEN LL_FMPI2C_IsEnabledDMAReq_RX.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 605 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabledDMAReq_TX()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledDMAReq_TX ( const FMPI2C_TypeDef *  FMPI2Cx)

Check if DMA transmission requests are enabled or disabled. @rmtoll CR1 TXDMAEN LL_FMPI2C_IsEnabledDMAReq_TX.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 572 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabledGeneralCall()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledGeneralCall ( const FMPI2C_TypeDef *  FMPI2Cx)

Check if General Call is enabled or disabled. @rmtoll CR1 GCEN LL_FMPI2C_IsEnabledGeneralCall.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 736 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabledOwnAddress1()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledOwnAddress1 ( const FMPI2C_TypeDef *  FMPI2Cx)

Check if Own Address1 acknowledge is enabled or disabled. @rmtoll OAR1 OA1EN LL_FMPI2C_IsEnabledOwnAddress1.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 813 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabledOwnAddress2()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledOwnAddress2 ( const FMPI2C_TypeDef *  FMPI2Cx)

Check if Own Address1 acknowledge is enabled or disabled. @rmtoll OAR2 OA2EN LL_FMPI2C_IsEnabledOwnAddress2.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 869 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabledSlaveByteControl()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledSlaveByteControl ( const FMPI2C_TypeDef *  FMPI2Cx)

Check if hardware byte control in slave mode is enabled or disabled. @rmtoll CR1 SBC LL_FMPI2C_IsEnabledSlaveByteControl.

Parameters
FMPI2CxFMPI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 701 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabledSMBusAlert()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledSMBusAlert ( const FMPI2C_TypeDef *  FMPI2Cx)

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

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll CR1 ALERTEN LL_FMPI2C_IsEnabledSMBusAlert
Parameters
FMPI2CxFMPI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1024 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabledSMBusPEC()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledSMBusPEC ( const FMPI2C_TypeDef *  FMPI2Cx)

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

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll CR1 PECEN LL_FMPI2C_IsEnabledSMBusPEC
Parameters
FMPI2CxFMPI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1063 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_IsEnabledSMBusTimeout()

__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledSMBusTimeout ( const FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  ClockTimeout 
)

Check if the SMBus Clock Timeout is enabled or disabled.

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll TIMEOUTR TIMOUTEN LL_FMPI2C_IsEnabledSMBusTimeout
TIMEOUTR TEXTEN LL_FMPI2C_IsEnabledSMBusTimeout
Parameters
FMPI2CxFMPI2C Instance.
ClockTimeoutThis parameter can be one of the following values:
  • LL_FMPI2C_FMPSMBUS_TIMEOUTA
  • LL_FMPI2C_FMPSMBUS_TIMEOUTB
  • LL_FMPI2C_FMPSMBUS_ALL_TIMEOUT
Return values
Stateof bit (1 or 0).

Definition at line 1228 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_SetDigitalFilter()

__STATIC_INLINE void LL_FMPI2C_SetDigitalFilter ( FMPI2C_TypeDef *  FMPI2Cx,
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 FMPI2C is disabled (PE = 0). @rmtoll CR1 DNF LL_FMPI2C_SetDigitalFilter
Parameters
FMPI2CxFMPI2C 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*tfmpi2cclk). This parameter is used to configure the digital noise filter on SDA and SCL input. The digital filter will filter spikes with a length of up to DNF[3:0]*tfmpi2cclk.
Return values
None

Definition at line 493 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_SetMasterAddressingMode()

__STATIC_INLINE void LL_FMPI2C_SetMasterAddressingMode ( FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  AddressingMode 
)

Configure the Master to operate in 7-bit or 10-bit addressing mode.

Note
Changing this bit is not allowed, when the START bit is set. @rmtoll CR2 ADD10 LL_FMPI2C_SetMasterAddressingMode
Parameters
FMPI2CxFMPI2C Instance.
AddressingModeThis parameter can be one of the following values:
  • LL_FMPI2C_ADDRESSING_MODE_7BIT
  • LL_FMPI2C_ADDRESSING_MODE_10BIT
Return values
None

Definition at line 751 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_SetMode()

__STATIC_INLINE void LL_FMPI2C_SetMode ( FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  PeripheralMode 
)

Configure peripheral mode.

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance. @rmtoll CR1 SMBHEN LL_FMPI2C_SetMode
CR1 SMBDEN LL_FMPI2C_SetMode
Parameters
FMPI2CxFMPI2C Instance.
PeripheralModeThis parameter can be one of the following values:
  • LL_FMPI2C_MODE_I2C
  • LL_FMPI2C_MODE_SMBUS_HOST
  • LL_FMPI2C_MODE_SMBUS_DEVICE
  • LL_FMPI2C_MODE_SMBUS_DEVICE_ARP
Return values
None

Definition at line 957 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_SetOwnAddress1()

__STATIC_INLINE void LL_FMPI2C_SetOwnAddress1 ( FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  OwnAddress1,
uint32_t  OwnAddrSize 
)

Set the Own Address1. @rmtoll OAR1 OA1 LL_FMPI2C_SetOwnAddress1
OAR1 OA1MODE LL_FMPI2C_SetOwnAddress1.

Parameters
FMPI2CxFMPI2C Instance.
OwnAddress1This parameter must be a value between Min_Data=0 and Max_Data=0x3FF.
OwnAddrSizeThis parameter can be one of the following values:
  • LL_FMPI2C_OWNADDRESS1_7BIT
  • LL_FMPI2C_OWNADDRESS1_10BIT
Return values
None

Definition at line 780 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_SetOwnAddress2()

__STATIC_INLINE void LL_FMPI2C_SetOwnAddress2 ( FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  OwnAddress2,
uint32_t  OwnAddrMask 
)

Set the 7bits Own Address2.

Note
This action has no effect if own address2 is enabled. @rmtoll OAR2 OA2 LL_FMPI2C_SetOwnAddress2
OAR2 OA2MSK LL_FMPI2C_SetOwnAddress2
Parameters
FMPI2CxFMPI2C Instance.
OwnAddress2Value between Min_Data=0 and Max_Data=0x7F.
OwnAddrMaskThis parameter can be one of the following values:
  • LL_FMPI2C_OWNADDRESS2_NOMASK
  • LL_FMPI2C_OWNADDRESS2_MASK01
  • LL_FMPI2C_OWNADDRESS2_MASK02
  • LL_FMPI2C_OWNADDRESS2_MASK03
  • LL_FMPI2C_OWNADDRESS2_MASK04
  • LL_FMPI2C_OWNADDRESS2_MASK05
  • LL_FMPI2C_OWNADDRESS2_MASK06
  • LL_FMPI2C_OWNADDRESS2_MASK07
Return values
None

Definition at line 836 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_SetSMBusTimeoutA()

__STATIC_INLINE void LL_FMPI2C_SetSMBusTimeoutA ( FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  TimeoutA 
)

Configure the SMBus Clock TimeoutA (SCL low timeout or SCL and SDA high timeout depends on TimeoutA mode).

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance.
These bits can only be programmed when TimeoutA is disabled. @rmtoll TIMEOUTR TIMEOUTA LL_FMPI2C_SetSMBusTimeoutA
Parameters
FMPI2CxFMPI2C Instance.
TimeoutAThis parameter must be a value between Min_Data=0 and Max_Data=0xFFF.
Return values
None

Definition at line 1101 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_SetSMBusTimeoutAMode()

__STATIC_INLINE void LL_FMPI2C_SetSMBusTimeoutAMode ( FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  TimeoutAMode 
)

Set the SMBus Clock TimeoutA mode.

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance.
This bit can only be programmed when TimeoutA is disabled. @rmtoll TIMEOUTR TIDLE LL_FMPI2C_SetSMBusTimeoutAMode
Parameters
FMPI2CxFMPI2C Instance.
TimeoutAModeThis parameter can be one of the following values:
  • LL_FMPI2C_FMPSMBUS_TIMEOUTA_MODE_SCL_LOW
  • LL_FMPI2C_FMPSMBUS_TIMEOUTA_MODE_SDA_SCL_HIGH
Return values
None

Definition at line 1131 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_SetSMBusTimeoutB()

__STATIC_INLINE void LL_FMPI2C_SetSMBusTimeoutB ( FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  TimeoutB 
)

Configure the SMBus Extended Cumulative Clock TimeoutB (Master or Slave mode).

Note
The macro IS_FMPSMBUS_ALL_INSTANCE(FMPI2Cx) can be used to check whether or not SMBus feature is supported by the FMPI2Cx Instance.
These bits can only be programmed when TimeoutB is disabled. @rmtoll TIMEOUTR TIMEOUTB LL_FMPI2C_SetSMBusTimeoutB
Parameters
FMPI2CxFMPI2C Instance.
TimeoutBThis parameter must be a value between Min_Data=0 and Max_Data=0xFFF.
Return values
None

Definition at line 1161 of file stm32f4xx_ll_fmpi2c.h.

◆ LL_FMPI2C_SetTiming()

__STATIC_INLINE void LL_FMPI2C_SetTiming ( FMPI2C_TypeDef *  FMPI2Cx,
uint32_t  Timing 
)

Configure the SDA setup, hold time and the SCL high, low period.

Note
This bit can only be programmed when the FMPI2C is disabled (PE = 0). @rmtoll TIMINGR TIMINGR LL_FMPI2C_SetTiming
Parameters
FMPI2CxFMPI2C Instance.
TimingThis parameter must be a value between Min_Data=0 and Max_Data=0xFFFFFFFF.
Note
This parameter is computed with the STM32CubeMX Tool.
Return values
None

Definition at line 883 of file stm32f4xx_ll_fmpi2c.h.