APM:Libraries
crc.h
Go to the documentation of this file.
1 /*
2  This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License as published by
4  the Free Software Foundation, either version 3 of the License, or
5  (at your option) any later version.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15 /*
16  interfaces to ArduPilot collection of CRCs.
17  */
18 
19 uint8_t crc_crc8(const uint8_t *p, uint8_t len);
20 uint16_t crc_xmodem_update(uint16_t crc, uint8_t data);
21 uint16_t crc_xmodem(const uint8_t *b, uint16_t len);
22 uint32_t crc_crc32(uint32_t crc, const uint8_t *buf, uint32_t size);
uint16_t crc_xmodem_update(uint16_t crc, uint8_t data)
Definition: crc.cpp:67
uint32_t crc_crc32(uint32_t crc, const uint8_t *buf, uint32_t size)
Definition: crc.cpp:140
uint8_t crc_crc8(const uint8_t *p, uint8_t len)
Definition: crc.cpp:50
uint16_t crc_xmodem(const uint8_t *b, uint16_t len)
Definition: crc.cpp:82