Esempio n. 1
0
 public Register(PidTypes pidType, byte mode, byte parameter, string description)
 {
     _pidType     = pidType;
     _mode        = mode;
     _parameter   = parameter;
     _description = description;
 }
Esempio n. 2
0
 public Register(PidTypes pidType, byte mode, byte parameter, string description, byte[] staticResponse)
 {
     _pidType              = pidType;
     _mode                 = mode;
     _parameter            = parameter;
     _description          = description;
     _responseStaticValues = staticResponse;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
            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);
            }
Esempio n. 5
0
 public Register(PidTypes pidType, byte mode, byte parameter)
 {
     _pidType   = pidType;
     _mode      = mode;
     _parameter = parameter;
 }