Exemple #1
0
        private ushort GetKeyCRC(byte[] data)
        {
            CRC16 crc16 = new CRC16();

            return(crc16.GetCRC16(data, 0));
        }
Exemple #2
0
        ushort get_dev_crc()
        {
            CRC16 crc16 = new CRC16();

            return(crc16.GetCRC16(Encoding.ASCII.GetBytes(TxtDevcode.Text), TxtDevcode.Text.Length, 0));
        }