Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SX1276PingPong by
crc.h@15:f790f35839db, 2016-05-31 (annotated)
- Committer:
- rba90
- Date:
- Tue May 31 09:52:21 2016 +0000
- Revision:
- 15:f790f35839db
Initial prototype
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rba90 | 15:f790f35839db | 1 | #ifndef CRC_H_ |
rba90 | 15:f790f35839db | 2 | #define CRC_H_ |
rba90 | 15:f790f35839db | 3 | |
rba90 | 15:f790f35839db | 4 | #include "stdint.h" |
rba90 | 15:f790f35839db | 5 | |
rba90 | 15:f790f35839db | 6 | /** |
rba90 | 15:f790f35839db | 7 | * Return CRC-8 of the data, using x^8 + x^2 + x + 1 polynomial. |
rba90 | 15:f790f35839db | 8 | * Reference: https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+/master/firmware/lib/crc8.c |
rba90 | 15:f790f35839db | 9 | */ |
rba90 | 15:f790f35839db | 10 | uint8_t crc8(const uint8_t *data, int len); |
rba90 | 15:f790f35839db | 11 | |
rba90 | 15:f790f35839db | 12 | #endif |