Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10 lines (7 sloc)
232 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef _CRC_H_ | |
| #define _CRC_H_ | |
| extern const uint16_t crc8_table[]; | |
| extern const uint16_t crc16_table[]; | |
| uint8_t calc_crc8(uint8_t old_crc, uint8_t inbyte); | |
| uint16_t calc_crc16(uint16_t old_crc, uint8_t inbyte); | |
| #endif |