STM32F4xx_HAL_Driver
1.8.3
|
Functions | |
__STATIC_INLINE void | LL_I2C_EnableReset (I2C_TypeDef *I2Cx) |
Enable Reset of I2C peripheral. @rmtoll CR1 SWRST LL_I2C_EnableReset. More... | |
__STATIC_INLINE void | LL_I2C_DisableReset (I2C_TypeDef *I2Cx) |
Disable Reset of I2C peripheral. @rmtoll CR1 SWRST LL_I2C_DisableReset. More... | |
__STATIC_INLINE uint32_t | LL_I2C_IsResetEnabled (I2C_TypeDef *I2Cx) |
Check if the I2C peripheral is under reset state or not. @rmtoll CR1 SWRST LL_I2C_IsResetEnabled. More... | |
__STATIC_INLINE void | LL_I2C_AcknowledgeNextData (I2C_TypeDef *I2Cx, uint32_t TypeAcknowledge) |
Prepare the generation of a ACKnowledge or Non ACKnowledge condition after the address receive match code or next received byte. More... | |
__STATIC_INLINE void | LL_I2C_GenerateStartCondition (I2C_TypeDef *I2Cx) |
Generate a START or RESTART condition. More... | |
__STATIC_INLINE void | LL_I2C_GenerateStopCondition (I2C_TypeDef *I2Cx) |
Generate a STOP condition after the current byte transfer (master mode). @rmtoll CR1 STOP LL_I2C_GenerateStopCondition. More... | |
__STATIC_INLINE void | LL_I2C_EnableBitPOS (I2C_TypeDef *I2Cx) |
Enable bit POS (master/host mode). More... | |
__STATIC_INLINE void | LL_I2C_DisableBitPOS (I2C_TypeDef *I2Cx) |
Disable bit POS (master/host mode). More... | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledBitPOS (I2C_TypeDef *I2Cx) |
Check if bit POS is enabled or disabled. @rmtoll CR1 POS LL_I2C_IsEnabledBitPOS. More... | |
__STATIC_INLINE uint32_t | LL_I2C_GetTransferDirection (I2C_TypeDef *I2Cx) |
Indicate the value of transfer direction. More... | |
__STATIC_INLINE void | LL_I2C_EnableLastDMA (I2C_TypeDef *I2Cx) |
Enable DMA last transfer. More... | |
__STATIC_INLINE void | LL_I2C_DisableLastDMA (I2C_TypeDef *I2Cx) |
Disable DMA last transfer. More... | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledLastDMA (I2C_TypeDef *I2Cx) |
Check if DMA last transfer is enabled or disabled. @rmtoll CR2 LAST LL_I2C_IsEnabledLastDMA. More... | |
__STATIC_INLINE void | LL_I2C_EnableSMBusPECCompare (I2C_TypeDef *I2Cx) |
Enable transfer or internal comparison of the SMBus Packet Error byte (transmission or reception mode). More... | |
__STATIC_INLINE void | LL_I2C_DisableSMBusPECCompare (I2C_TypeDef *I2Cx) |
Disable transfer or internal comparison of the SMBus Packet Error byte (transmission or reception mode). More... | |
__STATIC_INLINE uint32_t | LL_I2C_IsEnabledSMBusPECCompare (I2C_TypeDef *I2Cx) |
Check if the SMBus Packet Error byte transfer or internal comparison is requested or not. More... | |
__STATIC_INLINE uint32_t | LL_I2C_GetSMBusPEC (I2C_TypeDef *I2Cx) |
Get the SMBus Packet Error byte calculated. More... | |
__STATIC_INLINE uint8_t | LL_I2C_ReceiveData8 (I2C_TypeDef *I2Cx) |
Read Receive Data register. @rmtoll DR DR LL_I2C_ReceiveData8. More... | |
__STATIC_INLINE void | LL_I2C_TransmitData8 (I2C_TypeDef *I2Cx, uint8_t Data) |
Write in Transmit Data Register . @rmtoll DR DR LL_I2C_TransmitData8. More... | |
__STATIC_INLINE void LL_I2C_AcknowledgeNextData | ( | I2C_TypeDef * | I2Cx, |
uint32_t | TypeAcknowledge | ||
) |
Prepare the generation of a ACKnowledge or Non ACKnowledge condition after the address receive match code or next received byte.
I2Cx | I2C Instance. |
TypeAcknowledge | This parameter can be one of the following values:
|
None |
Definition at line 1661 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_DisableBitPOS | ( | I2C_TypeDef * | I2Cx | ) |
Disable bit POS (master/host mode).
I2Cx | I2C Instance. |
None |
Definition at line 1709 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_DisableLastDMA | ( | I2C_TypeDef * | I2Cx | ) |
Disable DMA last transfer.
I2Cx | I2C Instance. |
None |
Definition at line 1759 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_DisableReset | ( | I2C_TypeDef * | I2Cx | ) |
Disable Reset of I2C peripheral. @rmtoll CR1 SWRST LL_I2C_DisableReset.
I2Cx | I2C Instance. |
None |
Definition at line 1635 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_DisableSMBusPECCompare | ( | I2C_TypeDef * | I2Cx | ) |
Disable transfer or internal comparison of the SMBus Packet Error byte (transmission or reception mode).
I2Cx | I2C Instance. |
None |
Definition at line 1798 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_EnableBitPOS | ( | I2C_TypeDef * | I2Cx | ) |
Enable bit POS (master/host mode).
I2Cx | I2C Instance. |
None |
Definition at line 1697 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_EnableLastDMA | ( | I2C_TypeDef * | I2Cx | ) |
Enable DMA last transfer.
I2Cx | I2C Instance. |
None |
Definition at line 1747 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_EnableReset | ( | I2C_TypeDef * | I2Cx | ) |
Enable Reset of I2C peripheral. @rmtoll CR1 SWRST LL_I2C_EnableReset.
I2Cx | I2C Instance. |
None |
Definition at line 1624 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_EnableSMBusPECCompare | ( | I2C_TypeDef * | I2Cx | ) |
Enable transfer or internal comparison of the SMBus Packet Error byte (transmission or reception mode).
I2Cx | I2C Instance. |
None |
Definition at line 1785 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_GenerateStartCondition | ( | I2C_TypeDef * | I2Cx | ) |
Generate a START or RESTART condition.
I2Cx | I2C Instance. |
None |
Definition at line 1674 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_GenerateStopCondition | ( | I2C_TypeDef * | I2Cx | ) |
Generate a STOP condition after the current byte transfer (master mode). @rmtoll CR1 STOP LL_I2C_GenerateStopCondition.
I2Cx | I2C Instance. |
None |
Definition at line 1685 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_GetSMBusPEC | ( | I2C_TypeDef * | I2Cx | ) |
Get the SMBus Packet Error byte calculated.
I2Cx | I2C Instance. |
Value | between Min_Data=0x00 and Max_Data=0xFF |
Definition at line 1824 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_GetTransferDirection | ( | I2C_TypeDef * | I2Cx | ) |
Indicate the value of transfer direction.
I2Cx | I2C Instance. |
Returned | value can be one of the following values:
|
Definition at line 1735 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledBitPOS | ( | I2C_TypeDef * | I2Cx | ) |
Check if bit POS is enabled or disabled. @rmtoll CR1 POS LL_I2C_IsEnabledBitPOS.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 1720 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledLastDMA | ( | I2C_TypeDef * | I2Cx | ) |
Check if DMA last transfer is enabled or disabled. @rmtoll CR2 LAST LL_I2C_IsEnabledLastDMA.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 1770 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledSMBusPECCompare | ( | I2C_TypeDef * | I2Cx | ) |
Check if the SMBus Packet Error byte transfer or internal comparison is requested or not.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 1811 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsResetEnabled | ( | I2C_TypeDef * | I2Cx | ) |
Check if the I2C peripheral is under reset state or not. @rmtoll CR1 SWRST LL_I2C_IsResetEnabled.
I2Cx | I2C Instance. |
State | of bit (1 or 0). |
Definition at line 1646 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE uint8_t LL_I2C_ReceiveData8 | ( | I2C_TypeDef * | I2Cx | ) |
Read Receive Data register. @rmtoll DR DR LL_I2C_ReceiveData8.
I2Cx | I2C Instance. |
Value | between Min_Data=0x0 and Max_Data=0xFF |
Definition at line 1835 of file stm32f4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_TransmitData8 | ( | I2C_TypeDef * | I2Cx, |
uint8_t | Data | ||
) |
Write in Transmit Data Register . @rmtoll DR DR LL_I2C_TransmitData8.
I2Cx | I2C Instance. |
Data | Value between Min_Data=0x0 and Max_Data=0xFF |
None |
Definition at line 1847 of file stm32f4xx_ll_i2c.h.