WARNING: This page is about a different car, the 2008 Toyota RAV4. However, it is still accessible from the selected car via links, so may be relevant.
The starting system rotates the starter motor according to the signals from the ignition switch and PNP switch.