High-voltage resonant controller