crc.h 491 B

12345678910111213141516
  1. #ifndef __CRC_H__
  2. #define __CRC_H__
  3. #include <stdlib.h>
  4. #include <stdint.h>
  5. uint16_t crc_xmodem_update(uint16_t crc, uint8_t data);
  6. uint16_t do_crc(uint8_t * data,uint16_t size);
  7. uint16_t do_crc_update(uint16_t crc,uint8_t * data,uint16_t size);
  8. void crc_check_memory(uint32_t bottom_addr,uint32_t top_addr,uint8_t *buffer);
  9. uint16_t crc_check_memory_range(uint32_t start_addr, uint32_t size,uint8_t *buffer);
  10. void crc_check_bulk_memory(uint32_t bottom_addr,uint32_t top_addr);
  11. #endif