/* Function called from I2C IRQ Handler when TXE flag is set Function is in charge of transmit a byte on I2C lines.  */
void Slave_Ready_To_Transmit_Callback(void)
/* Function called from I2C IRQ Handler when TXE flag is set Function is in charge of transmit a byte on I2C lines.  */
void Slave_Ready_To_Transmit_Callback(void)
{
  if(ubSlaveNbDataToTransmit > 0)
  {
    LL_I2C_TransmitData8(I2C1, (uint8_t)(*pSlaveTransmitBuffer++));
    ubSlaveNbDataToTransmit--;
  }
  else
  {
    LL_I2C_TransmitData8(I2C1, 0x00);
  }
}