Integrated drive electronics