Changes

Jump to navigation Jump to search
====Checksum====
----
<codepre>uint16_t Landis_crc16 (uint16_t crc, const std::vector<uint8_t> &data, size_t size) {<br>// CoServ CRC = 0x45F8<br>// Oncor CRC = 0x5FD6<br>// Hard coded Poly 0x1021<br>    uint16_t i = 0;<br>
    while (size--) {       
crc ^= data[i] << 8;
    }     
return crc;
} </codepre>
----<br />

Navigation menu