DC to AC ---> Inverter

AC to DC ---> Rectifier