Crc8 ==== Function description: --------------------- This demo shows the calculation of **8 bits CRC**. Configure the size of the polynomial is 8 bits for CRC8 calculation. * Configure the CRC8. * Write data to CRC calculator to start hardware calculation. * Calculate the result of the CRC8 by software, then to compare with the hardware. Detail configuration: --------------------- Crc8 ^^^^ ================= ================ ================== =================== ================ ============= Initial value Reverse input Reverse output Polynomial size Coefficients Xor value ----------------- ---------------- ------------------ ------------------- ---------------- ------------- 0 no no 8 bits 0x07 0 ================= ================ ================== =================== ================ ============= Crc8/itu ^^^^^^^^ ================= ================ ================== =================== ================ ============= Initial value Reverse input Reverse output Polynomial size Coefficients Xor value ----------------- ---------------- ------------------ ------------------- ---------------- ------------- 0 no no 8 bits 0x07 0x55 ================= ================ ================== =================== ================ ============= Crc8/rohc ^^^^^^^^^ ================= ================ ================== =================== ================ ============= Initial value Reverse input Reverse output Polynomial size Coefficients Xor value ----------------- ---------------- ------------------ ------------------- ---------------- ------------- 0xFF no no 8 bits 0x07 0 ================= ================ ================== =================== ================ ============= Crc8/maxim ^^^^^^^^^^ ================= ================ ================== =================== ================ ============= Initial value Reverse input Reverse output Polynomial size Coefficients Xor value ----------------- ---------------- ------------------ ------------------- ---------------- ------------- 0 byte byte 8 bits 0x07 0x31 ================= ================ ================== =================== ================ ============= Test result: ------------ If the output result is same as the result calculated by software according to the theory, then print \"pass\", or print \"fail\". IO connection: -------------- None