/* Brief This function handles I2C1 (Slave) event interrupt request. Param None Retval None  */
void I2C1_EV_IRQHandler(void)
/* Brief This function handles I2C1 (Slave) event interrupt request. Param None Retval None  */
void I2C1_EV_IRQHandler(void)
{
  if(LL_I2C_IsActiveFlag_ADDR(I2C1))
  {
    if(LL_I2C_GetTransferDirection(I2C1) == LL_I2C_DIRECTION_WRITE)
    {
      LL_I2C_EnableIT_BUF(I2C1);
      LL_I2C_ClearFlag_ADDR(I2C1);
    }
    else
    {
      LL_I2C_ClearFlag_ADDR(I2C1);
      Error_Callback();
    }
  }
  else if(LL_I2C_IsActiveFlag_TXE(I2C1))
  {
    Slave_Ready_To_Transmit_Callback();
  }
  else if(LL_I2C_IsActiveFlag_BTF(I2C1))
  {
    Slave_Ready_To_Transmit_Callback();
  }
}