Skip to content

Commit

Permalink
fix crc16 header
Browse files Browse the repository at this point in the history
  • Loading branch information
timelf123 committed Dec 24, 2023
1 parent 9a2219e commit 36e6188
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,5 +373,7 @@ void field_set_from_field(ProtoViewField* dst, ProtoViewField* src);

/* crc.c */
uint8_t crc8(const uint8_t* data, size_t len, uint8_t init, uint8_t poly);
uint8_t crc16(const uint8_t* data, size_t len, uint16_t init, uint16_t poly);

uint8_t sum_bytes(const uint8_t* data, size_t len, uint8_t init);
uint8_t xor_bytes(const uint8_t* data, size_t len, uint8_t init);

0 comments on commit 36e6188

Please sign in to comment.