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