An integrated battery-charger for switched reluctance motor drives