/* Resets the IO Expander by Software (SYS_CTRL1, RESET bit).  */
uint8_t IOE_Reset(uint8_t DeviceAddr)
/* Resets the IO Expander by Software (SYS_CTRL1, RESET bit).  */
uint8_t IOE_Reset(uint8_t DeviceAddr)
{
  I2C_WriteDeviceRegister(DeviceAddr, IOE_REG_SYS_CTRL1, 0x02);
  _delay_(2);
  I2C_WriteDeviceRegister(DeviceAddr, IOE_REG_SYS_CTRL1, 0x00);
  return IOE_OK;    
}