Circuit/System Description
WARNING: This page is about a different car, the 2017 Cadillac ATS. However, it is still accessible from the selected car via links, so may be relevant.
The sunroof switch is connected directly to the sunroof motor and provides detent positions for open, express open, off, close, and express close. The sunroof switch completes the circuit between two signals proved by the sunroof motor, a reference ground input and a pull-up voltage provided by an analog to digital switch input. The sunroof switch places a different resistor ladder network in the circuit depending on the function selected.