This is GetHeatCoolMode, a member of class MultiStageThermostatBase.
MultiStageThermostatBase Methods