stm32f469_fw/src/hw/driver/ts.c
uint16_t TS_IO_ReadMultiple(uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length)
{
  bool ret;
  uint16_t status = 0;

  ret = i2cReadBytes(_DEF_I2C1, Addr, Reg, Buffer, Length, 50);

  if (ret != true)
  {
    i2cRecovery(_DEF_I2C1);
    status = 1;
  }



  return status;
}
/**
  * @brief  Reads multiple data with I2C communication
  *         channel from TouchScreen.
  * @param  Addr: I2C address
  * @param  Reg: Register address
  * @param  Buffer: Pointer to data buffer
  * @param  Length: Length of the data
  * @retval Number of read data
  */
@brief  Reads multiple data with I2C communication
channel from TouchScreen.
@brief Reads multiple data with I2C communication channel from TouchScreen .
uint16_t TS_IO_ReadMultiple(uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length)
{
  bool ret;
  uint16_t status = 0;
  ret = i2cReadBytes(_DEF_I2C1, Addr, Reg, Buffer, Length, 50);
  if (ret != true)
  {
    i2cRecovery(_DEF_I2C1);
    status = 1;
  }
  return status;
}
uint16_t TS_IO_ReadMultiple ( uint8_t Addr , uint8_t Reg , uint8_t * Buffer , uint16_t Length ) { bool ret ; uint16_t status = 0 ; ret = i2cReadBytes ( _DEF_I2C1 , Addr , Reg , Buffer , Length , 50 ) ; if ( ret != true ) { i2cRecovery ( _DEF_I2C1 ) ; status = 1 ; } return status ; }
@brief  Reads multiple data with I2C communication
         channel from TouchScreen.
@brief Reads multiple data with I2C communication channel from TouchScreen .