Macros
Collaboration diagram for I2C Exported Macros:

Macros

#define __HAL_I2C_CLEAR_ADDRFLAG(__HANDLE__)
 Clears the I2C ADDR pending flag. More...
 
#define __HAL_I2C_CLEAR_ADDRFLAG(__HANDLE__)
 Clears the I2C ADDR pending flag. More...
 
#define __HAL_I2C_CLEAR_ADDRFLAG(__HANDLE__)
 Clears the I2C ADDR pending flag. More...
 
#define __HAL_I2C_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->SR1 = ~((__FLAG__) & I2C_FLAG_MASK))
 Clears the I2C pending flags which are cleared by writing 0 in a specific bit. More...
 
#define __HAL_I2C_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->SR1 = ~((__FLAG__) & I2C_FLAG_MASK))
 Clears the I2C pending flags which are cleared by writing 0 in a specific bit. More...
 
#define __HAL_I2C_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->SR1 = ~((__FLAG__) & I2C_FLAG_MASK))
 Clears the I2C pending flags which are cleared by writing 0 in a specific bit. More...
 
#define __HAL_I2C_CLEAR_FLAG(__HANDLE__, __FLAG__)
 Clear the I2C pending flags which are cleared by writing 1 in a specific bit. More...
 
#define __HAL_I2C_CLEAR_FLAG(__HANDLE__, __FLAG__)
 Clear the I2C pending flags which are cleared by writing 1 in a specific bit. More...
 
#define __HAL_I2C_CLEAR_FLAG(__HANDLE__, __FLAG__)
 Clear the I2C pending flags which are cleared by writing 1 in a specific bit. More...
 
#define __HAL_I2C_CLEAR_STOPFLAG(__HANDLE__)
 Clears the I2C STOPF pending flag. More...
 
#define __HAL_I2C_CLEAR_STOPFLAG(__HANDLE__)
 Clears the I2C STOPF pending flag. More...
 
#define __HAL_I2C_CLEAR_STOPFLAG(__HANDLE__)
 Clears the I2C STOPF pending flag. More...
 
#define __HAL_I2C_DISABLE(__HANDLE__)   CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)
 Disable the specified I2C peripheral. More...
 
#define __HAL_I2C_DISABLE(__HANDLE__)   CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)
 Disable the specified I2C peripheral. More...
 
#define __HAL_I2C_DISABLE(__HANDLE__)   CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)
 Disable the specified I2C peripheral. More...
 
#define __HAL_I2C_DISABLE(__HANDLE__)   (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))
 Disable the specified I2C peripheral. More...
 
#define __HAL_I2C_DISABLE(__HANDLE__)   (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))
 Disable the specified I2C peripheral. More...
 
#define __HAL_I2C_DISABLE(__HANDLE__)   (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))
 Disable the specified I2C peripheral. More...
 
#define __HAL_I2C_DISABLE_IT(__HANDLE__, __INTERRUPT__)   CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__))
 
#define __HAL_I2C_DISABLE_IT(__HANDLE__, __INTERRUPT__)   CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__))
 
#define __HAL_I2C_DISABLE_IT(__HANDLE__, __INTERRUPT__)   CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__))
 
#define __HAL_I2C_DISABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__)))
 Disable the specified I2C interrupt. More...
 
#define __HAL_I2C_DISABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__)))
 Disable the specified I2C interrupt. More...
 
#define __HAL_I2C_DISABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__)))
 Disable the specified I2C interrupt. More...
 
#define __HAL_I2C_ENABLE(__HANDLE__)   SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)
 Enable the specified I2C peripheral. More...
 
#define __HAL_I2C_ENABLE(__HANDLE__)   SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)
 Enable the specified I2C peripheral. More...
 
#define __HAL_I2C_ENABLE(__HANDLE__)   SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)
 Enable the specified I2C peripheral. More...
 
#define __HAL_I2C_ENABLE(__HANDLE__)   (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))
 Enable the specified I2C peripheral. More...
 
#define __HAL_I2C_ENABLE(__HANDLE__)   (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))
 Enable the specified I2C peripheral. More...
 
#define __HAL_I2C_ENABLE(__HANDLE__)   (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))
 Enable the specified I2C peripheral. More...
 
