예제 #1
0
 public bool IS_consistentCheckSumByte()
 {
     if (C_CheckSum.GET_checkSum_fromWholePacket(PacketBytes) == 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
        //public C_Packet(C_Packet pack):
        //{
        //    IdByte = pack.idByte;
        //    lengthByte = pack.lengthByte;
        //}

        //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        #endregion constructor
        //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        #region REFRESH
        //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

        public void REFRESH_checkSum()
        {
            // count checksum from whole cmd
            byteCheckSum = C_CheckSum.GET_checkSum_fromWholePacket(PacketBytes);
        }