public SSMSwitchContent this[SSMSwitchCode code] { get { return(_switch_content_table[code]); } }
public bool get_switch(SSMSwitchCode code) { return(content_table[code].Value); }
public static SSMParameterCode getMasterParameterCodeFromSwitchCode(SSMSwitchCode code) { switch (code) { case SSMSwitchCode.AT_Vehicle_ID: case SSMSwitchCode.Test_Mode_Connector: case SSMSwitchCode.Read_Memory_Connector: return(SSMParameterCode.Switch_P0x061); case SSMSwitchCode.Neutral_Position_Switch: case SSMSwitchCode.Idle_Switch: case SSMSwitchCode.Intercooler_AutoWash_Switch: case SSMSwitchCode.Ignition_Switch: case SSMSwitchCode.Power_Steering_Switch: case SSMSwitchCode.Air_Conditioning_Switch: return(SSMParameterCode.Switch_P0x062); case SSMSwitchCode.Handle_Switch: case SSMSwitchCode.Starter_Switch: case SSMSwitchCode.Front_O2_Rich_Signal: case SSMSwitchCode.Rear_O2_Rich_Signal: case SSMSwitchCode.Front_O2_2_Rich_Signal: case SSMSwitchCode.Knock_Signal_1: case SSMSwitchCode.Knock_Signal_2: case SSMSwitchCode.Electrical_Load_Signal: return(SSMParameterCode.Switch_P0x063); case SSMSwitchCode.Crank_Position_Sensor: case SSMSwitchCode.Cam_Position_Sensor: case SSMSwitchCode.Defogger_Switch: case SSMSwitchCode.Blower_Switch: case SSMSwitchCode.Interior_Light_Switch: case SSMSwitchCode.Wiper_Switch: case SSMSwitchCode.AirCon_Lock_Signal: case SSMSwitchCode.AirCon_Mid_Pressure_Switch: return(SSMParameterCode.Switch_P0x064); case SSMSwitchCode.AirCon_Compressor_Signal: case SSMSwitchCode.Radiator_Fan_Relay_3: case SSMSwitchCode.Radiator_Fan_Relay_1: case SSMSwitchCode.Radiator_Fan_Relay_2: case SSMSwitchCode.Fuel_Pump_Relay: case SSMSwitchCode.Intercooler_AutoWash_Relay: case SSMSwitchCode.CPC_Solenoid_Valve: case SSMSwitchCode.BlowBy_Leak_Connector: return(SSMParameterCode.Switch_P0x065); case SSMSwitchCode.PCV_Solenoid_Valve: case SSMSwitchCode.TGV_Output: case SSMSwitchCode.TGV_Drive: case SSMSwitchCode.Variable_Intake_Air_Solenoid: case SSMSwitchCode.Pressure_Sources_Change: case SSMSwitchCode.Vent_Solenoid_Valve: case SSMSwitchCode.P_S_Solenoid_Valve: case SSMSwitchCode.Assist_Air_Solenoid_Valve: return(SSMParameterCode.Switch_P0x066); case SSMSwitchCode.Tank_Sensor_Control_Valve: case SSMSwitchCode.Relief_Valve_Solenoid_1: case SSMSwitchCode.Relief_Valve_Solenoid_2: case SSMSwitchCode.TCS_Relief_Valve_Solenoid: case SSMSwitchCode.Ex_Gas_Positive_Pressure: case SSMSwitchCode.Ex_Gas_Negative_Pressure: case SSMSwitchCode.Intake_Air_Solenoid: case SSMSwitchCode.Muffler_Control: return(SSMParameterCode.Switch_P0x067); case SSMSwitchCode.Retard_Signal_from_AT: case SSMSwitchCode.Fuel_Cut_Signal_from_AT: case SSMSwitchCode.Ban_of_Torque_Down: case SSMSwitchCode.Request_Torque_Down_VDC: return(SSMParameterCode.Switch_P0x068); case SSMSwitchCode.Torque_Control_Signal_1: case SSMSwitchCode.Torque_Control_Signal_2: case SSMSwitchCode.Torque_Permission_Signal: case SSMSwitchCode.EAM_Signal: case SSMSwitchCode.AT_coop_lock_up_signal: case SSMSwitchCode.AT_coop_lean_burn_signal: case SSMSwitchCode.AT_coop_rich_spike_signal: case SSMSwitchCode.AET_Signal: return(SSMParameterCode.Switch_P0x069); case SSMSwitchCode.ETC_Motor_Relay: return(SSMParameterCode.Switch_P0x120); case SSMSwitchCode.Clutch_Switch: case SSMSwitchCode.Stop_Light_Switch: case SSMSwitchCode.Set_Coast_Switch: case SSMSwitchCode.Rsume_Accelerate_Switch: case SSMSwitchCode.Brake_Switch: case SSMSwitchCode.Accelerator_Switch: return(SSMParameterCode.Switch_P0x121); default: throw new ArgumentOutOfRangeException("Switch code is out of range"); } }