/* Checks if the selected device is correctly configured and communicates correctly ont the I2C bus.  */
uint8_t IOE_IsOperational(uint8_t DeviceAddr)
/* Checks if the selected device is correctly configured and communicates correctly ont the I2C bus.  */
uint8_t IOE_IsOperational(uint8_t DeviceAddr)
{
  if( IOE_ReadID(DeviceAddr) != (uint16_t)STMPE811_ID )
  {
    if (IOE_TimeOut == 0)
    {
      return(IOE_TimeoutUserCallback());
    }
    else
    {
      return IOE_FAILURE;
    }
  } 
  else 
  {
    return IOE_OK;
  }
}