STM32F4xx_HAL_Driver
1.8.3
|
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... | |
__STATIC_INLINE void LL_FMPI2C_ConfigFilters | ( | FMPI2C_TypeDef * | FMPI2Cx, |
uint32_t | AnalogFilter, | ||
uint32_t | DigitalFilter | ||
) |
Configure Noise Filters (Analog and Digital).
FMPI2Cx | FMPI2C Instance. |
AnalogFilter | This parameter can be one of the following values:
|
DigitalFilter | This 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. |
None |
Definition at line 476 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_ConfigSMBusTimeout | ( | FMPI2C_TypeDef * | FMPI2Cx, |
uint32_t | TimeoutA, | ||
uint32_t | TimeoutAMode, | ||
uint32_t | TimeoutB | ||
) |
Configure the SMBus Clock Timeout.
FMPI2Cx | FMPI2C Instance. |
TimeoutA | This parameter must be a value between Min_Data=0 and Max_Data=0xFFF. |
TimeoutAMode | This parameter can be one of the following values:
|
TimeoutB |
None |
Definition at line 1084 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_Disable | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Disable FMPI2C peripheral (PE = 0).
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 444 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_DisableAnalogFilter | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Disable Analog Noise Filter.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 528 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_DisableClockStretching | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Disable Clock stretching.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 657 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_DisableDMAReq_RX | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Disable DMA reception requests. @rmtoll CR1 RXDMAEN LL_FMPI2C_DisableDMAReq_RX.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 594 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_DisableDMAReq_TX | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Disable DMA transmission requests. @rmtoll CR1 TXDMAEN LL_FMPI2C_DisableDMAReq_TX.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 561 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_DisableGeneralCall | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Disable General Call.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 725 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_DisableOwnAddress1 | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Disable acknowledge on Own Address1 match address. @rmtoll OAR1 OA1EN LL_FMPI2C_DisableOwnAddress1.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 802 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_DisableOwnAddress2 | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Disable acknowledge on Own Address2 match address. @rmtoll OAR2 OA2EN LL_FMPI2C_DisableOwnAddress2.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 858 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_DisableSlaveByteControl | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Disable hardware byte control in slave mode. @rmtoll CR1 SBC LL_FMPI2C_DisableSlaveByteControl.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 690 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_DisableSMBusAlert | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Disable SMBus alert (Host or Device mode)
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 1011 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_DisableSMBusPEC | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Disable SMBus Packet Error Calculation (PEC).
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 1050 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_DisableSMBusTimeout | ( | FMPI2C_TypeDef * | FMPI2Cx, |
uint32_t | ClockTimeout | ||
) |
Disable the SMBus Clock Timeout.
FMPI2Cx | FMPI2C Instance. |
ClockTimeout | This parameter can be one of the following values:
|
None |
Definition at line 1210 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance |
Direction | This parameter can be one of the following values:
|
Address | of data register |
Definition at line 620 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_Enable | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Enable FMPI2C peripheral (PE = 1). @rmtoll CR1 PE LL_FMPI2C_Enable.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 430 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_EnableAnalogFilter | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Enable Analog Noise Filter.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 516 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_EnableClockStretching | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Enable Clock stretching.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 645 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_EnableDMAReq_RX | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Enable DMA reception requests. @rmtoll CR1 RXDMAEN LL_FMPI2C_EnableDMAReq_RX.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 583 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_EnableDMAReq_TX | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Enable DMA transmission requests. @rmtoll CR1 TXDMAEN LL_FMPI2C_EnableDMAReq_TX.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 550 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_EnableGeneralCall | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Enable General Call.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 713 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_EnableOwnAddress1 | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Enable acknowledge on Own Address1 match address. @rmtoll OAR1 OA1EN LL_FMPI2C_EnableOwnAddress1.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 791 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_EnableOwnAddress2 | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Enable acknowledge on Own Address2 match address. @rmtoll OAR2 OA2EN LL_FMPI2C_EnableOwnAddress2.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 847 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_EnableSlaveByteControl | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Enable hardware byte control in slave mode. @rmtoll CR1 SBC LL_FMPI2C_EnableSlaveByteControl.
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 679 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_EnableSMBusAlert | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Enable SMBus alert (Host or Device mode)
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 993 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_EnableSMBusPEC | ( | FMPI2C_TypeDef * | FMPI2Cx | ) |
Enable SMBus Packet Error Calculation (PEC).
FMPI2Cx | FMPI2C Instance. |
None |
Definition at line 1037 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_EnableSMBusTimeout | ( | FMPI2C_TypeDef * | FMPI2Cx, |
uint32_t | ClockTimeout | ||
) |
Enable the SMBus Clock Timeout.
FMPI2Cx | FMPI2C Instance. |
ClockTimeout | This parameter can be one of the following values:
|
None |
Definition at line 1192 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_GetClockHighPeriod | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Get the SCL high period setting. @rmtoll TIMINGR SCLH LL_FMPI2C_GetClockHighPeriod.
FMPI2Cx | FMPI2C Instance. |
Value | between Min_Data=0x00 and Max_Data=0xFF |
Definition at line 916 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_GetClockLowPeriod | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Get the SCL low period setting. @rmtoll TIMINGR SCLL LL_FMPI2C_GetClockLowPeriod.
FMPI2Cx | FMPI2C Instance. |
Value | between Min_Data=0x00 and Max_Data=0xFF |
Definition at line 905 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_GetDataHoldTime | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Get the SDA hold time. @rmtoll TIMINGR SDADEL LL_FMPI2C_GetDataHoldTime.
FMPI2Cx | FMPI2C Instance. |
Value | between Min_Data=0x0 and Max_Data=0xF |
Definition at line 927 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_GetDataSetupTime | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Get the SDA setup time. @rmtoll TIMINGR SCLDEL LL_FMPI2C_GetDataSetupTime.
FMPI2Cx | FMPI2C Instance. |
Value | between Min_Data=0x0 and Max_Data=0xF |
Definition at line 938 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_GetDigitalFilter | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Get the current Digital Noise Filter configuration. @rmtoll CR1 DNF LL_FMPI2C_GetDigitalFilter.
FMPI2Cx | FMPI2C Instance. |
Value | between Min_Data=0x0 and Max_Data=0xF |
Definition at line 504 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_GetMasterAddressingMode | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Get the Master addressing mode. @rmtoll CR2 ADD10 LL_FMPI2C_GetMasterAddressingMode.
FMPI2Cx | FMPI2C Instance. |
Returned | value can be one of the following values:
|
Definition at line 764 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_GetMode | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Get peripheral mode.
FMPI2Cx | FMPI2C Instance. |
Returned | value can be one of the following values:
|
Definition at line 975 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_GetSMBusTimeoutA | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Get the SMBus Clock TimeoutA setting.
FMPI2Cx | FMPI2C Instance. |
Value | between Min_Data=0 and Max_Data=0xFFF |
Definition at line 1114 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_GetSMBusTimeoutAMode | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Get the SMBus Clock TimeoutA mode.
FMPI2Cx | FMPI2C Instance. |
Returned | value can be one of the following values:
|
Definition at line 1146 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_GetSMBusTimeoutB | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Get the SMBus Extended Cumulative Clock TimeoutB setting.
FMPI2Cx | FMPI2C Instance. |
Value | between Min_Data=0 and Max_Data=0xFFF |
Definition at line 1174 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_GetTimingPrescaler | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Get the Timing Prescaler setting. @rmtoll TIMINGR PRESC LL_FMPI2C_GetTimingPrescaler.
FMPI2Cx | FMPI2C Instance. |
Value | between Min_Data=0x0 and Max_Data=0xF |
Definition at line 894 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance. |
State | of bit (1 or 0). |
Definition at line 455 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance. |
State | of bit (1 or 0). |
Definition at line 539 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance. |
State | of bit (1 or 0). |
Definition at line 668 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance. |
State | of bit (1 or 0). |
Definition at line 605 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance. |
State | of bit (1 or 0). |
Definition at line 572 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance. |
State | of bit (1 or 0). |
Definition at line 736 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance. |
State | of bit (1 or 0). |
Definition at line 813 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance. |
State | of bit (1 or 0). |
Definition at line 869 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance. |
State | of bit (1 or 0). |
Definition at line 701 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledSMBusAlert | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Check if SMBus alert (Host or Device mode) is enabled or disabled.
FMPI2Cx | FMPI2C Instance. |
State | of bit (1 or 0). |
Definition at line 1024 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledSMBusPEC | ( | const FMPI2C_TypeDef * | FMPI2Cx | ) |
Check if SMBus Packet Error Calculation (PEC) is enabled or disabled.
FMPI2Cx | FMPI2C Instance. |
State | of bit (1 or 0). |
Definition at line 1063 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE uint32_t LL_FMPI2C_IsEnabledSMBusTimeout | ( | const FMPI2C_TypeDef * | FMPI2Cx, |
uint32_t | ClockTimeout | ||
) |
Check if the SMBus Clock Timeout is enabled or disabled.
FMPI2Cx | FMPI2C Instance. |
ClockTimeout | This parameter can be one of the following values:
|
State | of bit (1 or 0). |
Definition at line 1228 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_SetDigitalFilter | ( | FMPI2C_TypeDef * | FMPI2Cx, |
uint32_t | DigitalFilter | ||
) |
Configure Digital Noise Filter.
FMPI2Cx | FMPI2C Instance. |
DigitalFilter | This 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. |
None |
Definition at line 493 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance. |
AddressingMode | This parameter can be one of the following values:
|
None |
Definition at line 751 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_SetMode | ( | FMPI2C_TypeDef * | FMPI2Cx, |
uint32_t | PeripheralMode | ||
) |
Configure peripheral mode.
FMPI2Cx | FMPI2C Instance. |
PeripheralMode | This parameter can be one of the following values:
|
None |
Definition at line 957 of file stm32f4xx_ll_fmpi2c.h.
__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.
FMPI2Cx | FMPI2C Instance. |
OwnAddress1 | This parameter must be a value between Min_Data=0 and Max_Data=0x3FF. |
OwnAddrSize | This parameter can be one of the following values:
|
None |
Definition at line 780 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_SetOwnAddress2 | ( | FMPI2C_TypeDef * | FMPI2Cx, |
uint32_t | OwnAddress2, | ||
uint32_t | OwnAddrMask | ||
) |
Set the 7bits Own Address2.
FMPI2Cx | FMPI2C Instance. |
OwnAddress2 | Value between Min_Data=0 and Max_Data=0x7F. |
OwnAddrMask | This parameter can be one of the following values:
|
None |
Definition at line 836 of file stm32f4xx_ll_fmpi2c.h.
__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).
FMPI2Cx | FMPI2C Instance. |
TimeoutA | This parameter must be a value between Min_Data=0 and Max_Data=0xFFF. |
None |
Definition at line 1101 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_SetSMBusTimeoutAMode | ( | FMPI2C_TypeDef * | FMPI2Cx, |
uint32_t | TimeoutAMode | ||
) |
Set the SMBus Clock TimeoutA mode.
FMPI2Cx | FMPI2C Instance. |
TimeoutAMode | This parameter can be one of the following values:
|
None |
Definition at line 1131 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_SetSMBusTimeoutB | ( | FMPI2C_TypeDef * | FMPI2Cx, |
uint32_t | TimeoutB | ||
) |
Configure the SMBus Extended Cumulative Clock TimeoutB (Master or Slave mode).
FMPI2Cx | FMPI2C Instance. |
TimeoutB | This parameter must be a value between Min_Data=0 and Max_Data=0xFFF. |
None |
Definition at line 1161 of file stm32f4xx_ll_fmpi2c.h.
__STATIC_INLINE void LL_FMPI2C_SetTiming | ( | FMPI2C_TypeDef * | FMPI2Cx, |
uint32_t | Timing | ||
) |
Configure the SDA setup, hold time and the SCL high, low period.
FMPI2Cx | FMPI2C Instance. |
Timing | This parameter must be a value between Min_Data=0 and Max_Data=0xFFFFFFFF. |
None |
Definition at line 883 of file stm32f4xx_ll_fmpi2c.h.