__HAL_I2C_ENABLE_IT macro
Enable or disable the specified I2C interrupts.
Syntax
#define __HAL_I2C_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__)) Arguments
__HANDLE__
specifies the I2C Handle.
__INTERRUPT__
specifies the interrupt source to enable or disable. This parameter can be one of the following values: @arg I2C_IT_BUF: Buffer interrupt enable @arg I2C_IT_EVT: Event interrupt enable @arg I2C_IT_ERR: Error interrupt enable
Return value
None