/* Check if the device instance of the selected address is already registered and return its index  */
static uint8_t stmpe811_GetInstance(uint16_t DeviceAddr)
/* Check if the device instance of the selected address is already registered and return its index  */
static uint8_t stmpe811_GetInstance(uint16_t DeviceAddr)
{
  uint8_t idx = 0;
  for(idx = 0; idx < STMPE811_MAX_INSTANCE ; idx ++)
  {
    if(stmpe811[idx] == DeviceAddr)
    {
      return idx; 
    }
  }
  return 0xFF;
}