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... | |
#define __HAL_I2C_CLEAR_ADDRFLAG | ( | __HANDLE__ | ) |
Clears the I2C ADDR pending flag.
<strong>HANDLE</strong> | specifies the I2C Handle. This parameter can be I2C where x: 1, 2, or 3 to select the I2C peripheral. |
None |
Definition at line 497 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_CLEAR_ADDRFLAG | ( | __HANDLE__ | ) |
Clears the I2C ADDR pending flag.
<strong>HANDLE</strong> | specifies the I2C Handle. This parameter can be I2C where x: 1, 2, or 3 to select the I2C peripheral. |
None |
Definition at line 497 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_CLEAR_ADDRFLAG | ( | __HANDLE__ | ) |
Clears the I2C ADDR pending flag.
<strong>HANDLE</strong> | specifies the I2C Handle. This parameter can be I2C where x: 1, 2, or 3 to select the I2C peripheral. |
None |
Definition at line 497 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#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.
<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:
|
None |
Definition at line 490 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#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.
<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:
|
None |
Definition at line 490 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#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.
<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:
|
None |
Definition at line 490 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Clear the I2C pending flags which are cleared by writing 1 in a specific bit.
<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:
|
None |
Definition at line 543 of file stm32f7xx_hal_i2c.h.
#define __HAL_I2C_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Clear the I2C pending flags which are cleared by writing 1 in a specific bit.
<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:
|
None |
Definition at line 543 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Clear the I2C pending flags which are cleared by writing 1 in a specific bit.
<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:
|
None |
Definition at line 545 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_CLEAR_STOPFLAG | ( | __HANDLE__ | ) |
Clears the I2C STOPF pending flag.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 509 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_CLEAR_STOPFLAG | ( | __HANDLE__ | ) |
Clears the I2C STOPF pending flag.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 509 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_CLEAR_STOPFLAG | ( | __HANDLE__ | ) |
Clears the I2C STOPF pending flag.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 509 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_DISABLE | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE) |
Disable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 527 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_DISABLE | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE) |
Disable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 527 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_DISABLE | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE) |
Disable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 527 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_DISABLE | ( | __HANDLE__ | ) | (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Disable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 556 of file stm32f7xx_hal_i2c.h.
#define __HAL_I2C_DISABLE | ( | __HANDLE__ | ) | (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Disable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 556 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_DISABLE | ( | __HANDLE__ | ) | (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Disable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 558 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__)) |
Definition at line 440 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__)) |
Definition at line 440 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__)) |
Definition at line 440 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__))) |
Disable the specified I2C interrupt.
<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:
|
None |
Definition at line 482 of file stm32f7xx_hal_i2c.h.
#define __HAL_I2C_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__))) |
Disable the specified I2C interrupt.
<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:
|
None |
Definition at line 482 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__))) |
Disable the specified I2C interrupt.
<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:
|
None |
Definition at line 482 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_ENABLE | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE) |
Enable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 521 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_ENABLE | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE) |
Enable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 521 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_ENABLE | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE) |
Enable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 521 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_ENABLE | ( | __HANDLE__ | ) | (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Enable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 550 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_ENABLE | ( | __HANDLE__ | ) | (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Enable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 550 of file stm32f7xx_hal_i2c.h.
#define __HAL_I2C_ENABLE | ( | __HANDLE__ | ) | (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Enable the specified I2C peripheral.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 552 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__)) |
Enable or disable the specified I2C interrupts.
<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:
|
None |
Definition at line 439 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__)) |
Enable or disable the specified I2C interrupts.
<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:
|
None |
Definition at line 439 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__)) |
Enable or disable the specified I2C interrupts.
<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:
|
None |
Definition at line 439 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__)) |
Enable the specified I2C interrupt.
<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:
|
None |
Definition at line 466 of file stm32f7xx_hal_i2c.h.
#define __HAL_I2C_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__)) |
Enable the specified I2C interrupt.
<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:
|
None |
Definition at line 466 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__)) |
Enable the specified I2C interrupt.
<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:
|
None |
Definition at line 466 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_GENERATE_NACK | ( | __HANDLE__ | ) | (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK)) |
Generate a Non-Acknowledge I2C peripheral in Slave mode.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 562 of file stm32f7xx_hal_i2c.h.
#define __HAL_I2C_GENERATE_NACK | ( | __HANDLE__ | ) | (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK)) |
Generate a Non-Acknowledge I2C peripheral in Slave mode.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 562 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_GENERATE_NACK | ( | __HANDLE__ | ) | (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK)) |
Generate a Non-Acknowledge I2C peripheral in Slave mode.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 564 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Checks whether the specified I2C flag is set or not.
<strong>HANDLE</strong> | specifies the I2C Handle. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (TRUE or FALSE). |
Definition at line 476 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Checks whether the specified I2C flag is set or not.
<strong>HANDLE</strong> | specifies the I2C Handle. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (TRUE or FALSE). |
Definition at line 476 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Checks whether the specified I2C flag is set or not.
<strong>HANDLE</strong> | specifies the I2C Handle. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (TRUE or FALSE). |
Definition at line 476 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) == (__FLAG__)) ? SET : RESET) |
Definition at line 524 of file stm32f7xx_hal_i2c.h.
#define __HAL_I2C_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) == (__FLAG__)) ? SET : RESET) |
Definition at line 524 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Definition at line 525 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#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.
<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:
|
The | new state of INTERRUPT (TRUE or FALSE). |
Definition at line 451 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#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.
<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:
|
The | new state of INTERRUPT (TRUE or FALSE). |
Definition at line 451 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#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.
<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:
|
The | new state of INTERRUPT (TRUE or FALSE). |
Definition at line 451 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Check whether the specified I2C interrupt source is enabled or not.
<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:
|
The | new state of INTERRUPT (SET or RESET). |
Definition at line 498 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#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.
<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:
|
The | new state of INTERRUPT (SET or RESET). |
Definition at line 498 of file stm32f7xx_hal_i2c.h.
#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.
<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:
|
The | new 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.
#define __HAL_I2C_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_I2C_STATE_RESET) |
Reset I2C handle state.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 427 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_I2C_STATE_RESET) |
Reset I2C handle state.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 427 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_I2C_STATE_RESET) |
Reset I2C handle state.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 427 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.
#define __HAL_I2C_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_I2C_STATE_RESET) |
Reset I2C handle state.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 449 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define __HAL_I2C_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_I2C_STATE_RESET) |
Reset I2C handle state.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 449 of file stm32f7xx_hal_i2c.h.
#define __HAL_I2C_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_I2C_STATE_RESET) |
Reset I2C handle state.
<strong>HANDLE</strong> | specifies the I2C Handle. |
None |
Definition at line 449 of file stm32h747/stm32h747i-disco/CM7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.
#define I2C_FLAG_MASK (0x0001FFFFU) |
Check whether the specified I2C flag is set or not.
<strong>HANDLE</strong> | specifies the I2C Handle. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (SET or RESET). |
Definition at line 523 of file stm32f7xx_hal_i2c.h.
#define I2C_FLAG_MASK (0x0001FFFFU) |
Check whether the specified I2C flag is set or not.
<strong>HANDLE</strong> | specifies the I2C Handle. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
The | new 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.
#define I2C_FLAG_MASK (0x0001FFFFU) |
Check whether the specified I2C flag is set or not.
<strong>HANDLE</strong> | specifies the I2C Handle. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (SET or RESET). |
Definition at line 524 of file stm32h735/stm32h735g-dk/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h.