I am using a STM32 board to send I2C commands to a I2C slave using interrupt mode. I have initialized I2C module as below,
hi2c2.Instance = I2C2; hi2c2.In