stm32f469_fw/src/hw/driver/ts.c
uint8_t TS_IO_Read(uint8_t Addr, uint8_t Reg)
{
  bool ret;
  uint8_t Value = 0;


  ret = i2cReadBytes(_DEF_I2C1, Addr, Reg, &Value, 1, 10);

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

  return Value;
}
/**
  * @brief  Reads single data with I2C communication
  *         channel from TouchScreen.
  * @param  Addr: I2C address
  * @param  Reg: Register address
  * @retval Read data
  */
@brief  Reads single data with I2C communication
channel from TouchScreen.
@param  Addr: I2C address
@param  Reg: Register address
@retval Read data
@brief Reads single data with I2C communication channel from TouchScreen . @param Addr : I2C address @param Reg : Register address @retval Read data
uint8_t TS_IO_Read(uint8_t Addr, uint8_t Reg)
{
  bool ret;
  uint8_t Value = 0;
  ret = i2cReadBytes(_DEF_I2C1, Addr, Reg, &Value, 1, 10);
  if (ret != true)
  {
    i2cRecovery(_DEF_I2C1);
  }
  return Value;
}
uint8_t TS_IO_Read ( uint8_t Addr , uint8_t Reg ) { bool ret ; uint8_t Value = 0 ; ret = i2cReadBytes ( _DEF_I2C1 , Addr , Reg , & Value , 1 , 10 ) ; if ( ret != true ) { i2cRecovery ( _DEF_I2C1 ) ; } return Value ; }
@brief  Reads single data with I2C communication
         channel from TouchScreen.
@brief Reads single data with I2C communication channel from TouchScreen .