Subversion Repositories pentevo

Rev

Rev 908 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed | ?url?

  1. #ifndef _CRC_C_
  2. #define _CRC_C_
  3.  
  4.  
  5. // CRC poly
  6. #define CRC_POLY (0x1021)
  7.  
  8.  
  9.  
  10. // calculates "wrong" CRC16-CCITT of the given buffer
  11. uint16_t calc_crc(uint8_t * buffer, int32_t length);
  12.  
  13.  
  14. #endif // _CRC_C_
  15.