#define __HAL_I2C_ENABLE_IT(__HANDLE__, __INTERRUPT__)   SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__))
 Enable or disable the specified I2C interrupts. More...
 
#define __HAL_I2C_ENABLE_IT(__HANDLE__, __INTERRUPT__)   SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__))
 Enable or disable the specified I2C interrupts. More...
 
#define __HAL_I2C_ENABLE_IT(__HANDLE__, __INTERRUPT__)   SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__))
 Enable or disable the specified I2C interrupts. More...
 
#define __HAL_I2C_ENABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__))
 Enable the specified I2C interrupt. More...
 
#define __HAL_I2C_ENABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__))
 Enable the specified I2C interrupt. More...
 
#define __HAL_I2C_ENABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__))
 Enable the specified I2C interrupt. More...
 
#define __HAL_I2C_GENERATE_NACK(__HANDLE__)   (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK))
 Generate a Non-Acknowledge I2C peripheral in Slave mode. More...
 
#define __HAL_I2C_GENERATE_NACK(__HANDLE__)   (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK))
 Generate a Non-Acknowledge I2C peripheral in Slave mode. More...
 
#define __HAL_I2C_GENERATE_NACK(__HANDLE__)   (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK))
 Generate a Non-Acknowledge I2C peripheral in Slave mode. More...
 
#define __HAL_I2C_GET_FLAG(__HANDLE__, __FLAG__)
 Checks whether the specified I2C flag is set or not. More...
 
#define __HAL_I2C_GET_FLAG(__HANDLE__, __FLAG__)
 Checks whether the specified I2C flag is set or not. More...
 
#define __HAL_I2C_GET_FLAG(__HANDLE__, __FLAG__)
 Checks whether the specified I2C flag is set or not. More...
 
#define __HAL_I2C_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) == (__FLAG__)) ? SET : RESET)
 
#define __HAL_I2C_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) == (__FLAG__)) ? SET : RESET)
 
#define __HAL_I2C_GET_FLAG(__HANDLE__, __FLAG__)
 
#define __HAL_I2C_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((((__HANDLE__)->Instance->CR2 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
 Checks if the specified I2C interrupt source is enabled or disabled. More...
 
#define __HAL_I2C_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((((__HANDLE__)->Instance->CR2 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
 Checks if the specified I2C interrupt source is enabled or disabled. More...
 
#define __HAL_I2C_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((((__HANDLE__)->Instance->CR2 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
 Checks if the specified I2C interrupt source is enabled or disabled. More...
 
#define __HAL_I2C_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)
 Check whether the specified I2C interrupt source is enabled or not. More...
 
#define __HAL_I2C_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((((__HANDLE__)->Instance->CR1 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
 Check whether the specified I2C interrupt source is enabled or not. More...
 
#define __HAL_I2C_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((((__HANDLE__)->Instance->CR1 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)
 Check whether the specified I2C interrupt source is enabled or not. More...
 
#define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_I2C_STATE_RESET)
 Reset I2C handle state. More...
 
#define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_I2C_STATE_RESET)
 Reset I2C handle state. More...
 
#define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_I2C_STATE_RESET)
 Reset I2C handle state. More...
 
#define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_I2C_STATE_RESET)
 Reset I2C handle state. More...
 
#define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_I2C_STATE_RESET)
 Reset I2C handle state. More...
 
#define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_I2C_STATE_RESET)
 Reset I2C handle state. More...
 
#define I2C_FLAG_MASK   (0x0001FFFFU)
 Check whether the specified I2C flag is set or not. More...
 
#define I2C_FLAG_MASK   (0x0001FFFFU)
 Check whether the specified I2C flag is set or not. More...
 
#define I2C_FLAG_MASK   (0x0001FFFFU)
 Check whether the specified I2C flag is set or not. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_I2C_CLEAR_ADDRFLAG [1/3]

#define __HAL_I2C_CLEAR_ADDRFLAG (   __HANDLE__)
Value:
do{ \
__IO uint32_t tmpreg = 0x00U; \
tmpreg = (__HANDLE__)->Instance->SR1; \
tmpreg = (__HANDLE__)->Instance->SR2; \
UNUSED(tmpreg); \
} while(0)

Clears the I2C ADDR pending flag.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle. This parameter can be I2C where x: 1, 2, or 3 to select the I2C peripheral.
Return values
None

