diff options
Diffstat (limited to 'src/voltronic/crc.h')
-rw-r--r-- | src/voltronic/crc.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/voltronic/crc.h b/src/voltronic/crc.h new file mode 100644 index 0000000..0f34f38 --- /dev/null +++ b/src/voltronic/crc.h @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#ifndef INVERTER_TOOLS_VOLTRONIC_CRC_H +#define INVERTER_TOOLS_VOLTRONIC_CRC_H + +#include <cstdint> +#include <cstdlib> +#include "../numeric_types.h" + +namespace voltronic { + +typedef u16 CRC; + +void crc_write(CRC crc, u8* buffer); +CRC crc_read(const u8* buf); +CRC crc_calculate(const u8* buf, size_t bufSize); + +} + +#endif //INVERTER_TOOLS_VOLTRONIC_CRC_H |