Switch Operation
WARNING: This page is about a different car, the 2009 Nissan Maxima. However, it is still accessible from the selected car via links, so may be relevant.
When a door is opened, the door switch closes to send a ground signal to the BCM. When the trunk is opened, the trunk lamp switch and trunk release solenoid closes sending a ground signal to the BCM.