An inverter device is mounted on the rotating electric machine body The
inverter device includes a module unit having a converter circuit and a
control unit that controls the operation of the converter circuit. The
converter circuit is configured by connecting a plurality of the
following series circuits in parallel, each of the series circuits
includes a P-channel MOS semiconductor device disposed at a higher
potential side and an N-channel MOS semiconductor device disposed at a
lower potential side which are electrically connected in series. An
electric power that is supplied from a battery or an electric power that
is supplied to the battery is controlled.