diff --git a/src/MagSend-Website/scripts/Utility.js b/src/MagSend-Website/scripts/Utility.js index a76aa0f..3bac106 100644 --- a/src/MagSend-Website/scripts/Utility.js +++ b/src/MagSend-Website/scripts/Utility.js @@ -8,19 +8,19 @@ class Utility { * The specifics of the algorithm is coming from the AUTOSAR CRC specification: * https://www.autosar.org/fileadmin/user_upload/standards/classic/21-11/AUTOSAR_SWS_CRCLibrary.pdf * - * > Utility.crc8([0x0, 0x0, 0x0, 0x0]).toString(16) + * > Utility.crc8Autosar([0x0, 0x0, 0x0, 0x0]).toString(16) * "12" - * > Utility.crc8([0xF2, 0x01, 0x83]).toString(16) + * > Utility.crc8Autosar([0xF2, 0x01, 0x83]).toString(16) * "c2" - * > Utility.crc8([0x0F, 0xAA, 0x00, 0x55]).toString(16) + * > Utility.crc8Autosar([0x0F, 0xAA, 0x00, 0x55]).toString(16) * "c6" - * > Utility.crc8([0x00, 0xff, 0x55, 0x11]).toString(16) + * > Utility.crc8Autosar([0x00, 0xff, 0x55, 0x11]).toString(16) * "77" - * > Utility.crc8([0x33, 0x22, 0x55, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff]).toString(16) + * > Utility.crc8Autosar([0x33, 0x22, 0x55, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff]).toString(16) * "11" - * > Utility.crc8([0x92, 0x6b, 0x55]).toString(16) + * > Utility.crc8Autosar([0x92, 0x6b, 0x55]).toString(16) * "33" - * > Utility.crc8([0xff, 0xff, 0xff, 0xff]).toString(16) + * > Utility.crc8Autosar([0xff, 0xff, 0xff, 0xff]).toString(16) * "6c" * * @param {Number[]} bytes