PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 line
549B

  1. // RHCRC.h
  2. //
  3. // Definitions for RadioHead compatible CRC outines.
  4. //
  5. // These routines originally derived from Arduino source code. See RHCRC.cpp
  6. // for copyright information
  7. // $Id: RHCRC.h,v 1.1 2014/06/24 02:40:12 mikem Exp $
  8. #ifndef RHCRC_h
  9. #define RHCRC_h
  10. #include <RadioHead.h>
  11. extern uint16_t RHcrc16_update(uint16_t crc, uint8_t a);
  12. extern uint16_t RHcrc_xmodem_update (uint16_t crc, uint8_t data);
  13. extern uint16_t RHcrc_ccitt_update (uint16_t crc, uint8_t data);
  14. extern uint8_t RHcrc_ibutton_update(uint8_t crc, uint8_t data);
  15. #endif