|
STM32F4xx HAL Driver master
STM32CubeF4 HAL / LL Drivers API Reference
|
Macros | |
| #define | __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__) |
| Reset I2C handle state. | |
| #define | __HAL_I2C_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
| Enable or disable the specified I2C interrupts. | |
| #define | __HAL_I2C_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
| #define | __HAL_I2C_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) |
| Checks if the specified I2C interrupt source is enabled or disabled. | |
| #define | __HAL_I2C_GET_FLAG(__HANDLE__, __FLAG__) |
| Checks whether the specified I2C flag is set or not. | |
| #define | __HAL_I2C_CLEAR_FLAG(__HANDLE__, __FLAG__) |
| Clears the I2C pending flags which are cleared by writing 0 in a specific bit. | |
| #define | __HAL_I2C_CLEAR_ADDRFLAG(__HANDLE__) |
| Clears the I2C ADDR pending flag. | |
| #define | __HAL_I2C_CLEAR_STOPFLAG(__HANDLE__) |
| Clears the I2C STOPF pending flag. | |
| #define | __HAL_I2C_ENABLE(__HANDLE__) |
| Enable the specified I2C peripheral. | |
| #define | __HAL_I2C_DISABLE(__HANDLE__) |
| Disable the specified I2C peripheral. | |
| #define __HAL_I2C_CLEAR_ADDRFLAG | ( | __HANDLE__ | ) |
Clears the I2C ADDR pending flag.
| __HANDLE__ | specifies the I2C Handle. This parameter can be I2C where x: 1, 2, or 3 to select the I2C peripheral. |
| None |
Definition at line 496 of file stm32f4xx_hal_i2c.h.
| #define __HAL_I2C_CLEAR_FLAG | ( | __HANDLE__, | |
| __FLAG__ ) |
Clears the I2C pending flags which are cleared by writing 0 in a specific bit.
| __HANDLE__ | specifies the I2C Handle. |
| __FLAG__ | specifies the flag to clear. This parameter can be any combination of the following values:
|
| None |
Definition at line 489 of file stm32f4xx_hal_i2c.h.
| #define __HAL_I2C_CLEAR_STOPFLAG | ( | __HANDLE__ | ) |
Clears the I2C STOPF pending flag.
| __HANDLE__ | specifies the I2C Handle. |
| None |
Definition at line 508 of file stm32f4xx_hal_i2c.h.
| #define __HAL_I2C_DISABLE | ( | __HANDLE__ | ) |
Disable the specified I2C peripheral.
| __HANDLE__ | specifies the I2C Handle. |
| None |
Definition at line 526 of file stm32f4xx_hal_i2c.h.
| #define __HAL_I2C_DISABLE_IT | ( | __HANDLE__, | |
| __INTERRUPT__ ) |
Definition at line 439 of file stm32f4xx_hal_i2c.h.
| #define __HAL_I2C_ENABLE | ( | __HANDLE__ | ) |
Enable the specified I2C peripheral.
| __HANDLE__ | specifies the I2C Handle. |
| None |
Definition at line 520 of file stm32f4xx_hal_i2c.h.
| #define __HAL_I2C_ENABLE_IT | ( | __HANDLE__, | |
| __INTERRUPT__ ) |
Enable or disable the specified I2C interrupts.
| __HANDLE__ | specifies the I2C Handle. |
| __INTERRUPT__ | specifies the interrupt source to enable or disable. This parameter can be one of the following values:
|
| None |
Definition at line 438 of file stm32f4xx_hal_i2c.h.
| #define __HAL_I2C_GET_FLAG | ( | __HANDLE__, | |
| __FLAG__ ) |
Checks whether the specified I2C flag is set or not.
| __HANDLE__ | specifies the I2C Handle. |
| __FLAG__ | 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 475 of file stm32f4xx_hal_i2c.h.
| #define __HAL_I2C_GET_IT_SOURCE | ( | __HANDLE__, | |
| __INTERRUPT__ ) |
Checks if the specified I2C interrupt source is enabled or disabled.
| __HANDLE__ | specifies the I2C Handle. |
| __INTERRUPT__ | 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 450 of file stm32f4xx_hal_i2c.h.
| #define __HAL_I2C_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
Reset I2C handle state.
| __HANDLE__ | specifies the I2C Handle. |
| None |
Definition at line 426 of file stm32f4xx_hal_i2c.h.