Macros | |
#define | __HAL_SMBUS_CLEAR_ADDRFLAG(__HANDLE__) |
Clears the SMBUS ADDR pending flag. More... | |
#define | __HAL_SMBUS_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR1 = ~((__FLAG__) & SMBUS_FLAG_MASK)) |
Clears the SMBUS pending flags which are cleared by writing 0 in a specific bit. More... | |
#define | __HAL_SMBUS_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ICR = (__FLAG__)) |
Clear the SMBUS pending flags which are cleared by writing 1 in a specific bit. More... | |
#define | __HAL_SMBUS_CLEAR_STOPFLAG(__HANDLE__) |
Clears the SMBUS STOPF pending flag. More... | |
#define | __HAL_SMBUS_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 &= ~I2C_CR1_PE) |
Disable the SMBUS peripheral. More... | |
#define | __HAL_SMBUS_DISABLE(__HANDLE__) (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Disable the specified SMBUS peripheral. More... | |
#define | __HAL_SMBUS_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR2 &= (~(__INTERRUPT__))) |
#define | __HAL_SMBUS_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__))) |
Disable the specified SMBUS interrupts. More... | |
#define | __HAL_SMBUS_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 |= I2C_CR1_PE) |
Enable the SMBUS peripheral. More... | |
#define | __HAL_SMBUS_ENABLE(__HANDLE__) (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Enable the specified SMBUS peripheral. More... | |
#define | __HAL_SMBUS_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR2 |= (__INTERRUPT__)) |
Enable or disable the specified SMBUS interrupts. More... | |
#define | __HAL_SMBUS_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__)) |
Enable the specified SMBUS interrupts. More... | |
#define | __HAL_SMBUS_GENERATE_NACK(__HANDLE__) (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_ACK)) |
Generate a Non-Acknowledge SMBUS peripheral in Slave mode. More... | |
#define | __HAL_SMBUS_GENERATE_NACK(__HANDLE__) (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK)) |
Generate a Non-Acknowledge SMBUS peripheral in Slave mode. More... | |
#define | __HAL_SMBUS_GET_FLAG(__HANDLE__, __FLAG__) |
Checks whether the specified SMBUS flag is set or not. More... | |
#define | __HAL_SMBUS_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & ((__FLAG__) & SMBUS_FLAG_MASK)) == ((__FLAG__) & SMBUS_FLAG_MASK)) ? SET : RESET) |
#define | __HAL_SMBUS_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->CR2 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Checks if the specified SMBUS interrupt source is enabled or disabled. More... | |
#define | __HAL_SMBUS_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->CR1 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Check whether the specified SMBUS interrupt source is enabled or not. More... | |
#define | __HAL_SMBUS_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_SMBUS_STATE_RESET) |
Reset SMBUS handle state. More... | |
#define | __HAL_SMBUS_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_SMBUS_STATE_RESET) |
Reset SMBUS handle state. More... | |
#define | SMBUS_FLAG_MASK (0x0001FFFFU) |
Check whether the specified SMBUS flag is set or not. More... | |
#define __HAL_SMBUS_CLEAR_ADDRFLAG | ( | __HANDLE__ | ) |
Clears the SMBUS ADDR pending flag.
<strong>HANDLE</strong> | specifies the SMBUS Handle. This parameter can be SMBUS where x: 1, 2, or 3 to select the SMBUS peripheral. |
None |
Definition at line 482 of file stm32f4xx_hal_smbus.h.
#define __HAL_SMBUS_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | ((__HANDLE__)->Instance->SR1 = ~((__FLAG__) & SMBUS_FLAG_MASK)) |
Clears the SMBUS pending flags which are cleared by writing 0 in a specific bit.
<strong>HANDLE</strong> | specifies the SMBUS Handle. This parameter can be SMBUS where x: 1, 2, or 3 to select the SMBUS peripheral. |
<strong>FLAG</strong> | specifies the flag to clear. This parameter can be any combination of the following values:
|
None |
Definition at line 475 of file stm32f4xx_hal_smbus.h.
#define __HAL_SMBUS_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | ((__HANDLE__)->Instance->ICR = (__FLAG__)) |
Clear the SMBUS pending flags which are cleared by writing 1 in a specific bit.
<strong>HANDLE</strong> | specifies the SMBUS Handle. |
<strong>FLAG</strong> | specifies the flag to clear. This parameter can be any combination of the following values:
|
None |
Definition at line 504 of file stm32f7xx_hal_smbus.h.
#define __HAL_SMBUS_CLEAR_STOPFLAG | ( | __HANDLE__ | ) |
Clears the SMBUS STOPF pending flag.
<strong>HANDLE</strong> | specifies the SMBUS Handle. This parameter can be SMBUS where x: 1, 2, or 3 to select the SMBUS peripheral. |
None |
Definition at line 495 of file stm32f4xx_hal_smbus.h.
#define __HAL_SMBUS_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 &= ~I2C_CR1_PE) |
Disable the SMBUS peripheral.
<strong>HANDLE</strong> | specifies the SMBUS Handle. This parameter can be SMBUSx where x: 1 or 2 to select the SMBUS peripheral. |
None |
Definition at line 515 of file stm32f4xx_hal_smbus.h.
#define __HAL_SMBUS_DISABLE | ( | __HANDLE__ | ) | (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Disable the specified SMBUS peripheral.
<strong>HANDLE</strong> | specifies the SMBUS Handle. |
None |
Definition at line 516 of file stm32f7xx_hal_smbus.h.
#define __HAL_SMBUS_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR2 &= (~(__INTERRUPT__))) |
Definition at line 415 of file stm32f4xx_hal_smbus.h.
#define __HAL_SMBUS_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__))) |
Disable the specified SMBUS interrupts.
<strong>HANDLE</strong> | specifies the SMBUS Handle. |
<strong>INTERRUPT</strong> | specifies the interrupt source to disable. This parameter can be one of the following values:
|
None |
Definition at line 444 of file stm32f7xx_hal_smbus.h.
#define __HAL_SMBUS_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 |= I2C_CR1_PE) |
Enable the SMBUS peripheral.
<strong>HANDLE</strong> | specifies the SMBUS Handle. This parameter can be SMBUSx where x: 1 or 2 to select the SMBUS peripheral. |
None |
Definition at line 508 of file stm32f4xx_hal_smbus.h.
#define __HAL_SMBUS_ENABLE | ( | __HANDLE__ | ) | (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Enable the specified SMBUS peripheral.
<strong>HANDLE</strong> | specifies the SMBUS Handle. |
None |
Definition at line 510 of file stm32f7xx_hal_smbus.h.
#define __HAL_SMBUS_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR2 |= (__INTERRUPT__)) |
Enable or disable the specified SMBUS interrupts.
<strong>HANDLE</strong> | specifies the SMBUS Handle. This parameter can be SMBUS where x: 1, 2, or 3 to select the SMBUS peripheral. |
<strong>INTERRUPT</strong> | specifies the interrupt source to enable or disable. This parameter can be one of the following values:
|
None |
Definition at line 414 of file stm32f4xx_hal_smbus.h.
#define __HAL_SMBUS_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__)) |
Enable the specified SMBUS interrupts.
<strong>HANDLE</strong> | specifies the SMBUS Handle. |
<strong>INTERRUPT</strong> | specifies the interrupt source to enable. This parameter can be one of the following values:
|
None |
Definition at line 428 of file stm32f7xx_hal_smbus.h.
#define __HAL_SMBUS_GENERATE_NACK | ( | __HANDLE__ | ) | (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_ACK)) |
Generate a Non-Acknowledge SMBUS peripheral in Slave mode.
<strong>HANDLE</strong> | specifies the SMBUS Handle. |
None |
Definition at line 521 of file stm32f4xx_hal_smbus.h.
#define __HAL_SMBUS_GENERATE_NACK | ( | __HANDLE__ | ) | (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK)) |
Generate a Non-Acknowledge SMBUS peripheral in Slave mode.
<strong>HANDLE</strong> | specifies the SMBUS Handle. |
None |
Definition at line 522 of file stm32f7xx_hal_smbus.h.
#define __HAL_SMBUS_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) |
Checks whether the specified SMBUS flag is set or not.
<strong>HANDLE</strong> | specifies the SMBUS Handle. This parameter can be SMBUS where x: 1, 2, or 3 to select the SMBUS peripheral. |
<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 458 of file stm32f4xx_hal_smbus.h.
#define __HAL_SMBUS_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((((__HANDLE__)->Instance->ISR) & ((__FLAG__) & SMBUS_FLAG_MASK)) == ((__FLAG__) & SMBUS_FLAG_MASK)) ? SET : RESET) |
Definition at line 486 of file stm32f7xx_hal_smbus.h.
#define __HAL_SMBUS_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((((__HANDLE__)->Instance->CR2 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Checks if the specified SMBUS interrupt source is enabled or disabled.
<strong>HANDLE</strong> | specifies the SMBUS Handle. This parameter can be SMBUS where x: 1, 2, or 3 to select the SMBUS peripheral. |
<strong>INTERRUPT</strong> | specifies the SMBUS interrupt source to check. This parameter can be one of the following values:
|
The | new state of INTERRUPT (TRUE or FALSE). |
Definition at line 427 of file stm32f4xx_hal_smbus.h.
#define __HAL_SMBUS_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | ((((__HANDLE__)->Instance->CR1 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Check whether the specified SMBUS interrupt source is enabled or not.
<strong>HANDLE</strong> | specifies the SMBUS Handle. |
<strong>INTERRUPT</strong> | specifies the SMBUS interrupt source to check. This parameter can be one of the following values:
|
The | new state of IT (SET or RESET). |
Definition at line 460 of file stm32f7xx_hal_smbus.h.
#define __HAL_SMBUS_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_SMBUS_STATE_RESET) |
Reset SMBUS handle state.
<strong>HANDLE</strong> | specifies the SMBUS Handle. This parameter can be SMBUS where x: 1, 2, or 3 to select the SMBUS peripheral. |
None |
Definition at line 401 of file stm32f4xx_hal_smbus.h.
#define __HAL_SMBUS_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_SMBUS_STATE_RESET) |
Reset SMBUS handle state.
<strong>HANDLE</strong> | specifies the SMBUS Handle. |
None |
Definition at line 411 of file stm32f7xx_hal_smbus.h.
#define SMBUS_FLAG_MASK (0x0001FFFFU) |
Check whether the specified SMBUS flag is set or not.
<strong>HANDLE</strong> | specifies the SMBUS 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 485 of file stm32f7xx_hal_smbus.h.