avr-fw-modules/core/include/hwo/chksum.h

22 lines
251 B
C
Raw Normal View History

2017-09-27 13:25:39 +02:00
#pragma once
#include <stdint.h>
union avr_chksum
{
struct
{
uint8_t sum8;
uint8_t xor8;
};
uint16_t combined;
};
typedef union avr_chksum avrChksum;
typedef union avr_chksum CHKSUM;
void chksum(CHKSUM* chksum,void* block,uint8_t len);