Circuit/System Description
WARNING: This page is about a different car, the 2015 Chevrolet Trax and 2015 Buick Encore. However, it is still accessible from the selected car via links, so may be relevant.
The sunroof tilt switch is connected directly to the sunroof control module and provides detent positions for open, off and close. The sunroof tilt switch completes the circuit between two signals provided by the control module, a reference ground input and a pull-up voltage provided by the analog to digital switch input. The sunroof tilt switch places a different resistor ladder network in the circuit depending on the function selected. The controllers analog to digital switch input reads the resulting voltage range and determines the function.