Definition at line 497 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_CLEAR_ADDRFLAG [2/3]

#define __HAL_I2C_CLEAR_ADDRFLAG (   __HANDLE__)
Value:
do{ \
__IO uint32_t tmpreg = 0x00U; \
tmpreg = (__HANDLE__)->Instance->SR1; \
tmpreg = (__HANDLE__)->Instance->SR2; \
UNUSED(tmpreg); \
} while(0)

Clears the I2C ADDR pending flag.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle. This parameter can be I2C where x: 1, 2, or 3 to select the I2C peripheral.
Return values
None

Definition at line 497 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_CLEAR_ADDRFLAG [3/3]

#define __HAL_I2C_CLEAR_ADDRFLAG (   __HANDLE__)
Value:
do{ \
__IO uint32_t tmpreg = 0x00U; \
tmpreg = (__HANDLE__)->Instance->SR1; \
tmpreg = (__HANDLE__)->Instance->SR2; \
UNUSED(tmpreg); \
} while(0)

Clears the I2C ADDR pending flag.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle. This parameter can be I2C where x: 1, 2, or 3 to select the I2C peripheral.
Return values
None

Definition at line 497 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_CLEAR_FLAG [1/6]

#define __HAL_I2C_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->SR1 = ~((__FLAG__) & I2C_FLAG_MASK))

Clears the I2C pending flags which are cleared by writing 0 in a specific bit.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to clear. This parameter can be any combination of the following values:
  • I2C_FLAG_OVR: Overrun/Underrun flag (Slave mode)
  • I2C_FLAG_AF: Acknowledge failure flag
  • I2C_FLAG_ARLO: Arbitration lost flag (Master mode)
  • I2C_FLAG_BERR: Bus error flag
Return values
None

Definition at line 490 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_CLEAR_FLAG [2/6]

#define __HAL_I2C_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->SR1 = ~((__FLAG__) & I2C_FLAG_MASK))

Clears the I2C pending flags which are cleared by writing 0 in a specific bit.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to clear. This parameter can be any combination of the following values:
  • I2C_FLAG_OVR: Overrun/Underrun flag (Slave mode)
  • I2C_FLAG_AF: Acknowledge failure flag
  • I2C_FLAG_ARLO: Arbitration lost flag (Master mode)
  • I2C_FLAG_BERR: Bus error flag
Return values
None

Definition at line 490 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_CLEAR_FLAG [3/6]

#define __HAL_I2C_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->SR1 = ~((__FLAG__) & I2C_FLAG_MASK))

Clears the I2C pending flags which are cleared by writing 0 in a specific bit.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to clear. This parameter can be any combination of the following values:
  • I2C_FLAG_OVR: Overrun/Underrun flag (Slave mode)
  • I2C_FLAG_AF: Acknowledge failure flag
  • I2C_FLAG_ARLO: Arbitration lost flag (Master mode)
  • I2C_FLAG_BERR: Bus error flag
Return values
None

Definition at line 490 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_CLEAR_FLAG [4/6]

#define __HAL_I2C_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)
Value:
(((__FLAG__) == I2C_FLAG_TXE) ? ((__HANDLE__)->Instance->ISR |= (__FLAG__)) \
: ((__HANDLE__)->Instance->ICR = (__FLAG__)))

Clear the I2C pending flags which are cleared by writing 1 in a specific bit.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to clear. This parameter can be any combination of the following values:
Return values
None

Definition at line 543 of file stm32f7xx_hal_i2c.h.

◆ __HAL_I2C_CLEAR_FLAG [5/6]

#define __HAL_I2C_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)
Value:
(((__FLAG__) == I2C_FLAG_TXE) ? ((__HANDLE__)->Instance->ISR |= (__FLAG__)) \
: ((__HANDLE__)->Instance->ICR = (__FLAG__)))

Clear the I2C pending flags which are cleared by writing 1 in a specific bit.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to clear. This parameter can be any combination of the following values:
Return values
None

Definition at line 543 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_CLEAR_FLAG [6/6]

#define __HAL_I2C_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)
Value:
(((__FLAG__) == I2C_FLAG_TXE) ? ((__HANDLE__)->Instance->ISR |= (__FLAG__)) \
: ((__HANDLE__)->Instance->ICR = (__FLAG__)))

