A magneto is one of the electromechanical devices invented for the purpose of ignition with gasoline internal combustion engines.
Some magnetos have a second coil of wire located next to the first, called a secondary coil.