crc16.h 945 B

12345678910111213141516171819202122232425
  1. /*
  2. ---------------------------------------------------------------------------
  3. Copyright (c) 2003, Dominik Reichl <dominik.reichl@t-online.de>, Germany.
  4. All rights reserved.
  5. Distributed under the terms of the GNU General Public License v2.
  6. This software is provided 'as is' with no explicit or implied warranties
  7. in respect of its properties, including, but not limited to, correctness
  8. and/or fitness for purpose.
  9. ---------------------------------------------------------------------------
  10. */
  11. #ifndef ___CRC16_H___
  12. #define ___CRC16_H___
  13. void crc16_init(unsigned short *uCrc16);
  14. void crc16_update(unsigned short *uCrc16, unsigned char *pBuffer, unsigned long uBufSize);
  15. void crc16_final(unsigned short *uCrc16);
  16. void crc16ccitt_init(unsigned short *uCcitt16);
  17. void crc16ccitt_update(unsigned short *uCcitt16, unsigned char *pBuffer, unsigned long uBufSize);
  18. void crc16ccitt_final(unsigned short *uCcitt16);
  19. #endif // ___CRC16_H___