public Register(PidTypes pidType, byte mode, byte parameter, string description) { _pidType = pidType; _mode = mode; _parameter = parameter; _description = description; }
public Register(PidTypes pidType, byte mode, byte parameter, string description, byte[] staticResponse) { _pidType = pidType; _mode = mode; _parameter = parameter; _description = description; _responseStaticValues = staticResponse; }
public Register(PidTypes pidType, byte mode, byte parameter, string description, int responseMin, int responseMax, int responseStep) { _pidType = pidType; _mode = mode; _parameter = parameter; _description = description; _responseMin = responseMin; _responseMax = responseMax; _responseSteps = responseStep; }
public Int32 Decode(Byte[] buf, Int32 ptr, out String r) { cmdDecode = PidInfo.CommandDecode.Standard; pidType = (PidTypes)buf[ptr]; if (pidType.Equals(PidTypes.SegFrag)) { cmdDecode = PidInfo.CommandDecode.SegmentFragment; ptr++; } r = "|" + pidType.ToString() + "|" + cmdDecode.ToString(); if (cmdDecode.Equals(PidInfo.CommandDecode.SegmentFragment)) { r += "|ext=" + extendOctet.ToString(); } return(ptr); }
public Register(PidTypes pidType, byte mode, byte parameter) { _pidType = pidType; _mode = mode; _parameter = parameter; }