Fix comment in Utility.js
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
68ce3e0dbe
commit
308104f321
1 changed files with 7 additions and 7 deletions
|
@ -8,19 +8,19 @@ class Utility {
|
||||||
* The specifics of the algorithm is coming from the AUTOSAR CRC specification:
|
* 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
|
* 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"
|
* "12"
|
||||||
* > Utility.crc8([0xF2, 0x01, 0x83]).toString(16)
|
* > Utility.crc8Autosar([0xF2, 0x01, 0x83]).toString(16)
|
||||||
* "c2"
|
* "c2"
|
||||||
* > Utility.crc8([0x0F, 0xAA, 0x00, 0x55]).toString(16)
|
* > Utility.crc8Autosar([0x0F, 0xAA, 0x00, 0x55]).toString(16)
|
||||||
* "c6"
|
* "c6"
|
||||||
* > Utility.crc8([0x00, 0xff, 0x55, 0x11]).toString(16)
|
* > Utility.crc8Autosar([0x00, 0xff, 0x55, 0x11]).toString(16)
|
||||||
* "77"
|
* "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"
|
* "11"
|
||||||
* > Utility.crc8([0x92, 0x6b, 0x55]).toString(16)
|
* > Utility.crc8Autosar([0x92, 0x6b, 0x55]).toString(16)
|
||||||
* "33"
|
* "33"
|
||||||
* > Utility.crc8([0xff, 0xff, 0xff, 0xff]).toString(16)
|
* > Utility.crc8Autosar([0xff, 0xff, 0xff, 0xff]).toString(16)
|
||||||
* "6c"
|
* "6c"
|
||||||
*
|
*
|
||||||
* @param {Number[]} bytes
|
* @param {Number[]} bytes
|
||||||
|
|
Reference in a new issue