|
STM32L4xx_HAL_Driver
1.14.0
|
Functions | |
| __STATIC_INLINE void | LL_I2C_Enable (I2C_TypeDef *I2Cx) |
| Enable I2C peripheral (PE = 1). CR1 PE LL_I2C_Enable. More... | |
| __STATIC_INLINE void | LL_I2C_Disable (I2C_TypeDef *I2Cx) |
| Disable I2C peripheral (PE = 0). More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabled (I2C_TypeDef *I2Cx) |
| Check if the I2C peripheral is enabled or disabled. CR1 PE LL_I2C_IsEnabled. More... | |
| __STATIC_INLINE void | LL_I2C_ConfigFilters (I2C_TypeDef *I2Cx, uint32_t AnalogFilter, uint32_t DigitalFilter) |
| Configure Noise Filters (Analog and Digital). More... | |
| __STATIC_INLINE void | LL_I2C_SetDigitalFilter (I2C_TypeDef *I2Cx, uint32_t DigitalFilter) |
| Configure Digital Noise Filter. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetDigitalFilter (I2C_TypeDef *I2Cx) |
| Get the current Digital Noise Filter configuration. CR1 DNF LL_I2C_GetDigitalFilter. More... | |
| __STATIC_INLINE void | LL_I2C_EnableAnalogFilter (I2C_TypeDef *I2Cx) |
| Enable Analog Noise Filter. More... | |
| __STATIC_INLINE void | LL_I2C_DisableAnalogFilter (I2C_TypeDef *I2Cx) |
| Disable Analog Noise Filter. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledAnalogFilter (I2C_TypeDef *I2Cx) |
| Check if Analog Noise Filter is enabled or disabled. CR1 ANFOFF LL_I2C_IsEnabledAnalogFilter. More... | |
| __STATIC_INLINE void | LL_I2C_EnableDMAReq_TX (I2C_TypeDef *I2Cx) |
| Enable DMA transmission requests. CR1 TXDMAEN LL_I2C_EnableDMAReq_TX. More... | |
| __STATIC_INLINE void | LL_I2C_DisableDMAReq_TX (I2C_TypeDef *I2Cx) |
| Disable DMA transmission requests. CR1 TXDMAEN LL_I2C_DisableDMAReq_TX. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledDMAReq_TX (I2C_TypeDef *I2Cx) |
| Check if DMA transmission requests are enabled or disabled. CR1 TXDMAEN LL_I2C_IsEnabledDMAReq_TX. More... | |
| __STATIC_INLINE void | LL_I2C_EnableDMAReq_RX (I2C_TypeDef *I2Cx) |
| Enable DMA reception requests. CR1 RXDMAEN LL_I2C_EnableDMAReq_RX. More... | |
| __STATIC_INLINE void | LL_I2C_DisableDMAReq_RX (I2C_TypeDef *I2Cx) |
| Disable DMA reception requests. CR1 RXDMAEN LL_I2C_DisableDMAReq_RX. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledDMAReq_RX (I2C_TypeDef *I2Cx) |
| Check if DMA reception requests are enabled or disabled. CR1 RXDMAEN LL_I2C_IsEnabledDMAReq_RX. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_DMA_GetRegAddr (I2C_TypeDef *I2Cx, uint32_t Direction) |
| Get the data register address used for DMA transfer TXDR TXDATA LL_I2C_DMA_GetRegAddr RXDR RXDATA LL_I2C_DMA_GetRegAddr. More... | |
| __STATIC_INLINE void | LL_I2C_EnableClockStretching (I2C_TypeDef *I2Cx) |
| Enable Clock stretching. More... | |
| __STATIC_INLINE void | LL_I2C_DisableClockStretching (I2C_TypeDef *I2Cx) |
| Disable Clock stretching. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledClockStretching (I2C_TypeDef *I2Cx) |
| Check if Clock stretching is enabled or disabled. CR1 NOSTRETCH LL_I2C_IsEnabledClockStretching. More... | |
| __STATIC_INLINE void | LL_I2C_EnableSlaveByteControl (I2C_TypeDef *I2Cx) |
| Enable hardware byte control in slave mode. CR1 SBC LL_I2C_EnableSlaveByteControl. More... | |
| __STATIC_INLINE void | LL_I2C_DisableSlaveByteControl (I2C_TypeDef *I2Cx) |
| Disable hardware byte control in slave mode. CR1 SBC LL_I2C_DisableSlaveByteControl. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledSlaveByteControl (I2C_TypeDef *I2Cx) |
| Check if hardware byte control in slave mode is enabled or disabled. CR1 SBC LL_I2C_IsEnabledSlaveByteControl. More... | |
| __STATIC_INLINE void | LL_I2C_EnableWakeUpFromStop (I2C_TypeDef *I2Cx) |
| Enable Wakeup from STOP. More... | |
| __STATIC_INLINE void | LL_I2C_DisableWakeUpFromStop (I2C_TypeDef *I2Cx) |
| Disable Wakeup from STOP. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledWakeUpFromStop (I2C_TypeDef *I2Cx) |
| Check if Wakeup from STOP is enabled or disabled. More... | |
| __STATIC_INLINE void | LL_I2C_EnableGeneralCall (I2C_TypeDef *I2Cx) |
| Enable General Call. More... | |
| __STATIC_INLINE void | LL_I2C_DisableGeneralCall (I2C_TypeDef *I2Cx) |
| Disable General Call. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledGeneralCall (I2C_TypeDef *I2Cx) |
| Check if General Call is enabled or disabled. CR1 GCEN LL_I2C_IsEnabledGeneralCall. More... | |
| __STATIC_INLINE void | LL_I2C_SetMasterAddressingMode (I2C_TypeDef *I2Cx, uint32_t AddressingMode) |
| Configure the Master to operate in 7-bit or 10-bit addressing mode. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetMasterAddressingMode (I2C_TypeDef *I2Cx) |
| Get the Master addressing mode. CR2 ADD10 LL_I2C_GetMasterAddressingMode. More... | |
| __STATIC_INLINE void | LL_I2C_SetOwnAddress1 (I2C_TypeDef *I2Cx, uint32_t OwnAddress1, uint32_t OwnAddrSize) |
| Set the Own Address1. OAR1 OA1 LL_I2C_SetOwnAddress1 OAR1 OA1MODE LL_I2C_SetOwnAddress1. More... | |
| __STATIC_INLINE void | LL_I2C_EnableOwnAddress1 (I2C_TypeDef *I2Cx) |
| Enable acknowledge on Own Address1 match address. OAR1 OA1EN LL_I2C_EnableOwnAddress1. More... | |
| __STATIC_INLINE void | LL_I2C_DisableOwnAddress1 (I2C_TypeDef *I2Cx) |
| Disable acknowledge on Own Address1 match address. OAR1 OA1EN LL_I2C_DisableOwnAddress1. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledOwnAddress1 (I2C_TypeDef *I2Cx) |
| Check if Own Address1 acknowledge is enabled or disabled. OAR1 OA1EN LL_I2C_IsEnabledOwnAddress1. More... | |
| __STATIC_INLINE void | LL_I2C_SetOwnAddress2 (I2C_TypeDef *I2Cx, uint32_t OwnAddress2, uint32_t OwnAddrMask) |
| Set the 7bits Own Address2. More... | |
| __STATIC_INLINE void | LL_I2C_EnableOwnAddress2 (I2C_TypeDef *I2Cx) |
| Enable acknowledge on Own Address2 match address. OAR2 OA2EN LL_I2C_EnableOwnAddress2. More... | |
| __STATIC_INLINE void | LL_I2C_DisableOwnAddress2 (I2C_TypeDef *I2Cx) |
| Disable acknowledge on Own Address2 match address. OAR2 OA2EN LL_I2C_DisableOwnAddress2. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledOwnAddress2 (I2C_TypeDef *I2Cx) |
| Check if Own Address1 acknowledge is enabled or disabled. OAR2 OA2EN LL_I2C_IsEnabledOwnAddress2. More... | |
| __STATIC_INLINE void | LL_I2C_SetTiming (I2C_TypeDef *I2Cx, uint32_t Timing) |
| Configure the SDA setup, hold time and the SCL high, low period. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetTimingPrescaler (I2C_TypeDef *I2Cx) |
| Get the Timing Prescaler setting. TIMINGR PRESC LL_I2C_GetTimingPrescaler. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetClockLowPeriod (I2C_TypeDef *I2Cx) |
| Get the SCL low period setting. TIMINGR SCLL LL_I2C_GetClockLowPeriod. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetClockHighPeriod (I2C_TypeDef *I2Cx) |
| Get the SCL high period setting. TIMINGR SCLH LL_I2C_GetClockHighPeriod. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetDataHoldTime (I2C_TypeDef *I2Cx) |
| Get the SDA hold time. TIMINGR SDADEL LL_I2C_GetDataHoldTime. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetDataSetupTime (I2C_TypeDef *I2Cx) |
| Get the SDA setup time. TIMINGR SCLDEL LL_I2C_GetDataSetupTime. More... | |
| __STATIC_INLINE void | LL_I2C_SetMode (I2C_TypeDef *I2Cx, uint32_t PeripheralMode) |
| Configure peripheral mode. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetMode (I2C_TypeDef *I2Cx) |
| Get peripheral mode. More... | |
| __STATIC_INLINE void | LL_I2C_EnableSMBusAlert (I2C_TypeDef *I2Cx) |
| Enable SMBus alert (Host or Device mode) More... | |
| __STATIC_INLINE void | LL_I2C_DisableSMBusAlert (I2C_TypeDef *I2Cx) |
| Disable SMBus alert (Host or Device mode) More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledSMBusAlert (I2C_TypeDef *I2Cx) |
| Check if SMBus alert (Host or Device mode) is enabled or disabled. More... | |
| __STATIC_INLINE void | LL_I2C_EnableSMBusPEC (I2C_TypeDef *I2Cx) |
| Enable SMBus Packet Error Calculation (PEC). More... | |
| __STATIC_INLINE void | LL_I2C_DisableSMBusPEC (I2C_TypeDef *I2Cx) |
| Disable SMBus Packet Error Calculation (PEC). More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledSMBusPEC (I2C_TypeDef *I2Cx) |
| Check if SMBus Packet Error Calculation (PEC) is enabled or disabled. More... | |
| __STATIC_INLINE void | LL_I2C_ConfigSMBusTimeout (I2C_TypeDef *I2Cx, uint32_t TimeoutA, uint32_t TimeoutAMode, uint32_t TimeoutB) |
| Configure the SMBus Clock Timeout. More... | |
| __STATIC_INLINE void | LL_I2C_SetSMBusTimeoutA (I2C_TypeDef *I2Cx, 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_I2C_GetSMBusTimeoutA (I2C_TypeDef *I2Cx) |
| Get the SMBus Clock TimeoutA setting. More... | |
| __STATIC_INLINE void | LL_I2C_SetSMBusTimeoutAMode (I2C_TypeDef *I2Cx, uint32_t TimeoutAMode) |
| Set the SMBus Clock TimeoutA mode. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetSMBusTimeoutAMode (I2C_TypeDef *I2Cx) |
| Get the SMBus Clock TimeoutA mode. More... | |
| __STATIC_INLINE void | LL_I2C_SetSMBusTimeoutB (I2C_TypeDef *I2Cx, uint32_t TimeoutB) |
| Configure the SMBus Extended Cumulative Clock TimeoutB (Master or Slave mode). More... | |
| __STATIC_INLINE uint32_t | LL_I2C_GetSMBusTimeoutB (I2C_TypeDef *I2Cx) |
| Get the SMBus Extented Cumulative Clock TimeoutB setting. More... | |
| __STATIC_INLINE void | LL_I2C_EnableSMBusTimeout (I2C_TypeDef *I2Cx, uint32_t ClockTimeout) |
| Enable the SMBus Clock Timeout. More... | |
| __STATIC_INLINE void | LL_I2C_DisableSMBusTimeout (I2C_TypeDef *I2Cx, uint32_t ClockTimeout) |
| Disable the SMBus Clock Timeout. More... | |
| __STATIC_INLINE uint32_t | LL_I2C_IsEnabledSMBusTimeout (I2C_TypeDef *I2Cx, uint32_t ClockTimeout) |
| Check if the SMBus Clock Timeout is enabled or disabled. More... | |
| __STATIC_INLINE void LL_I2C_ConfigFilters | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | AnalogFilter, | ||
| uint32_t | DigitalFilter | ||
| ) |
Configure Noise Filters (Analog and Digital).
| I2Cx | I2C 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*ti2cclk). 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]*ti2cclk. |
| None |
Definition at line 436 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_ConfigSMBusTimeout | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | TimeoutA, | ||
| uint32_t | TimeoutAMode, | ||
| uint32_t | TimeoutB | ||
| ) |
Configure the SMBus Clock Timeout.
| I2Cx | I2C 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 1083 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_Disable | ( | I2C_TypeDef * | I2Cx | ) |
Disable I2C peripheral (PE = 0).
| I2Cx | I2C Instance. |
| None |
Definition at line 405 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableAnalogFilter | ( | I2C_TypeDef * | I2Cx | ) |
Disable Analog Noise Filter.
| I2Cx | I2C Instance. |
| None |
Definition at line 487 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableClockStretching | ( | I2C_TypeDef * | I2Cx | ) |
Disable Clock stretching.
| I2Cx | I2C Instance. |
| None |
Definition at line 616 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableDMAReq_RX | ( | I2C_TypeDef * | I2Cx | ) |
Disable DMA reception requests. CR1 RXDMAEN LL_I2C_DisableDMAReq_RX.
| I2Cx | I2C Instance. |
| None |
Definition at line 553 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableDMAReq_TX | ( | I2C_TypeDef * | I2Cx | ) |
Disable DMA transmission requests. CR1 TXDMAEN LL_I2C_DisableDMAReq_TX.
| I2Cx | I2C Instance. |
| None |
Definition at line 520 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableGeneralCall | ( | I2C_TypeDef * | I2Cx | ) |
Disable General Call.
| I2Cx | I2C Instance. |
| None |
Definition at line 724 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableOwnAddress1 | ( | I2C_TypeDef * | I2Cx | ) |
Disable acknowledge on Own Address1 match address. OAR1 OA1EN LL_I2C_DisableOwnAddress1.
| I2Cx | I2C Instance. |
| None |
Definition at line 801 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableOwnAddress2 | ( | I2C_TypeDef * | I2Cx | ) |
Disable acknowledge on Own Address2 match address. OAR2 OA2EN LL_I2C_DisableOwnAddress2.
| I2Cx | I2C Instance. |
| None |
Definition at line 857 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableSlaveByteControl | ( | I2C_TypeDef * | I2Cx | ) |
Disable hardware byte control in slave mode. CR1 SBC LL_I2C_DisableSlaveByteControl.
| I2Cx | I2C Instance. |
| None |
Definition at line 649 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableSMBusAlert | ( | I2C_TypeDef * | I2Cx | ) |
Disable SMBus alert (Host or Device mode)
| I2Cx | I2C Instance. |
| None |
Definition at line 1010 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableSMBusPEC | ( | I2C_TypeDef * | I2Cx | ) |
Disable SMBus Packet Error Calculation (PEC).
| I2Cx | I2C Instance. |
| None |
Definition at line 1049 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableSMBusTimeout | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | ClockTimeout | ||
| ) |
Disable the SMBus Clock Timeout.
| I2Cx | I2C Instance. |
| ClockTimeout | This parameter can be one of the following values:
|
| None |
Definition at line 1209 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_DisableWakeUpFromStop | ( | I2C_TypeDef * | I2Cx | ) |
Disable Wakeup from STOP.
| I2Cx | I2C Instance. |
| None |
Definition at line 687 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_DMA_GetRegAddr | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | Direction | ||
| ) |
Get the data register address used for DMA transfer TXDR TXDATA LL_I2C_DMA_GetRegAddr
RXDR RXDATA LL_I2C_DMA_GetRegAddr.
| I2Cx | I2C Instance |
| Direction | This parameter can be one of the following values:
|
| Address | of data register |
Definition at line 579 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_Enable | ( | I2C_TypeDef * | I2Cx | ) |
Enable I2C peripheral (PE = 1). CR1 PE LL_I2C_Enable.
| I2Cx | I2C Instance. |
| None |
Definition at line 391 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableAnalogFilter | ( | I2C_TypeDef * | I2Cx | ) |
Enable Analog Noise Filter.
| I2Cx | I2C Instance. |
| None |
Definition at line 475 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableClockStretching | ( | I2C_TypeDef * | I2Cx | ) |
Enable Clock stretching.
| I2Cx | I2C Instance. |
| None |
Definition at line 604 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableDMAReq_RX | ( | I2C_TypeDef * | I2Cx | ) |
Enable DMA reception requests. CR1 RXDMAEN LL_I2C_EnableDMAReq_RX.
| I2Cx | I2C Instance. |
| None |
Definition at line 542 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableDMAReq_TX | ( | I2C_TypeDef * | I2Cx | ) |
Enable DMA transmission requests. CR1 TXDMAEN LL_I2C_EnableDMAReq_TX.
| I2Cx | I2C Instance. |
| None |
Definition at line 509 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableGeneralCall | ( | I2C_TypeDef * | I2Cx | ) |
Enable General Call.
| I2Cx | I2C Instance. |
| None |
Definition at line 712 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableOwnAddress1 | ( | I2C_TypeDef * | I2Cx | ) |
Enable acknowledge on Own Address1 match address. OAR1 OA1EN LL_I2C_EnableOwnAddress1.
| I2Cx | I2C Instance. |
| None |
Definition at line 790 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableOwnAddress2 | ( | I2C_TypeDef * | I2Cx | ) |
Enable acknowledge on Own Address2 match address. OAR2 OA2EN LL_I2C_EnableOwnAddress2.
| I2Cx | I2C Instance. |
| None |
Definition at line 846 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableSlaveByteControl | ( | I2C_TypeDef * | I2Cx | ) |
Enable hardware byte control in slave mode. CR1 SBC LL_I2C_EnableSlaveByteControl.
| I2Cx | I2C Instance. |
| None |
Definition at line 638 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableSMBusAlert | ( | I2C_TypeDef * | I2Cx | ) |
Enable SMBus alert (Host or Device mode)
| I2Cx | I2C Instance. |
| None |
Definition at line 992 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableSMBusPEC | ( | I2C_TypeDef * | I2Cx | ) |
Enable SMBus Packet Error Calculation (PEC).
| I2Cx | I2C Instance. |
| None |
Definition at line 1036 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableSMBusTimeout | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | ClockTimeout | ||
| ) |
Enable the SMBus Clock Timeout.
| I2Cx | I2C Instance. |
| ClockTimeout | This parameter can be one of the following values:
|
| None |
Definition at line 1191 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_EnableWakeUpFromStop | ( | I2C_TypeDef * | I2Cx | ) |
Enable Wakeup from STOP.
| I2Cx | I2C Instance. |
| None |
Definition at line 674 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetClockHighPeriod | ( | I2C_TypeDef * | I2Cx | ) |
Get the SCL high period setting. TIMINGR SCLH LL_I2C_GetClockHighPeriod.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0x00 and Max_Data=0xFF |
Definition at line 915 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetClockLowPeriod | ( | I2C_TypeDef * | I2Cx | ) |
Get the SCL low period setting. TIMINGR SCLL LL_I2C_GetClockLowPeriod.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0x00 and Max_Data=0xFF |
Definition at line 904 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetDataHoldTime | ( | I2C_TypeDef * | I2Cx | ) |
Get the SDA hold time. TIMINGR SDADEL LL_I2C_GetDataHoldTime.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0x0 and Max_Data=0xF |
Definition at line 926 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetDataSetupTime | ( | I2C_TypeDef * | I2Cx | ) |
Get the SDA setup time. TIMINGR SCLDEL LL_I2C_GetDataSetupTime.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0x0 and Max_Data=0xF |
Definition at line 937 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetDigitalFilter | ( | I2C_TypeDef * | I2Cx | ) |
Get the current Digital Noise Filter configuration. CR1 DNF LL_I2C_GetDigitalFilter.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0x0 and Max_Data=0xF |
Definition at line 463 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetMasterAddressingMode | ( | I2C_TypeDef * | I2Cx | ) |
Get the Master addressing mode. CR2 ADD10 LL_I2C_GetMasterAddressingMode.
| I2Cx | I2C Instance. |
| Returned | value can be one of the following values:
|
Definition at line 763 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetMode | ( | I2C_TypeDef * | I2Cx | ) |
Get peripheral mode.
| I2Cx | I2C Instance. |
| Returned | value can be one of the following values:
|
Definition at line 974 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetSMBusTimeoutA | ( | I2C_TypeDef * | I2Cx | ) |
Get the SMBus Clock TimeoutA setting.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0 and Max_Data=0xFFF |
Definition at line 1113 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetSMBusTimeoutAMode | ( | I2C_TypeDef * | I2Cx | ) |
Get the SMBus Clock TimeoutA mode.
| I2Cx | I2C Instance. |
| Returned | value can be one of the following values:
|
Definition at line 1145 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetSMBusTimeoutB | ( | I2C_TypeDef * | I2Cx | ) |
Get the SMBus Extented Cumulative Clock TimeoutB setting.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0 and Max_Data=0xFFF |
Definition at line 1173 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_GetTimingPrescaler | ( | I2C_TypeDef * | I2Cx | ) |
Get the Timing Prescaler setting. TIMINGR PRESC LL_I2C_GetTimingPrescaler.
| I2Cx | I2C Instance. |
| Value | between Min_Data=0x0 and Max_Data=0xF |
Definition at line 893 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabled | ( | I2C_TypeDef * | I2Cx | ) |
Check if the I2C peripheral is enabled or disabled. CR1 PE LL_I2C_IsEnabled.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 416 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledAnalogFilter | ( | I2C_TypeDef * | I2Cx | ) |
Check if Analog Noise Filter is enabled or disabled. CR1 ANFOFF LL_I2C_IsEnabledAnalogFilter.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 498 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledClockStretching | ( | I2C_TypeDef * | I2Cx | ) |
Check if Clock stretching is enabled or disabled. CR1 NOSTRETCH LL_I2C_IsEnabledClockStretching.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 627 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledDMAReq_RX | ( | I2C_TypeDef * | I2Cx | ) |
Check if DMA reception requests are enabled or disabled. CR1 RXDMAEN LL_I2C_IsEnabledDMAReq_RX.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 564 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledDMAReq_TX | ( | I2C_TypeDef * | I2Cx | ) |
Check if DMA transmission requests are enabled or disabled. CR1 TXDMAEN LL_I2C_IsEnabledDMAReq_TX.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 531 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledGeneralCall | ( | I2C_TypeDef * | I2Cx | ) |
Check if General Call is enabled or disabled. CR1 GCEN LL_I2C_IsEnabledGeneralCall.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 735 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledOwnAddress1 | ( | I2C_TypeDef * | I2Cx | ) |
Check if Own Address1 acknowledge is enabled or disabled. OAR1 OA1EN LL_I2C_IsEnabledOwnAddress1.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 812 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledOwnAddress2 | ( | I2C_TypeDef * | I2Cx | ) |
Check if Own Address1 acknowledge is enabled or disabled. OAR2 OA2EN LL_I2C_IsEnabledOwnAddress2.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 868 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledSlaveByteControl | ( | I2C_TypeDef * | I2Cx | ) |
Check if hardware byte control in slave mode is enabled or disabled. CR1 SBC LL_I2C_IsEnabledSlaveByteControl.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 660 of file stm32l4xx_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.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 1023 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledSMBusPEC | ( | I2C_TypeDef * | I2Cx | ) |
Check if SMBus Packet Error Calculation (PEC) is enabled or disabled.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 1062 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledSMBusTimeout | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | ClockTimeout | ||
| ) |
Check if the SMBus Clock Timeout is enabled or disabled.
| I2Cx | I2C Instance. |
| ClockTimeout | This parameter can be one of the following values:
|
| State | of bit (1 or 0). |
Definition at line 1227 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE uint32_t LL_I2C_IsEnabledWakeUpFromStop | ( | I2C_TypeDef * | I2Cx | ) |
Check if Wakeup from STOP is enabled or disabled.
| I2Cx | I2C Instance. |
| State | of bit (1 or 0). |
Definition at line 700 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_SetDigitalFilter | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | DigitalFilter | ||
| ) |
Configure Digital Noise Filter.
| I2Cx | I2C 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*ti2cclk). 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]*ti2cclk. |
| None |
Definition at line 452 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_SetMasterAddressingMode | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | AddressingMode | ||
| ) |
Configure the Master to operate in 7-bit or 10-bit addressing mode.
| I2Cx | I2C Instance. |
| AddressingMode | This parameter can be one of the following values:
|
| None |
Definition at line 750 of file stm32l4xx_ll_i2c.h.
| __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:
|
| None |
Definition at line 956 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_SetOwnAddress1 | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | OwnAddress1, | ||
| uint32_t | OwnAddrSize | ||
| ) |
Set the Own Address1. OAR1 OA1 LL_I2C_SetOwnAddress1
OAR1 OA1MODE LL_I2C_SetOwnAddress1.
| I2Cx | I2C 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 779 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_SetOwnAddress2 | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | OwnAddress2, | ||
| uint32_t | OwnAddrMask | ||
| ) |
Set the 7bits Own Address2.
| I2Cx | I2C 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 835 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_SetSMBusTimeoutA | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | TimeoutA | ||
| ) |
Configure the SMBus Clock TimeoutA (SCL low timeout or SCL and SDA high timeout depends on TimeoutA mode).
| I2Cx | I2C Instance. |
| TimeoutA | This parameter must be a value between Min_Data=0 and Max_Data=0xFFF. |
| None |
Definition at line 1100 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_SetSMBusTimeoutAMode | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | TimeoutAMode | ||
| ) |
Set the SMBus Clock TimeoutA mode.
| I2Cx | I2C Instance. |
| TimeoutAMode | This parameter can be one of the following values:
|
| None |
Definition at line 1130 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_SetSMBusTimeoutB | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | TimeoutB | ||
| ) |
Configure the SMBus Extended Cumulative Clock TimeoutB (Master or Slave mode).
| I2Cx | I2C Instance. |
| TimeoutB | This parameter must be a value between Min_Data=0 and Max_Data=0xFFF. |
| None |
Definition at line 1160 of file stm32l4xx_ll_i2c.h.
| __STATIC_INLINE void LL_I2C_SetTiming | ( | I2C_TypeDef * | I2Cx, |
| uint32_t | Timing | ||
| ) |
Configure the SDA setup, hold time and the SCL high, low period.
| I2Cx | I2C Instance. |
| Timing | This parameter must be a value between Min_Data=0 and Max_Data=0xFFFFFFFF. |
| None |
Definition at line 882 of file stm32l4xx_ll_i2c.h.