fcs.h 924 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 ___FCS_16_H___
  12. #define ___FCS_16_H___
  13. void fcs16_init(unsigned short *uFcs16);
  14. void fcs16_update(unsigned short *uFcs16, unsigned char *pBuffer, unsigned long uBufSize);
  15. void fcs16_final(unsigned short *uFcs16);
  16. void fcs32_init(unsigned long *uFcs32);
  17. void fcs32_update(unsigned long *uFcs32, unsigned char *pBuffer, unsigned long uBufSize);
  18. void fcs32_final(unsigned long *uFcs32);
  19. #endif // ___FCS_16_H___