Clear the I2C pending flags which are cleared by writing 1 in a specific bit.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to clear. This parameter can be any combination of the following values:
Return values
None

Definition at line 545 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_CLEAR_STOPFLAG [1/3]

#define __HAL_I2C_CLEAR_STOPFLAG (   __HANDLE__)
Value:
do{ \
__IO uint32_t tmpreg = 0x00U; \
tmpreg = (__HANDLE__)->Instance->SR1; \
SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE); \
UNUSED(tmpreg); \
} while(0)

Clears the I2C STOPF pending flag.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 509 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_CLEAR_STOPFLAG [2/3]

#define __HAL_I2C_CLEAR_STOPFLAG (   __HANDLE__)
Value:
do{ \
__IO uint32_t tmpreg = 0x00U; \
tmpreg = (__HANDLE__)->Instance->SR1; \
SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE); \
UNUSED(tmpreg); \
} while(0)

Clears the I2C STOPF pending flag.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 509 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_CLEAR_STOPFLAG [3/3]

#define __HAL_I2C_CLEAR_STOPFLAG (   __HANDLE__)
Value:
do{ \
__IO uint32_t tmpreg = 0x00U; \
tmpreg = (__HANDLE__)->Instance->SR1; \
SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE); \
UNUSED(tmpreg); \
} while(0)

Clears the I2C STOPF pending flag.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 509 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_DISABLE [1/6]

#define __HAL_I2C_DISABLE (   __HANDLE__)    CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)

Disable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 527 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_DISABLE [2/6]

#define __HAL_I2C_DISABLE (   __HANDLE__)    CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)

Disable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 527 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_DISABLE [3/6]

#define __HAL_I2C_DISABLE (   __HANDLE__)    CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)

Disable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 527 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_DISABLE [4/6]

#define __HAL_I2C_DISABLE (   __HANDLE__)    (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))

Disable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 556 of file stm32f7xx_hal_i2c.h.

◆ __HAL_I2C_DISABLE [5/6]

#define __HAL_I2C_DISABLE (   __HANDLE__)    (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))

Disable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 556 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_DISABLE [6/6]

#define __HAL_I2C_DISABLE (   __HANDLE__)    (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))

Disable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 558 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_DISABLE_IT [1/6]

#define __HAL_I2C_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__))

◆ __HAL_I2C_DISABLE_IT [2/6]

#define __HAL_I2C_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__))

◆ __HAL_I2C_DISABLE_IT [3/6]

#define __HAL_I2C_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__))

◆ __HAL_I2C_DISABLE_IT [4/6]

#define __HAL_I2C_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__)))

Disable the specified I2C interrupt.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the interrupt source to disable. This parameter can be one of the following values:
Return values
None

Definition at line 482 of file stm32f7xx_hal_i2c.h.

◆ __HAL_I2C_DISABLE_IT [5/6]

#define __HAL_I2C_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__)))

Disable the specified I2C interrupt.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the interrupt source to disable. This parameter can be one of the following values:
Return values
None

Definition at line 482 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_DISABLE_IT [6/6]

#define __HAL_I2C_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__)))

Disable the specified I2C interrupt.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the interrupt source to disable. This parameter can be one of the following values:
Return values
None

Definition at line 482 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE [1/6]

#define __HAL_I2C_ENABLE (   __HANDLE__)    SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)

Enable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 521 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE [2/6]

#define __HAL_I2C_ENABLE (   __HANDLE__)    SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)

Enable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 521 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE [3/6]

#define __HAL_I2C_ENABLE (   __HANDLE__)    SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)

Enable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 521 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE [4/6]

#define __HAL_I2C_ENABLE (   __HANDLE__)    (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))

Enable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 550 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE [5/6]

#define __HAL_I2C_ENABLE (   __HANDLE__)    (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))

Enable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 550 of file stm32f7xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE [6/6]

#define __HAL_I2C_ENABLE (   __HANDLE__)    (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE))

Enable the specified I2C peripheral.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 552 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE_IT [1/6]

#define __HAL_I2C_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__))

