summaryrefslogtreecommitdiff
path: root/prototype/fw/src/crc32.h
blob: 7a3a7292d15c2b9ab60e5b2e4195ec1fd9e0d9ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef __CRC_32_H__
#define __CRC_32_H__

#include <stdint.h>

typedef uint32_t crc32_t;

inline static uint32_t crc32_reset() { return ~0; }
uint32_t crc32_update(uint32_t old_state, uint8_t c);
inline static uint32_t crc32_finalize(uint32_t state) { return ~state; }

#endif /* __CRC_32_H__ */