public static InletGetReply Parse(IList <byte> data) { ushort voltage; byte channel = ADCGetReply.Parse(data, out voltage); switch (channel) { case 1: return(new GetInletVoltageReply(voltage)); case 2: return(new GetHeaterVoltageReply(voltage)); default: return(null); } }
public static DetectorGetReply Parse(IList <byte> data) { ushort voltage; byte channel = ADCGetReply.Parse(data, out voltage); switch (channel) { case 1: return(new GetD1VoltageReply(voltage)); case 2: return(new GetD2VoltageReply(voltage)); case 3: return(new GetD3VoltageReply(voltage)); default: return(null); } }
public static IonSourceGetReply Parse(IList <byte> data) { ushort voltage; byte channel = ADCGetReply.Parse(data, out voltage); switch (channel) { case 1: return(new GetEmissionCurrentReply(voltage)); case 2: return(new GetIonizationVoltageReply(voltage)); case 3: return(new GetF1VoltageReply(voltage)); case 4: return(new GetF2VoltageReply(voltage)); default: return(null); } }