#include<stdio.h>

#define POLYNOMIAL 0x131 // P(x) = x^8 + x^5 + x^4 + 1 = 100110001

typedef enum{
    CHECKSUM_ERROR = 0,
    NO_ERROR
}etError;

extern uint8_t STH30_CreateCrc(uint8_t *data, uint8_t nbrOfBytes);
extern etError STH30_CheckCrc(uint8_t *data, uint8_t nbrOfBytes, uint8_t checksum);

