fletcher16.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Eistec AB
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef CHECKSUM_FLETCHER16_H
21 #define CHECKSUM_FLETCHER16_H
22 
23 #include <stdlib.h>
24 #include <stdint.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
42 uint16_t fletcher16(const uint8_t *buf, size_t bytes);
43 
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* CHECKSUM_FLETCHER16_H */
50 
uint16_t fletcher16(const uint8_t *buf, size_t bytes)
Fletcher's 16 bit checksum.
stdlib.h wrapper for MSP430