|
STM32H735xx HAL User Manual
|
Defines | |
| #define | __HAL_SMBUS_RESET_HANDLE_STATE(__HANDLE__) |
| Reset SMBUS handle state. | |
| #define | __HAL_SMBUS_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__)) |
| Enable the specified SMBUS interrupts. | |
| #define | __HAL_SMBUS_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__))) |
| Disable the specified SMBUS interrupts. | |
| #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. | |
| #define | SMBUS_FLAG_MASK (0x0001FFFFU) |
| Check whether the specified SMBUS flag is set or not. | |
| #define | __HAL_SMBUS_GET_FLAG(__HANDLE__, __FLAG__) |
| #define | __HAL_SMBUS_CLEAR_FLAG(__HANDLE__, __FLAG__) |
| Clear the SMBUS pending flags which are cleared by writing 1 in a specific bit. | |
| #define | __HAL_SMBUS_ENABLE(__HANDLE__) (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
| Enable the specified SMBUS peripheral. | |
| #define | __HAL_SMBUS_DISABLE(__HANDLE__) (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
| Disable the specified SMBUS peripheral. | |
| #define | __HAL_SMBUS_GENERATE_NACK(__HANDLE__) (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK)) |
| Generate a Non-Acknowledge SMBUS peripheral in Slave mode. | |
| #define __HAL_SMBUS_CLEAR_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) |
(((__FLAG__) == SMBUS_FLAG_TXE) ? \ ((__HANDLE__)->Instance->ISR |= (__FLAG__)) : \ ((__HANDLE__)->Instance->ICR = (__FLAG__)))
Clear the SMBUS pending flags which are cleared by writing 1 in a specific bit.
| __HANDLE__ | specifies the SMBUS Handle. |
| __FLAG__ | specifies the flag to clear. This parameter can be any combination of the following values:
|
| None |
Definition at line 527 of file stm32h7xx_hal_smbus.h.
Referenced by HAL_SMBUS_EnableAlert_IT(), HAL_SMBUS_IsDeviceReady(), HAL_SMBUS_Slave_Receive_IT(), HAL_SMBUS_Slave_Transmit_IT(), SMBUS_Flush_TXDR(), SMBUS_ITErrorHandler(), SMBUS_Master_ISR(), and SMBUS_Slave_ISR().
| #define __HAL_SMBUS_DISABLE | ( | __HANDLE__ | ) | (CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Disable the specified SMBUS peripheral.
| __HANDLE__ | specifies the SMBUS Handle. |
| None |
Definition at line 541 of file stm32h7xx_hal_smbus.h.
Referenced by HAL_SMBUS_ConfigAnalogFilter(), HAL_SMBUS_ConfigDigitalFilter(), HAL_SMBUS_DeInit(), HAL_SMBUS_Init(), HAL_SMBUSEx_DisableWakeUp(), HAL_SMBUSEx_EnableWakeUp(), and SMBUS_Master_ISR().
| #define __HAL_SMBUS_DISABLE_IT | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) | ((__HANDLE__)->Instance->CR1 &= (~(__INTERRUPT__))) |
Disable the specified SMBUS interrupts.
| __HANDLE__ | specifies the SMBUS Handle. |
| __INTERRUPT__ | specifies the interrupt source to disable. This parameter can be one of the following values:
|
| None |
Definition at line 463 of file stm32h7xx_hal_smbus.h.
Referenced by SMBUS_Disable_IRQ(), and SMBUS_Slave_ISR().
| #define __HAL_SMBUS_ENABLE | ( | __HANDLE__ | ) | (SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE)) |
Enable the specified SMBUS peripheral.
| __HANDLE__ | specifies the SMBUS Handle. |
| None |
Definition at line 535 of file stm32h7xx_hal_smbus.h.
Referenced by HAL_SMBUS_ConfigAnalogFilter(), HAL_SMBUS_ConfigDigitalFilter(), HAL_SMBUS_Init(), HAL_SMBUSEx_DisableWakeUp(), HAL_SMBUSEx_EnableWakeUp(), and SMBUS_Master_ISR().
| #define __HAL_SMBUS_ENABLE_IT | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) | ((__HANDLE__)->Instance->CR1 |= (__INTERRUPT__)) |
Enable the specified SMBUS interrupts.
| __HANDLE__ | specifies the SMBUS Handle. |
| __INTERRUPT__ | specifies the interrupt source to enable. This parameter can be one of the following values:
|
| None |
Definition at line 447 of file stm32h7xx_hal_smbus.h.
Referenced by SMBUS_Enable_IRQ().
| #define __HAL_SMBUS_GENERATE_NACK | ( | __HANDLE__ | ) | (SET_BIT((__HANDLE__)->Instance->CR2, I2C_CR2_NACK)) |
Generate a Non-Acknowledge SMBUS peripheral in Slave mode.
| __HANDLE__ | specifies the SMBUS Handle. |
| None |
Definition at line 547 of file stm32h7xx_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 506 of file stm32h7xx_hal_smbus.h.
Referenced by HAL_SMBUS_IsDeviceReady(), SMBUS_Flush_TXDR(), SMBUS_Slave_ISR(), and SMBUS_WaitOnFlagUntilTimeout().
| #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.
| __HANDLE__ | specifies the SMBUS Handle. |
| __INTERRUPT__ | 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 479 of file stm32h7xx_hal_smbus.h.
| #define __HAL_SMBUS_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
do{ \ (__HANDLE__)->State = HAL_SMBUS_STATE_RESET; \ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ } while(0)
Reset SMBUS handle state.
| __HANDLE__ | specifies the SMBUS Handle. |
| None |
Definition at line 424 of file stm32h7xx_hal_smbus.h.
| #define SMBUS_FLAG_MASK (0x0001FFFFU) |
Check whether the specified SMBUS flag is set or not.
| __HANDLE__ | specifies the SMBUS Handle. |
| __FLAG__ | 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 505 of file stm32h7xx_hal_smbus.h.
1.7.6.1