Enable or disable the specified I2C interrupts.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the interrupt source to enable or disable. This parameter can be one of the following values:
  • I2C_IT_BUF: Buffer interrupt enable
  • I2C_IT_EVT: Event interrupt enable
  • I2C_IT_ERR: Error interrupt enable
Return values
None

Definition at line 439 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE_IT [2/6]

#define __HAL_I2C_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__))

Enable or disable the specified I2C interrupts.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the interrupt source to enable or disable. This parameter can be one of the following values:
  • I2C_IT_BUF: Buffer interrupt enable
  • I2C_IT_EVT: Event interrupt enable
  • I2C_IT_ERR: Error interrupt enable
Return values
None

Definition at line 439 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE_IT [3/6]

#define __HAL_I2C_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__))

Enable or disable the specified I2C interrupts.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the interrupt source to enable or disable. This parameter can be one of the following values:
  • I2C_IT_BUF: Buffer interrupt enable
  • I2C_IT_EVT: Event interrupt enable
  • I2C_IT_ERR: Error interrupt enable
Return values
None

Definition at line 439 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE_IT [4/6]

#define __HAL_I2C_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__))

Enable the specified I2C interrupt.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the interrupt source to enable. This parameter can be one of the following values:
Return values
None

Definition at line 466 of file stm32f7xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE_IT [5/6]

#define __HAL_I2C_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__))

Enable the specified I2C interrupt.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the interrupt source to enable. This parameter can be one of the following values:
Return values
None

Definition at line 466 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_ENABLE_IT [6/6]

#define __HAL_I2C_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__))

Enable the specified I2C interrupt.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the interrupt source to enable. This parameter can be one of the following values:
Return values
None

Definition at line 466 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_GENERATE_NACK [1/3]

#define __HAL_I2C_GENERATE_NACK (   __HANDLE__)    (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK))

Generate a Non-Acknowledge I2C peripheral in Slave mode.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 562 of file stm32f7xx_hal_i2c.h.

◆ __HAL_I2C_GENERATE_NACK [2/3]

#define __HAL_I2C_GENERATE_NACK (   __HANDLE__)    (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK))

Generate a Non-Acknowledge I2C peripheral in Slave mode.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 562 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_GENERATE_NACK [3/3]

#define __HAL_I2C_GENERATE_NACK (   __HANDLE__)    (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK))

Generate a Non-Acknowledge I2C peripheral in Slave mode.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 564 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_GET_FLAG [1/6]

