grblHAL core  20250104
crc.h
Go to the documentation of this file.
1 /*
2 
3  crc.h - crc implementations used by grblHAL
4 
5  Part of grblHAL
6 
7  grblHAL is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  grblHAL is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with grblHAL. If not, see <http://www.gnu.org/licenses/>.
19 
20 */
21 
22 #pragma once
23 
24 uint16_t grbl_crc8 (const uint8_t *data, uint32_t size);
25 uint16_t modbus_crc16x (const uint8_t *buf, uint_fast16_t len);
26 uint16_t ccitt_crc16 (const uint8_t *buf, uint_fast16_t len);
uint16_t grbl_crc8(const uint8_t *data, uint32_t size)
Definition: crc.c:24
uint16_t modbus_crc16x(const uint8_t *buf, uint_fast16_t len)
Definition: crc.c:38
uint16_t ccitt_crc16(const uint8_t *buf, uint_fast16_t len)
Definition: crc.c:62