crc.h 317 B

1234567891011
  1. #ifndef CRC_H
  2. #define CRC_H
  3. uint8_t crc7update( uint8_t crc, uint8_t data );
  4. uint16_t crc_xmodem_update( uint16_t crc, uint8_t data );
  5. uint16_t crc_xmodem_block( uint16_t crc, const uint8_t *data, uint32_t length );
  6. // AVR-libc compatibility
  7. #define _crc_xmodem_update(crc,data) crc_xmodem_update(crc,data)
  8. #endif