/*
 * crc.h
 *
 *  Created on: Jun 9, 2021
 *      Author: user
 */

#ifndef INC_CRC8_H_
#define INC_CRC8_H_

#include "stdint.h"

/*
 * Definitions & macros
 */

#define CRC8_POLYNOMIAL 0x31
#define CRC8_INIT 0xFF

uint8_t crc8_calculate(const uint8_t *data, uint16_t count);

#endif /* INC_CRC8_H_ */
