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