#define __HAL_I2C_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)
Value:
((((uint8_t)((__FLAG__) >> 16U)) == 0x01U) ? \
(((((__HANDLE__)->Instance->SR1) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET) : \
(((((__HANDLE__)->Instance->SR2) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET))

Checks whether the specified I2C flag is set or not.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to check. This parameter can be one of the following values:
  • I2C_FLAG_OVR: Overrun/Underrun flag
  • I2C_FLAG_AF: Acknowledge failure flag
  • I2C_FLAG_ARLO: Arbitration lost flag
  • I2C_FLAG_BERR: Bus error flag
  • I2C_FLAG_TXE: Data register empty flag
  • I2C_FLAG_RXNE: Data register not empty flag
  • I2C_FLAG_STOPF: Stop detection flag
  • I2C_FLAG_ADD10: 10-bit header sent flag
  • I2C_FLAG_BTF: Byte transfer finished flag
  • I2C_FLAG_ADDR: Address sent flag Address matched flag
  • I2C_FLAG_SB: Start bit flag
  • I2C_FLAG_DUALF: Dual flag
  • I2C_FLAG_GENCALL: General call header flag
  • I2C_FLAG_TRA: Transmitter/Receiver flag
  • I2C_FLAG_BUSY: Bus busy flag
  • I2C_FLAG_MSL: Master/Slave flag
Return values
Thenew state of FLAG (TRUE or FALSE).

Definition at line 476 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_GET_FLAG [2/6]

#define __HAL_I2C_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)
Value:
((((uint8_t)((__FLAG__) >> 16U)) == 0x01U) ? \
(((((__HANDLE__)->Instance->SR1) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET) : \
(((((__HANDLE__)->Instance->SR2) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET))

Checks whether the specified I2C flag is set or not.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to check. This parameter can be one of the following values:
  • I2C_FLAG_OVR: Overrun/Underrun flag
  • I2C_FLAG_AF: Acknowledge failure flag
  • I2C_FLAG_ARLO: Arbitration lost flag
  • I2C_FLAG_BERR: Bus error flag
  • I2C_FLAG_TXE: Data register empty flag
  • I2C_FLAG_RXNE: Data register not empty flag
  • I2C_FLAG_STOPF: Stop detection flag
  • I2C_FLAG_ADD10: 10-bit header sent flag
  • I2C_FLAG_BTF: Byte transfer finished flag
  • I2C_FLAG_ADDR: Address sent flag Address matched flag
  • I2C_FLAG_SB: Start bit flag
  • I2C_FLAG_DUALF: Dual flag
  • I2C_FLAG_GENCALL: General call header flag
  • I2C_FLAG_TRA: Transmitter/Receiver flag
  • I2C_FLAG_BUSY: Bus busy flag
  • I2C_FLAG_MSL: Master/Slave flag
Return values
Thenew state of FLAG (TRUE or FALSE).

Definition at line 476 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_GET_FLAG [3/6]

#define __HAL_I2C_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)
Value:
((((uint8_t)((__FLAG__) >> 16U)) == 0x01U) ? \
(((((__HANDLE__)->Instance->SR1) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET) : \
(((((__HANDLE__)->Instance->SR2) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET))

Checks whether the specified I2C flag is set or not.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to check. This parameter can be one of the following values:
  • I2C_FLAG_OVR: Overrun/Underrun flag
  • I2C_FLAG_AF: Acknowledge failure flag
  • I2C_FLAG_ARLO: Arbitration lost flag
  • I2C_FLAG_BERR: Bus error flag
  • I2C_FLAG_TXE: Data register empty flag
  • I2C_FLAG_RXNE: Data register not empty flag
  • I2C_FLAG_STOPF: Stop detection flag
  • I2C_FLAG_ADD10: 10-bit header sent flag
  • I2C_FLAG_BTF: Byte transfer finished flag
  • I2C_FLAG_ADDR: Address sent flag Address matched flag
  • I2C_FLAG_SB: Start bit flag
  • I2C_FLAG_DUALF: Dual flag
  • I2C_FLAG_GENCALL: General call header flag
  • I2C_FLAG_TRA: Transmitter/Receiver flag
  • I2C_FLAG_BUSY: Bus busy flag
  • I2C_FLAG_MSL: Master/Slave flag
Return values
Thenew state of FLAG (TRUE or FALSE).

Definition at line 476 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_GET_FLAG [4/6]

#define __HAL_I2C_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) == (__FLAG__)) ? SET : RESET)

Definition at line 524 of file stm32f7xx_hal_i2c.h.

◆ __HAL_I2C_GET_FLAG [5/6]

#define __HAL_I2C_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) == (__FLAG__)) ? SET : RESET)

◆ __HAL_I2C_GET_FLAG [6/6]

#define __HAL_I2C_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)
Value:
(((((__HANDLE__)->Instance->ISR) & \
(__FLAG__)) == (__FLAG__)) ? SET : RESET)

Definition at line 525 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_GET_IT_SOURCE [1/6]

#define __HAL_I2C_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    ((((__HANDLE__)->Instance->CR2 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)

Checks if the specified I2C interrupt source is enabled or disabled.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the I2C interrupt source to check. This parameter can be one of the following values:
  • I2C_IT_BUF: Buffer interrupt enable
  • I2C_IT_EVT: Event interrupt enable
  • I2C_IT_ERR: Error interrupt enable
Return values
Thenew state of INTERRUPT (TRUE or FALSE).

Definition at line 451 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_GET_IT_SOURCE [2/6]

#define __HAL_I2C_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    ((((__HANDLE__)->Instance->CR2 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)

Checks if the specified I2C interrupt source is enabled or disabled.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the I2C interrupt source to check. This parameter can be one of the following values:
  • I2C_IT_BUF: Buffer interrupt enable
  • I2C_IT_EVT: Event interrupt enable
  • I2C_IT_ERR: Error interrupt enable
Return values
Thenew state of INTERRUPT (TRUE or FALSE).

Definition at line 451 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_GET_IT_SOURCE [3/6]

#define __HAL_I2C_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    ((((__HANDLE__)->Instance->CR2 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)

Checks if the specified I2C interrupt source is enabled or disabled.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the I2C interrupt source to check. This parameter can be one of the following values:
  • I2C_IT_BUF: Buffer interrupt enable
  • I2C_IT_EVT: Event interrupt enable
  • I2C_IT_ERR: Error interrupt enable
Return values
Thenew state of INTERRUPT (TRUE or FALSE).

Definition at line 451 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_GET_IT_SOURCE [4/6]

#define __HAL_I2C_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
((((__HANDLE__)->Instance->CR1 & \
(__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)

Check whether the specified I2C interrupt source is enabled or not.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the I2C interrupt source to check. This parameter can be one of the following values:
Return values
Thenew state of INTERRUPT (SET or RESET).

Definition at line 498 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_GET_IT_SOURCE [5/6]

#define __HAL_I2C_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    ((((__HANDLE__)->Instance->CR1 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)

Check whether the specified I2C interrupt source is enabled or not.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the I2C interrupt source to check. This parameter can be one of the following values:
Return values
Thenew state of INTERRUPT (SET or RESET).

Definition at line 498 of file stm32f7xx_hal_i2c.h.

◆ __HAL_I2C_GET_IT_SOURCE [6/6]

#define __HAL_I2C_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    ((((__HANDLE__)->Instance->CR1 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)

Check whether the specified I2C interrupt source is enabled or not.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>INTERRUPT</strong>specifies the I2C interrupt source to check. This parameter can be one of the following values:
Return values
Thenew state of INTERRUPT (SET or RESET).

Definition at line 498 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_RESET_HANDLE_STATE [1/6]

#define __HAL_I2C_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_I2C_STATE_RESET)

Reset I2C handle state.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 427 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_RESET_HANDLE_STATE [2/6]

#define __HAL_I2C_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_I2C_STATE_RESET)

Reset I2C handle state.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 427 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_RESET_HANDLE_STATE [3/6]

#define __HAL_I2C_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_I2C_STATE_RESET)

Reset I2C handle state.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 427 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ __HAL_I2C_RESET_HANDLE_STATE [4/6]

#define __HAL_I2C_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_I2C_STATE_RESET)

Reset I2C handle state.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 449 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ __HAL_I2C_RESET_HANDLE_STATE [5/6]

#define __HAL_I2C_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_I2C_STATE_RESET)

Reset I2C handle state.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 449 of file stm32f7xx_hal_i2c.h.

◆ __HAL_I2C_RESET_HANDLE_STATE [6/6]

#define __HAL_I2C_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_I2C_STATE_RESET)

Reset I2C handle state.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
Return values
None

Definition at line 449 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ I2C_FLAG_MASK [1/3]

#define I2C_FLAG_MASK   (0x0001FFFFU)

Check whether the specified I2C flag is set or not.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to check. This parameter can be one of the following values:
Return values
Thenew state of FLAG (SET or RESET).

Definition at line 523 of file stm32f7xx_hal_i2c.h.

◆ I2C_FLAG_MASK [2/3]

#define I2C_FLAG_MASK   (0x0001FFFFU)

Check whether the specified I2C flag is set or not.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to check. This parameter can be one of the following values:
Return values
Thenew state of FLAG (SET or RESET).

Definition at line 523 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

◆ I2C_FLAG_MASK [3/3]

#define I2C_FLAG_MASK   (0x0001FFFFU)

Check whether the specified I2C flag is set or not.

Parameters
<strong>HANDLE</strong>specifies the I2C Handle.
<strong>FLAG</strong>specifies the flag to check. This parameter can be one of the following values:
Return values
Thenew state of FLAG (SET or RESET).

Definition at line 524 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.

I2C_CR1_PE
#define I2C_CR1_PE
Definition: stm32f407xx.h:9103
I2C_FLAG_MASK
#define I2C_FLAG_MASK
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:648
RESET
@ RESET
Definition: stm32f407/stm32f407g-disc1/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:187
SET
@ SET
Definition: stm32f407/stm32f407g-disc1/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:188
SET_BIT
#define SET_BIT(REG, BIT)
Definition: stm32f407/stm32f407g-disc1/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:212
I2C_FLAG_TXE
#define I2C_FLAG_TXE
Definition: stm32f7xx_hal_i2c.h:408


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:06